equal
deleted
inserted
replaced
45 |
45 |
46 |
46 |
47 def rsync_export(path, remotepath, filters): |
47 def rsync_export(path, remotepath, filters): |
48 print("Rsync %s to %s",(path,remotepath)) |
48 print("Rsync %s to %s",(path,remotepath)) |
49 |
49 |
|
50 filter_option_str = "--progress --stats" |
50 if filters: |
51 if filters: |
51 filter_option_str = " ".join(["--filter \"%s\"" % (f) for f in filters]) |
52 filter_option_str += " " + " ".join(["--filter \"%s\"" % (f) for f in filters]) |
52 else: |
|
53 filter_option_str ="" |
|
54 |
53 |
55 run("mkdir -p \"%s\"" % remotepath) |
54 run("mkdir -p \"%s\"" % remotepath) |
56 rsync_project(remotepath, local_dir=path, extra_opts=filter_option_str, delete=True) |
55 rsync_project(remotepath, local_dir=path, extra_opts=filter_option_str, delete=True) |
57 print("Rsync %s to %s done",(path,remotepath)) |
56 print("Rsync %s to %s done",(path,remotepath)) |
58 |
57 |