Last active
January 18, 2019 04:15
-
-
Save gertcuykens/9f8cdf965e50a5163d014cbe710bef97 to your computer and use it in GitHub Desktop.
rsync
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------- | |
CLIENT | |
--------- | |
root@localhost:/src/ | |
-avzh | |
--delete | |
--dry-run -n | |
--include '.*' | |
--exclude '.*' | |
--progress | |
--times -t | |
--archive -a | |
--recursive -r | |
--backup -b | |
--list-only | |
--partial -P | |
--update -u | |
export RSYNC_CONNECT_PROG='ssh proxyhost nc %H 873' | |
export RSYNC_PASSWORD="abcdef" | |
----------- | |
DEAMON | |
----------- | |
foo@localhost::bar/src/ | |
--rsh -e "ssh -l root" foo@localhost::bar/src/ | |
rsync:://foo@localhost/bar/src/ | |
/etc/rsyncd.conf | |
max connections = 2 | |
log file = /var/log/rsync.log | |
timeout = 300 | |
[bar] | |
comment = Random things available for download | |
path = /path/to/my/public/share | |
read only = yes | |
list = yes | |
uid = nobody | |
gid = nobody | |
auth users = foo | |
secrets file = /etc/rsyncd.secrets | |
/etc/rsyncd.secrets | |
foo:passwd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment