mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 08:34:18 +01:00
backup: Refuse to create a new FileBakend if the backing file exists
This commit is contained in:
@@ -12,7 +12,7 @@ import sys
|
||||
@click.argument("backend-url")
|
||||
def init(lightning_dir, backend_url):
|
||||
destination = backend_url
|
||||
backend = get_backend(destination)
|
||||
backend = get_backend(destination, create=True)
|
||||
backend.version, backend.prev_version = 0, 0
|
||||
backend.offsets = [512, 0]
|
||||
backend.version_count = 0
|
||||
|
||||
Reference in New Issue
Block a user