98_configdb.pm: add attribute dumpPath

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

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 = '';