Hi there,
I'm trying to set up a new git-annex repo. I want to use the WORM backend for files larger than 200MB. So I use the following command when adding files:
git annex add --largerthan=200MB --backend=WORM .
But this does not seem to work. No files are added. I tried several variants of the command like:
git annex add --largerthan 200MB --backend=WORM .
git annex add --largerthan "200 MB" --backend=WORM .
Do not work also. Am I missing anything?
I'm using Git 2.28.0.windows.1 and git-annex 8.20200815-g335aae266 on a newly-created repository in an NTFS partition. I used the following command to initialize the repo:
git init && git annex init
Lucky for you, I tried it on linux, and it also fails there.
I think the problem is, --largerthan and --smallerthan only work on annexed files, not on files you want to add to the annex. This is probably a bug.
What does work is to configure annex.largefiles and disable annex.addsmallfiles:
git config annex.largefiles 'largerthan=200mb' git config annex.addsmallfiles false
This worked for me:
Then this adds the remaining files:
Thanks for the help!