diff options
author | ericm <ericm@web> | 2018-01-15 03:09:34 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2018-01-15 03:09:34 +0000 |
commit | a439ba441992225386c8deec2e2a17bba0a2028e (patch) | |
tree | 10423503f73324a90ad76b7ec6924a9709176f0a /doc/forum | |
parent | a11afa67685bcc9583d4de98355c72a8690a69b1 (diff) |
Diffstat (limited to 'doc/forum')
-rw-r--r-- | doc/forum/How_to_set_backend_based_on_file_size_in_.gitattributes.mdwn | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/forum/How_to_set_backend_based_on_file_size_in_.gitattributes.mdwn b/doc/forum/How_to_set_backend_based_on_file_size_in_.gitattributes.mdwn new file mode 100644 index 000000000..75a4ca7c0 --- /dev/null +++ b/doc/forum/How_to_set_backend_based_on_file_size_in_.gitattributes.mdwn @@ -0,0 +1,16 @@ +Hi there, + +In my repos, I want files larger than 500MB to use the WORM backend. So when I'm adding large files, I do it in 2 passes. I first run this: + + git annex add --largerthan=500MB --backend=WORM . + +to add only files larger than 500MB. The remaining files that are smaller than 500MB I then add using default backend: + + git annex add + +Is it possible to set annex.backend in .gitattributes so that adding files larger than 500MB automatically use the WORM backend? Can I use expressions such as largerthan or smallerthan? From the example [here](https://git-annex.branchable.com/backends/), it seems that it can only be set based on file type. + + +Regards, + +Eric |