Hello,
run vzdump with a script lfrom the example perl Script (/usr/share/doc/vzdump/examples/hook-script.pl):
...
# example: copy resulting files to another host using scp
#if ($phase eq 'backup-end') {
# system ("scp $tarfile $logfile backup-host:/backup-dir") == 0 ||
# die "copy to backup-host failed";
# unlink $tarfile;
# unlink $logfile;
#}
...
don't work.
Because the Log Fle is at this time not closed and the vzdump command failed with an error.
/backup/foo.log: No such file or directory
INFO: copy to backup-host failed at /usr/local/bin/hook.pl line 43.
I hope you can fix this.
Thanks
Michael
run vzdump with a script lfrom the example perl Script (/usr/share/doc/vzdump/examples/hook-script.pl):
...
# example: copy resulting files to another host using scp
#if ($phase eq 'backup-end') {
# system ("scp $tarfile $logfile backup-host:/backup-dir") == 0 ||
# die "copy to backup-host failed";
# unlink $tarfile;
# unlink $logfile;
#}
...
don't work.
Because the Log Fle is at this time not closed and the vzdump command failed with an error.
/backup/foo.log: No such file or directory
INFO: copy to backup-host failed at /usr/local/bin/hook.pl line 43.
I hope you can fix this.
Thanks
Michael