Skip to content

Instantly share code, notes, and snippets.

@gertcuykens
Last active January 18, 2019 04:15
Show Gist options
  • Save gertcuykens/9f8cdf965e50a5163d014cbe710bef97 to your computer and use it in GitHub Desktop.
Save gertcuykens/9f8cdf965e50a5163d014cbe710bef97 to your computer and use it in GitHub Desktop.
rsync
---------
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