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")
115
131
cmd = [rsync_name, "-av", "--delete"]
117
133
cmd.extend(('-e', 'ssh'))