Bugs fixed
gitea/vn-vmware/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2020-06-02 10:41:57 +02:00
parent ad0c2b1cb2
commit c9d438c605
2 changed files with 4 additions and 4 deletions

2
debian/changelog vendored
View File

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

View File

@ -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.";
}
}