Commit eb90521d authored by Dietmar Maurer's avatar Dietmar Maurer

vzdump: remove temporary directories

This bug was introduced with commit 1bb6e88f
parent 0a16bd3f
...@@ -971,7 +971,7 @@ sub exec_backup_task { ...@@ -971,7 +971,7 @@ sub exec_backup_task {
eval { unlink $task->{tmptar} if $task->{tmptar} && -f $task->{tmptar}; }; eval { unlink $task->{tmptar} if $task->{tmptar} && -f $task->{tmptar}; };
warn $@ if $@; warn $@ if $@;
# eval { rmtree $task->{tmpdir} if $task->{tmpdir} && -d $task->{tmpdir}; }; eval { rmtree $task->{tmpdir} if $task->{tmpdir} && -d $task->{tmpdir}; };
warn $@ if $@; warn $@ if $@;
my $delay = $task->{backuptime} = time () - $vmstarttime; my $delay = $task->{backuptime} = time () - $vmstarttime;
......
...@@ -303,8 +303,8 @@ sub cleanup { ...@@ -303,8 +303,8 @@ sub cleanup {
if ($task->{cleanup}->{etc_vzdump}) { if ($task->{cleanup}->{etc_vzdump}) {
my $dir = "$task->{snapdir}/etc/vzdump"; my $dir = "$task->{snapdir}/etc/vzdump";
#eval { rmtree $dir if -d $dir; }; eval { rmtree $dir if -d $dir; };
#$self->logerr ($@) if $@; $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