mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
98_backup.pm: fix %L for statefile (Forum #89809)
git-svn-id: https://svn.fhem.de/fhem/trunk@17053 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9bb0b13b94
commit
eaf280e699
@ -52,6 +52,9 @@ CommandBackup($$)
|
|||||||
my $modpath = AttrVal("global", "modpath","");
|
my $modpath = AttrVal("global", "modpath","");
|
||||||
my $configfile = AttrVal("global", "configfile", "");
|
my $configfile = AttrVal("global", "configfile", "");
|
||||||
my $statefile = AttrVal("global", "statefile", "");
|
my $statefile = AttrVal("global", "statefile", "");
|
||||||
|
my $now = gettimeofday();
|
||||||
|
my @t = localtime($now);
|
||||||
|
$statefile = ResolveDateWildcards($statefile, @t);
|
||||||
|
|
||||||
# prevent duplicate entries in backup list for default config, forum #54826
|
# prevent duplicate entries in backup list for default config, forum #54826
|
||||||
$configfile = '' if ($configfile eq 'fhem.cfg' || configDBUsed());
|
$configfile = '' if ($configfile eq 'fhem.cfg' || configDBUsed());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user