Pembaharuan Berkala

$ rsync -au /home /mnt/backup

Iterasi Per Hari

$ rsync -a /home /mnt/backup/`date +%Y%m%d`

Jalankan Dengan Crontab

$ crontab -e
0 2 * * * /usr/bin/rsync -a /home /mnt/backup/`date%Y%m%d`

Simpan dan berdoa ini jalan.

Referensi

http://adminschoice.com/crontab-quick-reference

http://www.thegeekstuff.com/2010/09/rsync-command-examples/

Back up like an expert with rsync

What’s so great about rsync? First, it’s designed to speed up file transfer by copying the differences between two files rather than copying an entire file every time. For example, when I’m writing this article, I can make a copy via rsync now and then another copy later.

date(1): print/set system date/time – Linux man page

Display the current time in the given FORMAT, or set the system date. -d, –date=STRING display time described by STRING, not ‘now’ -f, –file=DATEFILE …