98_backup.pm: fix %L for statefile (Forum #89809)

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@17053 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-07-30 17:16:17 +00:00
parent fc73a86f5d
commit 0df785c44e

View File

@ -52,6 +52,9 @@ CommandBackup($$)
my $modpath = AttrVal("global", "modpath","");
my $configfile = AttrVal("global", "configfile", "");
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
$configfile = '' if ($configfile eq 'fhem.cfg' || configDBUsed());