113
113
def rsync(source, target, ssh=False, excludes=(), silent=False,
122
>>> rsync(new_dir + "/a", new_dir + "/b", excludes=("*.py",), silent=True)
125
>>> rsync(new_dir + "/a", new_dir + "/b", excludes=("*.py",), silent=True, rsync_name="rsyncc")
131
115
cmd = [rsync_name, "-av", "--delete"]
133
117
cmd.extend(('-e', 'ssh'))