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/07/31 09:53] – oemb1905 | computing:rsyncrsnapshot [2020/01/27 19:55] – oemb1905 | ||
---|---|---|---|
Line 7: | Line 7: | ||
------------------------------------------- | ------------------------------------------- | ||
- | Using alternate port and the old syntax | + | Let's start with rsnapshot. |
+ | |||
+ | sudo apt install rsnapshot | ||
+ | nano / | ||
+ | < | ||
+ | |||
+ | Uncomment the alpha, beta, gamma, and delta sections under //backup levels// section, enable the sync-first option, and specify the directories you want to backup (remember, '' | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <backup / | ||
+ | <backup /etc/ localhost> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | Making an rsync over ssh mirror using alternate port and the old syntax. | ||
From remote server to target backup localhost: | From remote server to target backup localhost: | ||
Line 16: | Line 35: | ||
rsync -av --delete -e 'ssh -p 59333 -i / | rsync -av --delete -e 'ssh -p 59333 -i / | ||
+ | | ||
+ | -- -- -- -- -- | ||
Using the more modern syntax and no alternate port, we have: | Using the more modern syntax and no alternate port, we have: | ||
+ | From remote server to target backup localhost: | ||
+ | sudo rsync -avi --delete root@server.com:/ | ||
- | This tutorial is a designated " | + | From localhost to target remote backup server: |
- | --- //[[netcmnd@jonathanhaack.com|oemb1905]] 2019/04/09 19:26// | + | sudo rsync -avi --delete |
+ | |||
+ | |||
+ | |||
+ | This tutorial is a designated " | ||
+ | --- // | ||
| |