Commit b66f12dd authored by yodax's avatar yodax Committed by Joshua Tauberer

Fix rsync backup. The path was not append properly

parent 6e04eb49
...@@ -399,10 +399,11 @@ def list_target_files(config): ...@@ -399,10 +399,11 @@ def list_target_files(config):
rsync_fn_size_re = re.compile(r'.* ([^ ]*) [^ ]* [^ ]* (.*)') rsync_fn_size_re = re.compile(r'.* ([^ ]*) [^ ]* [^ ]* (.*)')
rsync_target = '{host}:{path}' rsync_target = '{host}:{path}'
if not target.path.endswith('/'): target_path = target.path
target_path = target.path + '/' if not target_path.endswith('/'):
if target.path.startswith('/'): target_path = target_path + '/'
target_path = target.path[1:] if target_path.startswith('/'):
target_path = target_path[1:]
rsync_command = [ 'rsync', rsync_command = [ 'rsync',
'-e', '-e',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment