Adjust for Borg 2's change from "rclone://" repository URLs to just "rclone:".
This commit is contained in:
parent
1426859e1c
commit
fe0fe27c36
1 changed files with 5 additions and 7 deletions
|
|
@ -233,9 +233,7 @@ def normalize(config_filename, config):
|
|||
path=updated_repository_path,
|
||||
)
|
||||
)
|
||||
elif repository_path.startswith('ssh://') or repository_path.startswith(
|
||||
'rclone://'
|
||||
):
|
||||
elif repository_path.startswith('ssh://') or repository_path.startswith('rclone:'):
|
||||
config['repositories'].append(repository_dict)
|
||||
else:
|
||||
rewritten_repository_path = f"ssh://{repository_path.replace(':~', '/~').replace(':/', '/').replace(':', '/./')}"
|
||||
|
|
@ -244,7 +242,7 @@ def normalize(config_filename, config):
|
|||
dict(
|
||||
levelno=logging.WARNING,
|
||||
levelname='WARNING',
|
||||
msg=f'{config_filename}: Remote repository paths without ssh:// or rclone:// syntax are deprecated and support will be removed from a future release. Interpreting "{repository_path}" as "{rewritten_repository_path}"',
|
||||
msg=f'{config_filename}: Remote repository paths without ssh:// or rclone: syntax are deprecated and support will be removed from a future release. Interpreting "{repository_path}" as "{rewritten_repository_path}"',
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue