For those who’ve never used it, rsync makes backups easy, it can be used to sync two directories on the same machine, on two different drives, even on another machine without any mounting necessary (through SSH), and with the right settings, you’ll sync just the changed bytes of the files, saving network bandwidth and time.

You’ll see plenty of examples out there, but for myself I typically backup my /home/rbrunson/novell data directory to a USB drive with the command:

rsync -avz /home/rbrunson/novell  /media/BFD300G/novell

The -a stands for “archive mode” which includes handling symlinks, devices, attributes, permissions, ownership, date and time etc.  The -v stands for “verbose” and shows you what’s happening and to what file (a LOT of output) and -z is for compression of the data, such as when you send it over a LAN or WAN connection to another machine, not necessary in this instance, but deeply part of my CLI muscle memory.

Enjoy the articles

Rsync and Linux
Create Incremental Snapshot Backups with rsync and ssh
 Easy Automated Snapshot-style Backups with rsync and ssh
GUI Tools and Front-ends for rsync

Hope you find these helpful.

Rossb

Advertisements