This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
computing:rsyncrsnapshot [2019/04/09 15:44] – oemb1905 | computing:rsyncrsnapshot [2020/01/27 19:55] – oemb1905 | ||
---|---|---|---|
Line 7: | Line 7: | ||
------------------------------------------- | ------------------------------------------- | ||
- | sudo rsync -avxHAX --progress --delete / | + | Let's start with rsnapshot. |
- | Adding | + | sudo apt install rsnapshot |
+ | nano /etc/rsnapshot.conf | ||
+ | < | ||
- | sudo rsync -avxHAXhHP --delete | + | Uncomment the alpha, beta, gamma, and delta sections under // |
- | + | ||
- | Cloning entire drives, use: | + | |
- | | + | |
- | | + | < |
- | If the drive you are cloning from has a different filesystem than the destination drive, you can remove the exclusions as //-x// will handle those exclusions in that case. After cloning, you will need to adjust fstab on the destination partition: | + | < |
+ | < | ||
+ | < | ||
+ | <backup /home/ localhost> | ||
+ | | ||
- | cd /etc/ | ||
- | sudo nano fstab | ||
- | <Edit the drive UUID of the new destination drive> | ||
- | | ||
- | Now, make the destination volume bootable: | ||
- | grub-install | + | |
+ | |||
+ | Making an rsync over ssh mirror using alternate port and the old syntax. | ||
+ | |||
+ | From remote server to target backup localhost: | ||
+ | |||
+ | rsync -av --delete -e 'ssh -p 59333 -i / | ||
+ | |||
+ | From localhost to target remote backup server: | ||
+ | |||
+ | rsync -av --delete -e 'ssh -p 59333 -i / | ||
| | ||
- | If you are using this method to clone your existing server to another hard drive on the same host, then make sure to run //grub-update// on the primary OS. After you do that, both the kernels for the primary OS and the cloned OS will appear in GRUB, and you can boot into the clone, specifically, | + | -- -- -- -- -- |
- | rsync over ssh | + | Using the more modern syntax and no alternate port, we have: |
- | | + | From remote server to target backup localhost: |
- | sudo rsync -avWeqr | + | |
- | + | | |
- | That last one works perfectly ... | + | |
+ | From localhost to target remote backup server: | ||
+ | |||
+ | sudo rsync -avi --delete /home/user/ | ||
| | ||
- | https:// | ||
- | https:// | ||
- | https:// | ||
- | This tutorial is a designated " | ||
- | --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2018/11/22 12:56// | + | This tutorial is a designated " |
+ | --- // | ||
| |