meta data for this page
  •  

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
linux:rsync [2024/11/25 19:33] niziaklinux:rsync [2025/03/30 19:56] (current) niziak
Line 16: Line 16:
 rsync want to transfer - add ''-i'' option (''--itemize-changes''). Usefull also with ''-n'' ''--dry-run''. rsync want to transfer - add ''-i'' option (''--itemize-changes''). Usefull also with ''-n'' ''--dry-run''.
  
 +===== local replication =====
 +
 +[[https://superuser.com/questions/307541/copy-entire-file-system-hierarchy-from-one-drive-to-another|Copy entire file system hierarchy from one drive to another]]
 +
 +<code bash>
 +rsync -avxHAXS --numeric-ids --info=progress2 / /new-disk/
 +</code>
 +
 +<code>
 +-a  : all files, with permissions, etc..
 +-v  : verbose, mention files
 +-x  : stay on one file system
 +-H  : preserve hard links (not included with -a)
 +-A  : preserve ACLs/permissions (not included with -a)
 +-X  : preserve extended attributes (not included with -a)
 +-S, --sparse                handle sparse files efficiently
 +
 +To improve the copy speed, add -W (--whole-file), to avoid calculating deltas/diffs of the files. 
 +</code>
  
 ===== between two remotes ===== ===== between two remotes =====