Subject: save guest in backuppc
From: Ghislain Adnet <gadnet@aqueos.com>
Date: Sun, 19 Apr 2020 20:52:12 +0200
hi,
Just to share a quick tip to backup guest from the host on backuppc4
--------------------------------------------------------------------
$Conf{ClientNameAlias} = '<hostname>';
$Conf{RsyncClientPath} = 'sudo /usr/sbin/vnamespace -e "'.$guestname.'" /usr/sbin/chroot
"/vservers/'.$guestname.'" /usr/bin/rsync ';
$Conf{RsyncSshArgs} = [
'-e', '$sshPath -T -q -x -l aqbackup',
];
--------------------------------------------------------------------
in backuppc3 i was using
--------------------------------------------------------------------
$Conf{ClientNameAlias} = '<hostname>';
# rsync client commands
$Conf{RsyncClientCmd} = '$sshPath -T -q -x -l sshuser $host sudo vnamespace
-e "'.$guestname.'"
/usr/sbin/chroot "/vservers/'.$guestname.'" $rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$sshPath -T -q -x -l sshuser $host sudo vnamespace
-e "'.$guestname.'"
/usr/sbin/chroot "/vservers/'.$guestname.'" $rsyncPath $argList+';
--------------------------------------------------------------------
perhaps it can help some peoples. Backuppc is a great tool.
best regards,
Ghislain.