- Disabilitare la schedulazione interna di backuppc:
sudoedit /etc/backuppc/config.pl
$Conf{BackupsDisable} = 1;
- Impostare il file di contab:
cat | sudo tee /etc/cron.d/backuppc > /dev/null <<EOFile
#
# Regular cron jobs for backuppc
#
#hour minute DayOfMonth Month DayOfWeek user command
# check if backuppc is up and running
* 00 * * * root /usr/share/backuppc/bin/BackupPC_sendEmail -c
# Run incremental backup of machine name hostname with ip address ip.address as user backuppc from Mon to Fri at 22:00
22 00 * * 1-5 root /usr/share/backuppc/bin/BackupPC_serverMesg backup ip.address hostname backuppc 0
# Run full backup of machine name hostname with ip address ip.address as user backuppc at Sat at 22:00
22 00 * * 6 root /usr/share/backuppc/bin/BackupPC_serverMesg backup ip.address hostname backuppc 1
EOFile
sudo -u backuppc usr/share/backuppc/bin/BackupPC_serverMesg backup ip.address hostname backuppc 0
sudo -u backuppc /usr/share/backuppc/bin/BackupPC_serverMesg status jobs
Riferimenti