From manpage of rsync
,
-a, --archive
This is equivalent to
-rlptgoD
. It is a quick way of saying you want recursion and want to preserve almost everything (with -H being a notable omission). The only exception to the above equivalenceis when --files-from is specified, in which case -r is not implied.Note that -a does not preserve hardlinks, because finding multiply-linked files is expensive. You must separately specify -H.
What is the closest for cp
to rsync -a
, in terms of input and result of file copy, ignoring transfer speed?
What does cp -arl
miss compare to rsync -a
? Only -D
of rsync
?
Does cp -arl
behave the same as rsync -a
except those aspects it misses?
Thanks.