Adding rsync --delete flag on up

This commit is contained in:
2026-05-09 14:59:01 +02:00
parent 3a9e5d17e9
commit 00e01237ed
+3
View File
@@ -3222,6 +3222,9 @@ def cmd_sync(project_path: Path, verbose: bool, dry_run: bool, download: bool) -
"-e", "-e",
f"ssh -p {server['port']}", f"ssh -p {server['port']}",
*[f"--exclude={p}" for p in _RSYNC_EXCLUDES], *[f"--exclude={p}" for p in _RSYNC_EXCLUDES],
# On upload: delete server-side files that no longer exist locally so
# the remote stays an exact mirror of the local project.
*(["--delete"] if not download else []),
src, src,
dest, dest,
] ]