--- /dev/null
+# Template for import-pdnsdata.ini
+
+[src_db]
+
+# Hostname of the old MySQL server (Default: mysql-pp06.pixelpark.com)
+#host = mysql-pp06.pixelpark.com
+
+# TCP-Portnumber of the old MySQL server (Default: 3306)
+#port = 3306
+
+# MySQL database to use (Default: pdns)
+#schema = pdns
+
+# MySQL user (Default: pdns)
+#user = pdns
+
+# Password of the MySQL user (no defult)
+#password = 'changeme'
+
+[tgt_db]
+
+# Hostname of the PostgreSQL server to import the data to (Default: systemshare.pixelpark.com)
+#host = systemshare.pixelpark.com
+
+# TCP-Portnumber of the target PostgreSQL server (Default: 5432)
+#port = 5432
+
+# The target PostgreSQL database to use (Default: pdns)
+#schema = pdns
+
+# PostgreSQL user (Default: pdns)
+#user = pdns
+
+# Password of the PostgreSQL user (no defult)
+#password = 'changeme'
+
+
+
+# vim: filetype=dosini
from .cfg_app import PpCfgAppError, PpConfigApplication
-__version__ = '0.5.1'
+__version__ = '0.5.2'
LOG = logging.getLogger(__name__)
# =============================================================================
src_cursor.execute(src_sql)
results = src_cursor.fetchall()
- if self.verbose > 2:
+ if self.verbose > 3:
LOG.debug("Got domains:\n{}".format(pp(results)))
for result in results:
src_cursor.execute(src_sql)
results = src_cursor.fetchall()
- if self.verbose > 2:
+ if self.verbose > 3:
LOG.debug("Got cryptokeys:\n{}".format(pp(results)))
if not results:
src_cursor.execute(src_sql)
results = src_cursor.fetchall()
- if self.verbose > 2:
+ if self.verbose > 3:
LOG.debug("Got domainmetadata:\n{}".format(pp(results)))
if not results:
if self.verbose > 1:
LOG.debug("Target SQL:\n{}".format(tgt_sql))
-
with self.tgt_connection.cursor() as tgt_cursor:
with self.src_connection.cursor() as src_cursor:
src_cursor.execute(src_sql)
results = src_cursor.fetchall()
- if self.verbose > 2:
+ if self.verbose > 3:
LOG.debug("Got records:\n{}".format(pp(results)))
if not results:
src_cursor.execute(src_sql)
results = src_cursor.fetchall()
- if self.verbose > 2:
+ if self.verbose > 3:
LOG.debug("Got supermasters:\n{}".format(pp(results)))
if not results:
src_cursor.execute(src_sql)
results = src_cursor.fetchall()
- if self.verbose > 2:
+ if self.verbose > 3:
LOG.debug("Got tsigkeys:\n{}".format(pp(results)))
if not results: