Esempio n. 1
0
 def handle(self, *labels, **options):
     manager = BackupManager()
     print manager.make_backup()
Esempio n. 2
0
def make_backup():
	from staff.backup import BackupManager
	manager = BackupManager()
	manager.make_backup()
Esempio n. 3
0
def export_active_users():
    from staff.backup import BackupManager
    manager = BackupManager()
    manager.export_active_users()
Esempio n. 4
0
def export_active_users():
    from staff.backup import BackupManager
    manager = BackupManager()
    manager.export_active_users()
Esempio n. 5
0
 def handle(self, *labels, **options):
     manager = BackupManager()
     manager.export_active_users()
Esempio n. 6
0
def make_backup():
    from staff.backup import BackupManager
    manager = BackupManager()
    manager.make_backup()
Esempio n. 7
0
	def handle(self, *labels, **options):
		manager = BackupManager()
		print manager.make_backup()
Esempio n. 8
0
 def handle(self, *labels, **options):
     backup_file = options['backup_file'][0]
     manager = BackupManager()
     manager.restore_backup(backup_file)
Esempio n. 9
0
 def handle(self, *labels, **options):
     if not labels or len(labels) != 1:
         raise CommandError('Enter one argument, the path to the backup tar file.')
     manager = BackupManager()
     manager.restore_backup(labels[0])
Esempio n. 10
0
 def handle(self, *labels, **options):
     backup_file = options['backup_file'][0]
     manager = BackupManager()
     manager.restore_backup(backup_file)
Esempio n. 11
0
 def handle(self, *labels, **options):
     if not labels or len(labels) != 1:
         raise CommandError('Enter one argument, the path to the backup tar file.')
     manager = BackupManager()
     manager.restore_backup(labels[0])