Exemplo n.º 1
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.º 2
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])