Exemplo n.º 1
0
    def handle(self, *labels, **options):
        backup_count = settings.BACKUP_COUNT
        if labels or len(labels) > 1:
            backup_count = labels[0]

        manager = BackupManager()
        manager.remove_old_files(backup_count)
Exemplo n.º 2
0
 def handle(self, *labels, **options):
     backup_count = settings.BACKUP_COUNT
     if labels or len(labels) > 1:
         backup_count = labels[0]
     
     manager = BackupManager()
     manager.remove_old_files(backup_count)
Exemplo n.º 3
0
def make_backup():
	manager = BackupManager()
	manager.make_backup()
Exemplo n.º 4
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])
Exemplo n.º 5
0
def make_backup():
	manager = BackupManager()
	manager.make_backup()
Exemplo n.º 6
0
 def handle(self, *labels, **options):
     manager = BackupManager()
     print manager.make_backup()
Exemplo n.º 7
0
	def handle(self, *labels, **options):
		manager = BackupManager()
		print manager.make_backup()
Exemplo n.º 8
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])
Exemplo n.º 9
0
def make_backup():
    logger.info("Running task: make_backup")
    manager = BackupManager()
    manager.make_backup()
Exemplo n.º 10
0
 def handle(self, *labels, **options):
     manager = BackupManager()
     logger.debug(manager.make_backup())