rsync copy two partitions

To copy the contents from one partition to another:

rsync -avHAXW --info=progress2 /source /target
and here are the options:

  • -a, –archive archive mode; equals -rlptgoD (no -H,-A,-X)
  • -v, –verbose increase verbosity
  • -H, –hard-links preserve hard links
  • -A, –acls preserve ACLs (implies -p)
  • -X, –xattrs preserve extended attributes
  • -W, –whole-file copy files whole (w/o delta-xfer algorithm)
  • -u, –update skip files that are newer on the receiver
  • –progress show progress during transfer

and here some additional options worth a look:

  • -z, –compress compress file data during the transfer
  • –exclude=PATTERN exclude files matching PATTERN
  • –include=PATTERN don’t exclude files matching PATTERN
  • –log-file=FILE log what we’re doing to the specified FILE

Leave a Reply