]> scripts.mit.edu Git - wizard.git/blobdiff - wizard/command/backup.py
Revamp database infrastructure.
[wizard.git] / wizard / command / backup.py
index 7d334aed7f157827aee3b33f223738ee1ce2cd7f..d7be811414c33e566d12cdac1a0fa1cbc35e41eb 100644 (file)
@@ -1,9 +1,4 @@
-import logging
-import optparse
-import sys
-import distutils.version
-
-from wizard import command, deploy, git, shell, util
+from wizard import command, deploy, shell, util
 
 def main(argv, baton):
     options, args = parse_args(argv, baton)
@@ -13,7 +8,7 @@ def main(argv, baton):
         dir = args[0]
     shell.drop_priviledges(dir, options.log_file)
     util.chdir(dir)
-    d = deploy.Deployment(".")
+    d = deploy.ProductionCopy(".")
     d.verify()
     d.verifyConfigured()
     print d.backup(options)