Minor fixes

This commit is contained in:
Juan 2018-08-23 08:29:16 +02:00
parent cc75be1f93
commit a8aecad1cd
2 changed files with 4 additions and 5 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-vmware (1.0.15) stable; urgency=low
vn-vmware (1.0.16) stable; urgency=low
* Initial Release.

View File

@ -476,14 +476,13 @@ sub backup_machine() {
}
sub rotate_backup() {
log_message "Rotating '$vm_name' backups.";
my $local_dir = "$local_backup_dir/$vm_name";
if ($rotation_days == 0 && $rotation_count == 0) {
return;
}
log_message "Rotating '$vm_name' backups.";
my $local_dir = "$local_backup_dir/$vm_name";
my $regex = qr/\Q$vm_name\E_(\d{4}-\d{2}-\d{2}_\d{2}-\d{2})\.tar\.gz$/;
my @delete_files;