From eaf280e6994a34202675b3c47ab7ee9c5db69a37 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 30 Jul 2018 17:16:17 +0000 Subject: [PATCH] 98_backup.pm: fix %L for statefile (Forum #89809) git-svn-id: https://svn.fhem.de/fhem/trunk@17053 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_backup.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fhem/FHEM/98_backup.pm b/fhem/FHEM/98_backup.pm index face9ad81..076c2e82d 100644 --- a/fhem/FHEM/98_backup.pm +++ b/fhem/FHEM/98_backup.pm @@ -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());