On CHOW: Grilling face-off: Gas vs charcoal

Create mirrored backups with rdiff-backup

Tags: Backups, Vincent Danen, backup, Linux Tips Newsletter

  • Save
  • Print
  • Digg This
  • 8

Takeaway: If you're looking for a free backup utility that performs full backups and more, check out rdiff-backup.

Delivered each Tuesday, TechRepublic's free Linux NetNote provides tips, articles, and other resources to help you hone your Linux skills. Automatically sign up today!

There are numerous backup utilities available--free of cost and commercial--and each has its own strengths and weaknesses. One free tool that's worthy of mentioning is called rdiff-backup. This backup utility performs full backups, but it also saves changed files so that you have a fully up-to-date backup and retain a history of changed files.

For remote administration, rdiff-backup works similar to rsync, which means you can use it to securely perform remote backups over ssh. It also preserves all attributes, including device files, hard links, and permissions.

In order to use rdiff-backup, you need to download and compile both the rdiff-backup utility and librsync. This is easily completed by using the traditional "configure; make; make install" for librsync and the following for rdiff-backup:

# python setup.py build
# python setup.py install

Once you have rdiff-backup installed, be sure to read the rdiff-backup manpage to learn about the various options. In it's simplest form, you can use it as a personal backup tool for your home directory. Run the following command:

$ rdiff-backup --print-statistics /home/user /backup/home/user

This will make a mirror backup of the /home/user directory in the /backup/home/user directory. The --print-statistics option tells rdiff-backup to provide an overview of what happened, otherwise it runs silently.

The rdiff-backup utility is perfect for backing up directories that change often, such as /home or /etc. Since rdiff-backup stores changed files, it can restore the contents of any directory back to a previous state; which is invaluable if you make a lot of changes to configuration files or accidentally delete files that you later require.

To download or find out more information about rdiff-backup, visit the nongnu Web site.

  • Save
  • Print
  • Digg This
  • 8

What do you think?

Article Categories

Security
Security Solutions, IT Locksmith
Networking and Communications
E-mail Administration NetNote, Cisco Routers and Switches
CIO and IT Management
Project Management, CIO Issues, Strategies that Scale
Desktops, Laptops & OS
Windows 2000 Professional, Microsoft Word, Microsoft Excel, Microsoft Access, Windows XP,
Data Management
Oracle, SQL Server
Servers
Windows NT, Linux NetNote, Windows Server 2003
Career Development
Geek Trivia
Software/Web Development
Web Development Zone, Visual Basic, .NET
advertisement
Click Here