mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Add to use helper function to create timestamped trans files
This commit is contained in:
@@ -300,9 +300,8 @@ if ($mode == 0) {
|
||||
$file = &date_subs($path);
|
||||
}
|
||||
else {
|
||||
my $fdate = strftime('%Y-%m-%d_%H-%M-%S', localtime());
|
||||
my $ext = &has_command("gzip") ? '.tar.gz' : '.tar';
|
||||
$file = &transname("backup_$fdate$ext");
|
||||
$file = &transname_timestamped("backup", $ext);
|
||||
}
|
||||
|
||||
# Get module descriptions
|
||||
|
||||
Reference in New Issue
Block a user