This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
rsync-backup [2012/12/21 15:26] 85.218.109.130 created |
rsync-backup [2012/12/21 16:05] 85.218.109.130 [automated backup] |
||
---|---|---|---|
Line 3: | Line 3: | ||
(run as sudo) | (run as sudo) | ||
- | rsync -azvv --exclude | + | - local backup |
+ | |||
+ | <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 | ||
to backup mysql database, it is enough to: | to backup mysql database, it is enough to: | ||
Line 15: | Line 23: | ||
<code>rsync -azvv /var/lib/mysql /somewhere</code> | <code>rsync -azvv /var/lib/mysql /somewhere</code> | ||
+ | ====== 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/ |