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/01/13 19:27] – oemb1905 | computing:rsyncrsnapshot [2019/07/31 09:57] – oemb1905 | ||
---|---|---|---|
Line 7: | Line 7: | ||
------------------------------------------- | ------------------------------------------- | ||
- | sudo rsync -avxHAX --progress --delete / | + | Using alternate port and the old syntax for that: |
- | Adding //h//, //H//, //P//, will preserve hard links, give you human readable output, and show the progress (eliminating the need for --progress). | + | From remote server to target backup localhost: |
- | | + | rsync -av --delete |
- | + | ||
- | Cloning entire drives, use: | + | |
- | sudo rsync -avxHAXhHP --delete / | + | From localhost |
- | + | ||
- | 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: | + | |
- | | + | |
- | sudo nano fstab | + | |
- | <Edit the drive UUID of the new destination drive> | + | |
| | ||
- | Now, make the destination volume bootable: | + | -- -- -- -- -- |
- | grub-install /dev/sdX | + | Using the more modern syntax |
- | + | ||
- | If you are using this method to clone your existing server to another hard drive on the same host, then make sure to run // | + | |
- | rsync over ssh | + | From remote server to target backup localhost: |
- | sudo rsync -avHe --delete | + | sudo rsync -avi --delete |
+ | |||
+ | From localhost to target remote backup server: | ||
+ | |||
+ | sudo rsync -avi --delete | ||
| | ||
- | That last one works perfectly ... | + | |
- | + | ||
- | https:// | + | |
- | https:// | + | |
- | https:// | + | |
This tutorial is a designated " | This tutorial is a designated " | ||
- | --- //[[netcmnd@jonathanhaack.com|oemb1905]] | + | --- //[[oemb1905@jonathanhaack.com|oemb1905]] |
| |