Hi Matthias,
Yeah looks similar. I found the issue. It looks like backuppc does a
quote around the entire value of $tarPath.
The fix is to just add the 'sudo' to TarClientCmd so it's not quoted
Also... normally you get a separate log file for errors, but there's no
error log being written to localhost's log.
It also looks like the error output goes to the main backuppc log (not
the specific host log)
That's why I had trouble finding the actual command being run and the
error log, it's not consistent log output with respect to the other
types of transfer methods which log to their own host log
I'm really not sure why there's no 'Xfer Error' log being generated for
this situation
On 3/15/25 05:48, Matthias--- via BackupPC-users wrote:
Hello Mark,
It couldn't be similar to
https://sourceforge.net/p/backuppc/mailman/message/5775593/ ?
Br
Matthias
Am Samstag, dem 15.03.2025 um 00:29 -0400 schrieb Mark Murawski:
Hi All,
After pouring through the docs the best I can, I've been unable to figure out how to enable
logging of the backup command
I'm rebuilding a backuppc server...
The localhost backup is failing and I can't figure out why, since the command isn't logged
localhost log:
2025-03-14 21:05:43 Renaming /var/lib/backuppc/pc/localhost/XferLOG.0.z ->
/var/lib/backuppc/pc/localhost/XferLOG.0.z.tmp
2025-03-14 21:05:43 incr backup started back to 2025-03-14 20:00:00 (backup #0)
for directory /etc
2025-03-14 21:05:46 Got fatal error during xfer (Tar exited with error 32512 ()
status)
2025-03-14 21:05:51 Backup aborted (Tar exited with error 32512 () status)
2025-03-14 21:09:00 Renaming /var/lib/backuppc/pc/localhost/XferLOG.0.z ->
/var/lib/backuppc/pc/localhost/XferLOG.0.z.tmp
2025-03-14 21:09:00 incr backup started back to 2025-03-14 20:05:43 (backup #0)
for directory /etc
2025-03-14 21:09:03 Got fatal error during xfer (Tar exited with error 32512 ()
status)
2025-03-14 21:09:09 Backup aborted (Tar exited with error 32512 () status)
localhost config
#
# Local server backup of /etc as user backuppc
#
$Conf{XferMethod} = 'tar';
$Conf{TarShareName} = [
'/etc'
];
$Conf{TarClientCmd} = '/usr/bin/env LC_ALL=C $tarPath -c -v -f - -C $shareName --totals';
# 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';
$Conf{BackupPCNightlyPeriod} = 1;
$Conf{TarClientPath} = 'sudo /bin/tar';
$Conf{XferLogLevel} = 2;
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/