Commit 9ffff524 authored by Dietmar Maurer's avatar Dietmar Maurer

vzdump: remove temporary directories

This bug was introduced with commit 1bb6e88f
parent 6a143a40
......@@ -971,7 +971,7 @@ sub exec_backup_task {
eval { unlink $task->{tmptar} if $task->{tmptar} && -f $task->{tmptar}; };
warn $@ if $@;
# eval { rmtree $task->{tmpdir} if $task->{tmpdir} && -d $task->{tmpdir}; };
eval { rmtree $task->{tmpdir} if $task->{tmpdir} && -d $task->{tmpdir}; };
warn $@ if $@;
my $delay = $task->{backuptime} = time () - $vmstarttime;
......
......@@ -303,8 +303,8 @@ sub cleanup {
if ($task->{cleanup}->{etc_vzdump}) {
my $dir = "$task->{snapdir}/etc/vzdump";
#eval { rmtree $dir if -d $dir; };
#$self->logerr ($@) if $@;
eval { rmtree $dir if -d $dir; };
$self->logerr ($@) if $@;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment