Tutorial - using 'rsync': a terminal method for backing-up - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Tutorials (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=21) +--- Thread: Tutorial - using 'rsync': a terminal method for backing-up (/showthread.php?tid=4474) |
Tutorial - using 'rsync': a terminal method for backing-up - m654321 - 09-26-2017 Understandably, we're all a bit concerned about the announcement that systemback, that wonderfully user-friendly back-up tool, will no longer be supported in future - a great shame. Unfortunately, I don't have the skills and know-how to help in that area for it's continuation (not in a million years!) :'( So, like you, I'm wondering what to use in the future instead of systemback, though I'm sure Jerry will come up with something. In light of this, I heard about a tool called rsync in the Manjaro forum, and I use it on setups3&4 (in signature). Rsync is a terminal-based tool (it seems to back up much faster than the GUI-based dejadup): the good news is that it's installed by default in LL3.6 There is a GUI-based version of rsync called grsync, also available to install from the Ubuntu repository (see Install Updates in LL menu). Just a thought for the LL developers: could grsync replace systemback in future LL upgrades, with explanatory notes on its use incorporated into the LL Help Manual ? Without guidance notes on how to use grsync, I therefore found the terminal-based rsync easier to use, after I got some help on the Manjaro forum community, and would like to share this with you guys. To use rsync, you need to do the following: 1. Create a back-up folder, e.g. let's call it Backup, and we'll put it at home/mike/ [substitute 'mike' for your user name; the the name of the back-up folder & where you put it is entirely your choice] 2. Now when backing-up, certain exclusions will be made: you don't want to include everything, otherwise the back-up file will be cumbersome [e.g. it's assumed that your directories (Documents, Downloads, Pictures, etc) will be backed-up elsewhere such as to an external drive] To back-up, open terminal and copy & paste this: Code: sudo rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /home/mike/Backup/ My first rsync backup, took up around 9.2GB, compared to 7.6GB for deja-dup. Future backups just add anything new since the last backup, so are quicker to complete. To restore from the folder Backup, created at /home/mike/ , copy & paste this: Code: sudo rsync -aAXv --delete={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /home/mike/Backup/ I'll be quite honest that a significant amount of the command-line I use is often beyond my comprehension. My motto is: "if it works, use it", and along the way I find my understanding grows a little bit more over time. I know the terminal doesn't suit everyone, but for those who are happy to use it, then I hope this is useful. Mike PS. Please let me know if I've made any typos in the command-line & I'll go back and correct these. |