I have 3 remotes for an annex - one on my laptop, one on a USB drive that's plugged in 50% of the time, and an rsync special remote on a friend's machine that I can access using SSH.
I have tried various things (annex copy, numcopies=3) to make it move data to the rsync remote, but it doesn't seem to want to work. I have tried git annex sync. I added the remote repo using the webapp, and it looked as if it was copying my files for a bit then stopped. I have the remote repo setup as a backup in the webapp.
The sizes of the directorys: ~ $ du -sh Documents 126M Documents ~ $ du -sh /Volumes/Backup/Documents 227M /Volumes/Backup/Documents
and the remote [c0g@womb Tom]$ du -sh MacDocuments/ 21M MacDocuments/
I'm also curious as to why the usb drive repo is so much bigger than the thing I'm copying, but I'll worry about that later.
What does it say when you run:
git annex copy --to $rsyncremote
.... copy FrenchBasicCourserevised-Volume1-StudentText.pdf (checking Womb_MacDocuments...) ok ....
for each file in the directory.
Sounds like copy works then?
What version of git-annex do you have installed? A bug was fixed on December 11th, before that the assistant never stored things in repositories configured as backups.
Ok, so copy is checking if the file is present, and it seems to think it is, so doesn't try again to send it.
Here's what you need to do: Run
git annex copy FrenchBasicCourserevised-Volume1-StudentText.pdf --to Womb_MacDocuments --debug
It'll output something like this:
Now try running that command at the shell, and check its exit status. For the above, I ran:
It output:
Compare with the same command but with the filename mangled.
It seems that rsync might be exiting 0 for content that's not there, in your case. This test will confirm or disprove that hypothesis and might provide some useful debug info.
I did what you said for a file, and checked the remote size as well. Local size of this file was 11.4 meg, remote was 1.3 megabytes.
Aha! Yes, encryption includes compression.
So, only remaining question is why your USB drive seems to be using 2x the uncompressed file size. One possibility would be it could have old versions of files, or deleted files still stored in it. You could try running "git annex unused" in its repository to find them. Other than that, I'm not sure what it could be. You can look around in its .git/annex directory, and compare to your laptop's repository, and perhaps see what's using the space.