2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2024-11-22 09:49:50 +00:00

configDB: add command configdb dump for mysql

git-svn-id: https://svn.fhem.de/fhem/trunk@11537 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2016-05-28 16:54:59 +00:00
parent a603441915
commit 121ce0f360
2 changed files with 10 additions and 8 deletions

View File

@ -81,7 +81,13 @@ sub CommandConfigdb($$) {
$source = $dbname;
} elsif ($dbtype eq 'POSTGRESQL') {
return "configdb dump not yet supported for POSTGRESQL!";
# ($dbname,undef) = split (/;/,$dbconn);
# (undef,$dbname) = split (/=/,$dbname);
# $ret = qx(PGPASSWORD=$dbpass pg_dump -U $dbuser $dbname -f $target);
# return $ret if $ret;
# $source = $dbname;
return "configdb dump not yet supported for $dbtype!";
} else {
return "configdb dump not supported for $dbtype!";
}
@ -456,7 +462,6 @@ compare device: telnetPort in current version 0 (left) to version: 1 (right)
<li><code>configdb dump</code></li><br/>
Create a dump file from from database.<br/>
Currently only supported for sqlite!<br/>
<br/>
<br/>

View File

@ -107,7 +107,9 @@
#
# 2016-03-26 - added log entry for search (verbose=5)
#
# 2016-05-22 - added configdb dump (for sqlite only!)
# 2016-05-22 - added configdb dump (for sqlite)
#
# 2016-05-28 - added configdb dump (for mysql)
#
##############################################################################
#
@ -820,11 +822,6 @@ sub _cfgDB_Info() {
return join("\n", @r);
}
# return database type
sub _cfgDB_typeInfo() {
return ($cfgDB_dbtype,$cfgDB_dbconn);
}
# recover former config from database archive
sub _cfgDB_Recover($) {
my ($version) = @_;