- do not make path when dry-run
This commit is contained in:
@@ -70,7 +70,8 @@ if __name__ == '__main__':
|
||||
else:
|
||||
latest = ''
|
||||
|
||||
os.makedirs(os.path.join(backup_path_full, args.source[1:]))
|
||||
if run:
|
||||
os.makedirs(os.path.join(backup_path_full, args.source[1:]))
|
||||
rsync = 'rsync {} --delete "{}" {} "{}"'.format(args.rsync, os.path.join(args.source, ''), latest,
|
||||
os.path.join(backup_path_full, args.source[1:]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user