2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 08:11:44 +00:00

98_configdb.pm: add attribute dumpPath

git-svn-id: https://svn.fhem.de/fhem/trunk@15544 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2017-12-02 19:48:22 +00:00
parent dcc1be799d
commit da0fe73d01

View File

@ -63,8 +63,9 @@ sub CommandConfigdb($$) {
my ($dbconn,$dbuser,$dbpass,$dbtype) = _cfgDB_readConfig();
my ($dbname,$dbhostname,$dbport,$gzip,$mp,$ret,$size,$source,$target,$ts);
$ts = strftime('%Y-%m-%d_%H-%M-%S',localtime);
$mp = AttrVal('global','modpath','.');
$target = "$mp/log/configDB_$ts.dump";
$mp = $configDB{attr}{'dumpPath'};
$mp //= AttrVal('global','modpath','.').'/log';
$target = "$mp/configDB_$ts.dump";
if (lc($param1) eq 'unzipped') {
$gzip = '';