2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

98_configdb.pm: dump configDB specific tables only

git-svn-id: https://svn.fhem.de/fhem/trunk@16120 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2018-02-08 14:03:26 +00:00
parent 5e86381150
commit b932e050f7

View File

@ -76,8 +76,7 @@ sub CommandConfigdb($$) {
if ($dbtype eq 'SQLITE') {
(undef,$source) = split (/=/, $dbconn);
my $dbtables = "fhemversions fhemconfig fhemstate fhemb64filesave";
my $dumpcmd = "echo '.dump ".$dbtables."' | sqlite3 $source $gzip > $target";
my $dumpcmd = "echo '.dump fhem%' | sqlite3 $source $gzip > $target";
Log 4,"configDB: $dumpcmd";
$ret = qx($dumpcmd);
return $ret if $ret; # return error message if available