User Tools

Site Tools


rsync-backup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
rsync-backup [2012/12/21 16:05]
85.218.109.130 [automated backup]
rsync-backup [2013/07/10 09:58]
zoza old revision restored
Line 25: Line 25:
 ====== automated backup ====== ====== automated backup ======
  
-backup the server to an external disk, once a month+(as sudo) run crontab:
  
-<​code>​rsync ​+<​code>​crontab -e</​code>​ 
 + 
 +edit the file, so that cronjob will run the command each 1st of the month, at 20:45 
 + 
 +<​code>​45 20 1 * *  ​rsync -azvv  --exclude /var/log /etc /home /opt /var  /​srv/​mis_duplicate/​backingup</​code>​ 
 + 
 +and backup the server (only folders /etc, /home, /opt, /var) to an external disk 
 + 
 +> cron format: http://​www.nncron.ru/​help/​EN/​working/​cron-format.htm
  
 more:  more: 
  
 http://​rbgeek.wordpress.com/​2012/​05/​22/​automatic-backup-from-ubuntu-server-with-rsync/​ http://​rbgeek.wordpress.com/​2012/​05/​22/​automatic-backup-from-ubuntu-server-with-rsync/​
rsync-backup.txt · Last modified: 2014/01/03 10:08 by zoza