def restore(args): print "Restore requested." restore_command = ["BackupRestore", 'restore'] path = get_backup_path(args) if not path is None: restore_command.append(path) BackupRestore_main(restore_command)
def backup(args): print "Backup requested." backup_command = ["BackupRestore", 'backup'] path = get_backup_path(args) if not path is None: backup_command.append(path) BackupRestore_main(backup_command)