summaryrefslogtreecommitdiff
path: root/scripts/vyatta-remote-copy.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-remote-copy.pl')
-rwxr-xr-xscripts/vyatta-remote-copy.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vyatta-remote-copy.pl b/scripts/vyatta-remote-copy.pl
index 93507ad..78959ec 100755
--- a/scripts/vyatta-remote-copy.pl
+++ b/scripts/vyatta-remote-copy.pl
@@ -54,6 +54,10 @@ if ($flag == 0)
{
$save_file=$save_file . ".gz"
}
+if ($flag == 2)
+{
+ $save_file=$save_file . ".tgz"
+}
if ($mode eq 'url') {
print "Saving output to $save_file\n";
my $rc = system("curl -# -T $tmp_file $save_file");