server/serverctl.py
changeset 2682 0188a4a02403
parent 2615 1ea41b7c0836
child 2711 7aee3bd7a704
--- a/server/serverctl.py	Tue Aug 04 17:16:05 2009 +0200
+++ b/server/serverctl.py	Tue Aug 04 17:39:02 2009 +0200
@@ -663,7 +663,9 @@
         import tempfile
         srcappid = pop_arg(args, 1, msg='No source instance specified !')
         destappid = pop_arg(args, msg='No destination instance specified !')
-        _, output = tempfile.mkstemp()
+        # XXX -system necessary to match file name modified on source restore.
+        # should not have to expect this.
+        _, output = tempfile.mkstemp('-system.sql')
         if ':' in srcappid:
             host, srcappid = srcappid.split(':')
             _remote_dump(host, srcappid, output, self.config.sudo)