For years I've been using rsync in a simple bash script to automate my backups. Typically my script looks something like this:
#!/bin/bash
rsync -a --delete --exclude=.gvfs /home/jason [email protected]:/media/storage/jason
chmod +x it to be executable, cron it (or bind it to a key combination), and you're golden. The other day a user asked me why I bother with rsync and why don't I use rdiff-backup. I was quick to dispute it since I thought rsync was amazing in every way, and it is, but rdiff-backup has begun to win me over. I love how rdiff-backup still keeps a mirrored copy of your data - JUST like rsync - it just ALSO keeps an incremental revision history, which is undoubtedly a bonus.
I ended up whipping up a quick command like so:
#!/bin/bash
rdiff-backup --exclude /home/jason/.gvfs /home/jason [email protected]::/media/storage/jason
chmod +x like before, cron it or bind to a key combo, and bam. It ran fine without a hitch. For kicks I would restore it via rdiff-backup -r date:T:time /path/to/restore, and it worked fine with no complaints. I can also run rdiff-backup -l /path/to/backups to see which incremental backups exist. Likewise, rdiff-backup --remove-older-than 5D /path/to/backups will remove any backups older than 5 days (or run with --force you can delete multiple backups at once).
The only downside is, I can't find a GUI that's worth a damn with rdiff-backup. Don't get me wrong, I love my terminal like you can't imagine, and terminal wise rdiff-backup (along with rsync for the most part) seems pretty dang easy to flow through, but GUI wise I was coming up short. Back In Time appears to be an exceptional implementation of it, but the lack of SSH support with Back In Time is an instant buzz kill. I always like to (at the very least) be aware of what GUI tools are out there so if I'm ever asked I can direct less savvy users to them accordingly. Then again, if users know how to SSH they should surely be okay with typing a command once in a text file, adding some #!/bin/bash jazz to it, save, set to executable, and call it a day, so maybe Back In Time will be a very viable local based solution... But I keep looking at the super easy Deja Dup and I can't help but to think even they have SSH support... anyway... moving along.
This thought process got me wondering... what do you guys use for a backup system? Do you guys have scripts cron'd or GUI's with backup profiles scheduled? What do you have going on? Any rdiff-backup users out there or am I flying solo? Anybody out here running any home-made scripts through anacron by chance?
#!/bin/bash
rsync -a --delete --exclude=.gvfs /home/jason [email protected]:/media/storage/jason
chmod +x it to be executable, cron it (or bind it to a key combination), and you're golden. The other day a user asked me why I bother with rsync and why don't I use rdiff-backup. I was quick to dispute it since I thought rsync was amazing in every way, and it is, but rdiff-backup has begun to win me over. I love how rdiff-backup still keeps a mirrored copy of your data - JUST like rsync - it just ALSO keeps an incremental revision history, which is undoubtedly a bonus.
I ended up whipping up a quick command like so:
#!/bin/bash
rdiff-backup --exclude /home/jason/.gvfs /home/jason [email protected]::/media/storage/jason
chmod +x like before, cron it or bind to a key combo, and bam. It ran fine without a hitch. For kicks I would restore it via rdiff-backup -r date:T:time /path/to/restore, and it worked fine with no complaints. I can also run rdiff-backup -l /path/to/backups to see which incremental backups exist. Likewise, rdiff-backup --remove-older-than 5D /path/to/backups will remove any backups older than 5 days (or run with --force you can delete multiple backups at once).
The only downside is, I can't find a GUI that's worth a damn with rdiff-backup. Don't get me wrong, I love my terminal like you can't imagine, and terminal wise rdiff-backup (along with rsync for the most part) seems pretty dang easy to flow through, but GUI wise I was coming up short. Back In Time appears to be an exceptional implementation of it, but the lack of SSH support with Back In Time is an instant buzz kill. I always like to (at the very least) be aware of what GUI tools are out there so if I'm ever asked I can direct less savvy users to them accordingly. Then again, if users know how to SSH they should surely be okay with typing a command once in a text file, adding some #!/bin/bash jazz to it, save, set to executable, and call it a day, so maybe Back In Time will be a very viable local based solution... But I keep looking at the super easy Deja Dup and I can't help but to think even they have SSH support... anyway... moving along.
This thought process got me wondering... what do you guys use for a backup system? Do you guys have scripts cron'd or GUI's with backup profiles scheduled? What do you have going on? Any rdiff-backup users out there or am I flying solo? Anybody out here running any home-made scripts through anacron by chance?