Support exporttree=yes for rsync special remotes.
Renaming is not supported; it might be possible to use --fuzzy to get rsync to notice the file is being renamed, but that is a bit ..fuzzy. On the other hand, interrupted transfers of an exported file are resumed, since rsync is great at that. Had to adjust the exporttree docs, which said interrupted transfers would restart. Note that remove no longer makes the empty directory dummy, instead sending the top-level empty directory. This works just as well and I noticed the dummy was unncessary when refactoring it into removeGeneric. Verified that behavior of remove is not changed, and git annex testremote does pass. This commit was sponsored by Brock Spratlen on Patreon.
This commit is contained in:
parent
218c679af6
commit
bed6773346
6 changed files with 119 additions and 39 deletions
|
@ -22,6 +22,10 @@ These parameters can be passed to `git annex initremote` to configure rsync:
|
|||
|
||||
* `keyid` - Specifies the gpg key to use for [[encryption]].
|
||||
|
||||
* `exporttree` - Set to "yes" to make this special remote usable
|
||||
by [[git-annex-export]]. It will not be usable as a general-purpose
|
||||
special remote.
|
||||
|
||||
* `shellescape` - Optional. Set to "no" to avoid shell escaping normally
|
||||
done when using rsync over ssh. That escaping is needed with typical
|
||||
setups, but not with some hosting providers that do not expose rsynced
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue