Site Tools


quickref:rsync

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
quickref:rsync [2026-11-19 Thu 03:57] – add rsync quickref: date-filtered transfers and source cleanup demon-machinequickref:rsync [2026-11-19 Thu 03:58] (current) – fix broken list item: nowiki the quoted printf format demon-machine
Line 18: Line 18:
 ===== Gotchas ===== ===== Gotchas =====
  
-  * Paths in the list must be relative to the source dir. ''find /path/src'' yields ''/path/src/a.txt'', and rsync then looks for ''/path/src/path/src/a.txt''. Run ''find .'' from inside the source, or use ''find . -printf '%P\0'''.+  * Paths in the list must be relative to the source dir. ''find /path/src'' yields ''/path/src/a.txt'', and rsync then looks for ''/path/src/path/src/a.txt''. Run ''find .'' from inside the source, or use ''find . -printf %%'%P\0'%%'' instead.
   * ''-R'' (relative) is implied by ''%%--files-from%%'', so the directory structure is preserved automatically.   * ''-R'' (relative) is implied by ''%%--files-from%%'', so the directory structure is preserved automatically.
   * ''-a'' does **not** imply ''-r'' when ''%%--files-from%%'' is used. Only matters when the list contains directories.   * ''-a'' does **not** imply ''-r'' when ''%%--files-from%%'' is used. Only matters when the list contains directories.
-  * ''-print0'' together with ''--from0'' survives spaces and newlines in filenames.+  * ''-print0'' together with ''%%--from0%%'' survives spaces and newlines in filenames.
  
 ===== Creation date vs mtime ===== ===== Creation date vs mtime =====
Line 52: Line 52:
 Each source file is removed only once that file is confirmed complete on the destination. Already-transferred files are not re-copied, but they are still deleted, so the command is idempotent and an interrupted run resumes cleanly. Each source file is removed only once that file is confirmed complete on the destination. Already-transferred files are not re-copied, but they are still deleted, so the command is idempotent and an interrupted run resumes cleanly.
  
-Do **not** reach for ''-n --remove-source-files'' to preview the removals: it prints nothing about them. Verify separately.+Do **not** reach for ''-n %%--remove-source-files%%'' to preview the removals: it prints nothing about them. Verify separately.
  
 ==== Verify, then delete from the list ==== ==== Verify, then delete from the list ====
quickref/rsync.1795060651.txt.gz · Last modified: by demon-machine