Use abra app backup command

This commit is contained in:
Moritz 2023-11-09 12:38:34 +01:00
parent 4553408e57
commit d158e7721b
1 changed files with 2 additions and 4 deletions

View File

@ -32,10 +32,8 @@ def move_app(source_app, target_server=False, target_domain=False, move_vols=Fal
copy_secrets(source_app, target_domain)
def backup(app):
# TODO: replace with abra app backup command
backupbot = get_backupbot(app)
output = abra('app', 'run', backupbot, 'app',
'--', 'backup', '-h', app, 'create')
logging.info(f"Start Backup of {app}...")
output = abra('app', 'backup', 'create', app)
print(output)
def copy_files_between_servers(source_server, source_dir, destination_server, destination_dir):