From 0ed717b3d1e215eeaf22d6007351887c366e1e88 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 4 Apr 2020 20:12:18 +0200 Subject: [PATCH] backup: Add restore functionality to the backup-cli utility --- backup/backup-cli | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backup/backup-cli b/backup/backup-cli index 2abe5df..88a4ee0 100755 --- a/backup/backup-cli +++ b/backup/backup-cli @@ -55,12 +55,22 @@ def init(lightning_dir, backend_url): )) +@click.command() +@click.argument("backend-url") +@click.argument("restore-destination") +def restore(backend_url, restore_destination): + destination = backend_url + backend = get_backend(destination) + backend.restore(restore_destination) + + @click.group() def cli(): pass cli.add_command(init) +cli.add_command(restore) if __name__ == "__main__": cli()