sunrat Posted June 30, 2018 Share Posted June 30, 2018 I've always just used rsync and cron to keep backups of my user data, and clonezilla for doing a whole system image manually when big changes are afoot like dist-upgrades. I've been a bit slack about setting it up on my current system so I finally decide to enact a backup plan. I'm using rsnapshot this time as it is primarily for incremental backups and allows you to specify how many iterations of backups to keep and how often to run it. rsnapshot uses rsync to do the actual backup. I won't reinvent the wheel, pretty much just followed the excellent (as usual) guide on Arch wiki. This gives examples of how to run it regularly using systemd timers, rather than cron which most of the other guides use. https://wiki.archlinux.org/index.php/Rsnapshot Quote Link to comment Share on other sites More sharing options...
securitybreach Posted June 30, 2018 Share Posted June 30, 2018 Nice. I have never used rsnapshot. I have always done the same as you and used rsync for daily backups and clonezilla for installation clones. I may have to check it out. thanks Quote Link to comment Share on other sites More sharing options...
securitybreach Posted June 30, 2018 Share Posted June 30, 2018 WIthout using it, I am trying to figure out what exactly is different from rsync. rsnapshot is a filesystem snapshot utility based on rsync. rsnapshot makes it easy to make periodic snapshots of local machines, and remote machines over ssh. The code makes extensive use of hard links whenever possible, to greatly reduce the disk space required. Is that not exactly what rsync and cron provide? Quote Link to comment Share on other sites More sharing options...
sunrat Posted June 30, 2018 Author Share Posted June 30, 2018 It just seems to be focussed on simple configuration of incremental backups. rsync alone needs to be fed some extra options but yes, ultimately will do the same thing. I wouldn't change if you have rsync configured how you like unless you are just curious. 1 Quote Link to comment Share on other sites More sharing options...
securitybreach Posted July 1, 2018 Share Posted July 1, 2018 It just seems to be focussed on simple configuration of incremental backups. rsync alone needs to be fed some extra options but yes, ultimately will do the same thing. I wouldn't change if you have rsync configured how you like unless you are just curious. I thought rsync was simple enough but I guess not: comhack@Cerberus ~ % crontab -l 00 15 * * * rsync -ar ~/Videos /Various/Music ~/Documents ~/Downloads ~/Pictures ~/Shared ~/scripts/ /MEDIA Quote Link to comment Share on other sites More sharing options...
sunrat Posted July 1, 2018 Author Share Posted July 1, 2018 I thought rsync was simple enough but I guess not: comhack@Cerberus ~ % crontab -l 00 15 * * * rsync -ar ~/Videos /Various/Music ~/Documents ~/Downloads ~/Pictures ~/Shared ~/scripts/ /MEDIA I never used rsync like that. How does it handle new versions of changed files? I always just used --delete to only keep the latest version. rsnapshot creates a new folder for each snapshot and rotates them once x snapshots are made. PS: -r is redundant as -a includes it. PPS: I just did a little more searching. rsnapshot would do similar to: rsync -ab --backup-dir=old_`date +%F` --delete --exclude=old_* source/ destination/ although you'd still need to work out a way to rotate the backups so you don't end up keeping them all. I think you'd only get the changed files in each old directory rather than a full backup in each one via hard links with rsnapshot. Quote Link to comment Share on other sites More sharing options...
securitybreach Posted July 1, 2018 Share Posted July 1, 2018 -a indicates that files should be archived, meaning that most of their characteristics are preserved (but not ACLs, hard links or extended attributes such as capabilities) -r, --recursive recurse into directories Basically it just syncs new changes on the source. Quote Link to comment Share on other sites More sharing options...
Fuddster Posted July 1, 2018 Share Posted July 1, 2018 After several decades of a "drag and drop if/when I ever remember to do it" backup philosophy, I just started using Back in Time, which is basically a Python 3 wrapper for rsync if I understand it correctly. Once I set up the initial profile it was a cinch to use, but I still need to take a closer look at the available options to get the most out of it. Quote Link to comment Share on other sites More sharing options...
sunrat Posted July 1, 2018 Author Share Posted July 1, 2018 -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) Just sayin' you don't need to add -r when using -a . Quote Link to comment Share on other sites More sharing options...
securitybreach Posted July 1, 2018 Share Posted July 1, 2018 -a, --archive archive mode; equals -rlptgoD (no -H,-A,-X) Just sayin' you don't need to add -r when using -a . I hear you but I am going to leave it the way it is. Quote Link to comment Share on other sites More sharing options...
sunrat Posted July 1, 2018 Author Share Posted July 1, 2018 I'm having a hard time configuring the systemd timers. It's not quite explained completely in the Arch wiki. Will know tomorrow if it's working. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.