mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
d5116c09e5
commit
c9645c9f60
@ -63,8 +63,9 @@ sub CommandConfigdb($$) {
|
|||||||
my ($dbconn,$dbuser,$dbpass,$dbtype) = _cfgDB_readConfig();
|
my ($dbconn,$dbuser,$dbpass,$dbtype) = _cfgDB_readConfig();
|
||||||
my ($dbname,$dbhostname,$dbport,$gzip,$mp,$ret,$size,$source,$target,$ts);
|
my ($dbname,$dbhostname,$dbport,$gzip,$mp,$ret,$size,$source,$target,$ts);
|
||||||
$ts = strftime('%Y-%m-%d_%H-%M-%S',localtime);
|
$ts = strftime('%Y-%m-%d_%H-%M-%S',localtime);
|
||||||
$mp = AttrVal('global','modpath','.');
|
$mp = $configDB{attr}{'dumpPath'};
|
||||||
$target = "$mp/log/configDB_$ts.dump";
|
$mp //= AttrVal('global','modpath','.').'/log';
|
||||||
|
$target = "$mp/configDB_$ts.dump";
|
||||||
|
|
||||||
if (lc($param1) eq 'unzipped') {
|
if (lc($param1) eq 'unzipped') {
|
||||||
$gzip = '';
|
$gzip = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user