From c9d438c6051c649f0185ca23cd51e54c51d0eeec Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 2 Jun 2020 10:41:57 +0200 Subject: [PATCH] Bugs fixed --- debian/changelog | 2 +- vn-vmware.pl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 8fb0cd6..ef06d4e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -vn-vmware (1.1.23) stable; urgency=low +vn-vmware (1.1.24) stable; urgency=low * Initial Release. diff --git a/vn-vmware.pl b/vn-vmware.pl index 7bdc526..a08dad7 100755 --- a/vn-vmware.pl +++ b/vn-vmware.pl @@ -540,7 +540,7 @@ sub backup_machine() { } $pigz_processes = max(1, $pigz_processes); - my $tar_command = "tar -I \"pigz -p $pigz_processes\" -c -C \"$local_tmp_dir\" ."; + my $tar_command = "tar -I \"pigz -p $pigz_processes\" --create --sparse -C \"$local_tmp_dir\" ."; if (defined($passphrase_file)) { my $gpg_command = "gpg -c --passphrase-file \"$passphrase_file\" --batch --yes -o \"$tmp_file\""; @@ -822,8 +822,8 @@ sub replicate_backups() { log_message $rsync_command; unless ($test) { - my $tar_status = system($rsync_command); - unless ($rsync_command == 0) { + my $rsync_status = system($rsync_command); + unless ($rsync_status == 0) { die "An error occurred while replicating backups."; } }