diff --git a/management/backup.py b/management/backup.py index 1887af79..d8f8c50e 100755 --- a/management/backup.py +++ b/management/backup.py @@ -463,8 +463,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',