Jan 04
Just some common pitfalls to avoid when setting up BackupPC….
- When doing a backup of a host whose data is mounted using a nfs share then you have to modify the TarClientCmd.
Instead of
$sshPath -q -x -n -l root $host env LC_ALL=C $tarPath -c -v -f – -C $shareName+ –totals
use
env LC_ALL=C $tarPath -c -v -f – -C $shareName+ –totals
because ssh doesn’t work when accessing local directories. - The part env LC_ALL=C is important if you work with a non english locale. Because otherwise the backup gets done but in the end BackuppPc can’t check the result.
- To avoid all sorts of access restrictions run tar as root like
env LC_ALL=C /usr/bin/sudo $tarPath -c -v -f – -C $shareName+ –totals
To make this work start visudo and add the line
backuppc ALL=NOPASSWD: /bin/tar
