2011-04-28 00:06:07 +00:00
|
|
|
This special remote type rsyncs file contents to somewhere else.
|
|
|
|
|
|
|
|
Setup example:
|
|
|
|
|
|
|
|
# git annex initremote myrsync type=rsync rsyncurl=rsync://rsync.example.com/myrsync encryption=joey@kitenet.net
|
2011-04-29 15:16:54 +00:00
|
|
|
# git annex describe myrsync "rsync server"
|
2011-04-28 00:06:07 +00:00
|
|
|
|
2011-04-28 13:45:32 +00:00
|
|
|
Or for using rsync over SSH
|
|
|
|
|
|
|
|
# git annex initremote myrsync type=rsync rsyncurl=ssh.example.com:/myrsync encryption=joey@kitenet.net
|
2011-04-29 15:16:54 +00:00
|
|
|
# git annex describe myrsync "rsync server"
|
2011-04-28 13:45:32 +00:00
|
|
|
|
2011-04-28 00:06:07 +00:00
|
|
|
## configuration
|
|
|
|
|
|
|
|
These parameters can be passed to `git annex initremote` to configure rsync:
|
|
|
|
|
|
|
|
* `encryption` - Required. Either "none" to disable encryption of content
|
2012-11-19 21:32:58 +00:00
|
|
|
stored on the remote rsync server,
|
|
|
|
or a value that can be looked up (using gpg -k) to find a gpg encryption
|
|
|
|
key that will be given access to the remote, or "shared" which allows
|
|
|
|
every clone of the repository to decrypt the encrypted data.
|
|
|
|
|
|
|
|
Note that additional gpg keys can be given access to a remote by
|
|
|
|
rerunning initremote with the new key id. See [[encryption]].
|
2011-04-28 00:06:07 +00:00
|
|
|
|
|
|
|
* `rsyncurl` - Required. This is the url or `hostname:/directory` to
|
|
|
|
pass to rsync to tell it where to store content.
|
|
|
|
|
2012-05-02 17:08:31 +00:00
|
|
|
* `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
|
|
|
|
filenames to the shell. You'll know you need this option if `git annex get`
|
|
|
|
from the special remote fails with an error message containing a single
|
|
|
|
quote (`'`) character. If that happens, you can re-run initremote
|
|
|
|
setting shellescape=no.
|
|
|
|
|
2011-04-28 00:06:07 +00:00
|
|
|
The `annex-rsync-options` git configuration setting can be used to pass
|
2011-04-28 00:30:43 +00:00
|
|
|
parameters to rsync.
|