Use the -a
flag, which includes among other things, the options -o
and -g
, which preserves owners and groups. This requires that you run rsync
as root.
Also, see man rsync
.
Use the -a
flag, which includes among other things, the options -o
and -g
, which preserves owners and groups. This requires that you run rsync
as root.
Also, see man rsync
.