I think git-annex is an excellent project and could solve all my backup problems if I can just figure out how to use it properly! My primary usage is as a backup tool: I'm a commercial artist and animator so I have a large archive of projects and assets to manage. About two months ago I found out about git-annex and could see how it could help me create a distributed backup system and easily locate which external HDD the data is stored on. The tools I use don't play nicely with symlinks, so my local repository is upgraded to v7 and set to annex.thin. I had some issues with speed so I followed some steps here to get backups to complete in less than 30mins.
Now a few months later, I've completed some projects and want to free up the space on my local HDD and just keep the backups - still being able to pull them down when I need to. I moved the files I want to drop into a directory '_archive' inside the repository. I ran 'git annex sync --content --to backupHDD01' at this point
I tried running 'git annex drop _archive' but I get no output and the size of the directory stays the same.
Then I tried locking every file in the directory and dropping it but again, no change.
Looking through the directory, some of the files are broken symlinks (this is what I wanted) but most are still just hardlinks. Furthermore,'git annex whereis file.ext' only returns output on some of the files. 'git status' reports a clean working tree.
Have I misinterpreted this whole annex.thin thing? Is there a better way to do what I want to do?
Thanks! J.
I guess you moved the files using something other than
git mv
. So the files in_archive
are not being tracked by git, the same as if you'd added new files to the repo.If so, need to
git annex add _archive
(or
git add _archive
since you're using v7.)The lack of output from git-annex indicates it's not found any files to work on.