Tuesday, June 12, 2012

Backup with rsync and cron


crontab -e

# m h  dom mon dow   command
12 3 * * * /usr/bin/rsync -ar --exclude-from="/home/user/.rsync-exclude" --delete --delete-excluded /home/user/. myserver:~/.workstation/

copies local files to remote myserver 

No comments: