Adding fix to avoid rsync temp files
This commit is contained in:
+2
-1
@@ -31,7 +31,7 @@ _DOWN_EXCLUDES = [
|
||||
"media/videos/narration_combined.mov",
|
||||
"**/chunks/",
|
||||
"*.tmp",
|
||||
".DS_Store",
|
||||
".*", # rsync in-progress temp files (.filename.XXXXXX) and .DS_Store
|
||||
]
|
||||
|
||||
|
||||
@@ -390,6 +390,7 @@ def cmd_down(project_path: Path, verbose: bool, dry_run: bool) -> int:
|
||||
rsync_shared_cmd = [
|
||||
"rsync", "-av", "--progress",
|
||||
"-e", f"ssh -p {server['port']}",
|
||||
*[f"--exclude={p}" for p in _DOWN_EXCLUDES],
|
||||
f"{server['user']}@{server['host']}:{remote_shared}/",
|
||||
f"{local_shared}/",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user