Skip to content

Instantly share code, notes, and snippets.

@kirkch
Created August 22, 2012 17:23
Show Gist options
  • Save kirkch/3427722 to your computer and use it in GitHub Desktop.
Save kirkch/3427722 to your computer and use it in GitHub Desktop.
rsync notes
-- RSync server config ( /etc/zeebox/rsync.conf
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
[cache]
path = /mnt/cache
uid = tomcat
gid = tomcat
read only = yes
list = yes
-- Start rsync
rsync --daemon --config=/etc/zeebox/rsync.conf
--no-detach -v
-- Client rsync
rsync -rhtv --size-only --progress --delete --exclude="*" --include="*.gz" rsync://perftest-ue1a-tmsexport2/cache /mnt/cache
-- Zip all files
sudo gzip -rv /mnt/cache/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment