diff --git a/management/backup.py b/management/backup.py index 7dfd7619..42621820 100755 --- a/management/backup.py +++ b/management/backup.py @@ -464,8 +464,7 @@ def list_target_files(config): target_path = target.path if not target_path.endswith('/'): target_path += "/" - if target_path.startswith('/'): - target_path = target_path[1:] + target_path = target_path.removeprefix('/') rsync_command = [ 'rsync', '-e',