--- a/sbin/sync/fabfile.py Thu Sep 20 08:47:58 2012 +0900
+++ b/sbin/sync/fabfile.py Thu Sep 20 15:12:34 2012 +0900
@@ -42,14 +42,12 @@
run("rm -f \"%s\"" % (tempfilepath))
return res
-
def rsync_export(path, remotepath, filters):
print("Rsync %s to %s",(path,remotepath))
+ filter_option_str = "--progress --stats"
if filters:
- filter_option_str = " ".join(["--filter \"%s\"" % (f) for f in filters])
- else:
- filter_option_str =""
+ filter_option_str += " " + " ".join(["--filter \"%s\"" % (f) for f in filters])
run("mkdir -p \"%s\"" % remotepath)
rsync_project(remotepath, local_dir=path, extra_opts=filter_option_str, delete=True)