vzdump: remove temporary directories
This bug was introduced with commit a107e264c9
This commit is contained in:
parent
5b1b792095
commit
fe6643b6e9
@ -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 $@;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user