I have recently been testing BackupPC, a high-performance, enterprise-grade system for backing up Linux, Windows and MacOSX PCs and laptops to a server’s disk.

Initial configuration is a little bit daunting, you should (must) read the documentation and the self explanatory config files…

Interesting features:

  • autonomous system: no client-side software or user interaction is needed
  • the intelligent pooling system mimizes disk usage by detecting duplicate files (+bzip2 compression)
  • very flexible configuation files

I added one small “feature” based on the following blog post by Ted Carnahan: only run backup when laptop is running on AC-power. (the following works on a Lenovo Z61m Thinkpad and can be adapted to work on any other linux system)

Add this to the config file:
<code>$Conf{RsyncClientCmd} = '$sshPath -q -x -l backuppc $hostIP grep -q on /proc/acpi/ac_adapter/AC/state && $rsyncPath $argList+';</code>

When the laptop is on AC-power, the return value for the code in bold is 0, and the backup continues. When on battery power, a non-zero return value results in an aborted backup.

Categories: linux, system administration Tags: , ,
  1. 6 January 2011 at 9:34 pm

    I’m glad you found that tip useful. BackupPC is a pretty handy tool if you’ve got several computers to back up. Enjoy!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: