|
|
@ -539,6 +539,7 @@ def rsync(source, target, delete=False, exclude=None, host=None, key_file=None, |
|
|
|
tokens.append("--delete") |
|
|
|
tokens.append("--delete") |
|
|
|
|
|
|
|
|
|
|
|
if exclude is not None: |
|
|
|
if exclude is not None: |
|
|
|
|
|
|
|
# tokens.append("--exclude-from={'%s'}" % exclude) |
|
|
|
tokens.append("--exclude-from=%s" % exclude) |
|
|
|
tokens.append("--exclude-from=%s" % exclude) |
|
|
|
|
|
|
|
|
|
|
|
# --partial and --progress |
|
|
|
# --partial and --progress |
|
|
@ -653,7 +654,8 @@ def sync(source, target, delete=False, exclude=None, links=True, recursive=True, |
|
|
|
|
|
|
|
|
|
|
|
tokens = list() |
|
|
|
tokens = list() |
|
|
|
tokens.append("rsync") |
|
|
|
tokens.append("rsync") |
|
|
|
tokens.append("--cvs-exclude") |
|
|
|
# tokens.append("--cvs-exclude") |
|
|
|
|
|
|
|
tokens.append("--exclude=.git") |
|
|
|
tokens.append("--checksum") |
|
|
|
tokens.append("--checksum") |
|
|
|
tokens.append("--compress") |
|
|
|
tokens.append("--compress") |
|
|
|
|
|
|
|
|
|
|
@ -664,6 +666,7 @@ def sync(source, target, delete=False, exclude=None, links=True, recursive=True, |
|
|
|
tokens.append("--delete") |
|
|
|
tokens.append("--delete") |
|
|
|
|
|
|
|
|
|
|
|
if exclude is not None: |
|
|
|
if exclude is not None: |
|
|
|
|
|
|
|
# tokens.append("--exclude-from={'%s'}" % exclude) |
|
|
|
tokens.append("--exclude-from=%s" % exclude) |
|
|
|
tokens.append("--exclude-from=%s" % exclude) |
|
|
|
|
|
|
|
|
|
|
|
# --partial and --progress |
|
|
|
# --partial and --progress |
|
|
|