Finally - re-arrange tar params to avoid warning in logs

This commit is contained in:
Brian Read 2025-02-25 12:25:46 +00:00
parent 0fd7137edd
commit ce96f72726

View File

@ -16,8 +16,10 @@
}
my $clvl = $c->stash('compressionlevel');
my $cmd = "/bin/tar --directory / --create @{$c->stash('directories')} --file=-"
. "@{$c->stash('exclude')} | /usr/bin/gzip $clvl ";
my $cmd = "/bin/tar --create --file=- --directory / @{$c->stash('exclude')} "
. "@{$c->stash('directories')} | /usr/bin/gzip $clvl ";
#die("$cmd");
my $success = open my $fh, '-|', $cmd;
unless ($success) { return "Error dowload command."; };
@ -52,4 +54,4 @@
$backup_rec->set_prop('EndEpochTime', "$now");
$backup_rec->set_prop('Result', "0");
%>
%>