This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
rsync-backup [2012/12/21 15:31] 85.218.109.130 |
rsync-backup [2012/12/21 16:05] 85.218.109.130 [automated backup] |
||
---|---|---|---|
Line 2: | Line 2: | ||
(run as sudo) | (run as sudo) | ||
+ | |||
+ | - local backup | ||
<code>rsync -azvv --exclude /var/log /etc /home /opt /var /pathtofolderwherebackupisstored</code> | <code>rsync -azvv --exclude /var/log /etc /home /opt /var /pathtofolderwherebackupisstored</code> | ||
+ | |||
+ | - remote backup | ||
+ | |||
+ | <code>rsync -azvv -e ssh /foldertobackup remoteuser@remotehost.remotedomain:/wheretostorebackup | ||
https://help.ubuntu.com/community/rsync | https://help.ubuntu.com/community/rsync | ||
Line 18: | Line 24: | ||
====== automated backup ====== | ====== automated backup ====== | ||
+ | |||
+ | backup the server to an external disk, once a month | ||
+ | |||
+ | <code>rsync | ||
+ | |||
+ | 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/ |