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:57] – oemb1905 | computing:rsyncrsnapshot [2020/03/26 01:29] – oemb1905 | ||
---|---|---|---|
Line 7: | Line 7: | ||
------------------------------------------- | ------------------------------------------- | ||
- | Using alternate port and the old syntax for that: | + | Let's start with rsnapshot. |
- | From remote server to target backup localhost: | + | sudo apt install rsnapshot |
+ | nano / | ||
+ | < | ||
- | rsync -av --delete -e 'ssh -p 59333 -i /home/user/.ssh/id_rsa' | + | 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, |
- | From localhost | + | < |
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <backup / | ||
+ | <backup | ||
- | rsync -av --delete -e 'ssh -p 59333 -i /home/user/.ssh/id_rsa' /home/user/Server/ user@10.8.9.3:/home/user/Server/ | + | Now, edit the default script inside ''/etc/cron.d/rsnapshot'' and for, simple configurations, |
+ | |||
+ | <0 */4 * * * root | ||
+ | < | ||
+ | <0 3 * * 1 root /usr/bin/rsnapshot gamma> | ||
+ | <30 2 1 * * root | ||
| | ||
- | -- -- -- -- -- | + | Personally, I use a simple script to ensure that the sync_first command completed before I run any of the '' |
- | Using the more modern syntax and no alternate port, we have: | + | [[https:// |
- | From remote server to target backup localhost: | + | Of course, I have one of these for alpha, another for beta, and gamma, and so on until delta. |
+ | |||
+ | [[https:// | ||
+ | |||
+ | OK ... that's pretty much it for getting started with rsnapshot. | ||
+ | |||
+ | From remote server to target backup localhost, with alt port: | ||
+ | |||
+ | rsync -av --delete -e 'ssh -p 59333 -i / | ||
+ | |||
+ | From localhost to target remote backup server, with alt port: | ||
+ | |||
+ | rsync -av --delete -e 'ssh -p 59333 -i / | ||
+ | |||
+ | From remote server to target backup localhost, with standard port: | ||
sudo rsync -avi --delete root@server.com:/ | sudo rsync -avi --delete root@server.com:/ | ||
- | From localhost to target remote backup server: | + | From localhost to target remote backup server, with standard port: |
sudo rsync -avi --delete / | sudo rsync -avi --delete / | ||
- | | ||
+ | Once you master these steps, checkout remote-upgrades, | ||
This tutorial is a designated " | This tutorial is a designated " | ||
- | --- //[[oemb1905@jonathanhaack.com|oemb1905]] | + | --- //[[jonathan@haacksnetworking.com|oemb1905]] |
| |