|
/Admin/backups/backuppc:
Localhost Backup Broken on Ubuntu Desktop Backuppc
This post[1] was helpful, but not quite enough, to get backuppc working on localhost. (Note that this works out of the box on any Debian install I have ever tried....)
Below is my /etc/backuppc/localhost.pl to get backup of /etc on localhost working on a Karmic Ubuntu Desktop machine:
$Conf{XferMethod} = 'tar'; $Conf{TarShareName} = ['/etc']; # with some help from https://help.ubuntu.com/community/BackupPC $Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C sudo $tarPath -c -v -f - -C $shareName' . ' --totals'; $Conf{TarClientRestoreCmd} = '/usr/bin/env LC_ALL=C sudo $tarPath -x -p --numeric-owner --same-owner' . ' -v -f - -C $shareName+'; # remove extra shell escapes ($fileList+ etc.) that are # needed for remote backups but may break local ones $Conf{TarFullArgs} = '$fileList'; $Conf{TarIncrArgs} = '--newer=$incrDate $fileList';
Basically I took the existing TarClientCmd and TarClientRestoreCmd settings and prefixed them with "sudo". And added:
backuppc ALL=NOPASSWD: ALL
to the bottom after invoking "visudo".
[1] https://help.ubuntu.com/community/BackupPC
posted at: 05:38 | path: /Admin/backups/backuppc | permanent link to this entry