...
Code Block | ||
---|---|---|
| ||
rsync -r -tperms -p --owner --group -v-links --progressrecursive --delete -l-times -z-verbose -s -progress --compress --sparse /home/tempadmin/tmp/source /home/tempadmin/tmp/destination |
...
This option causes rsync to set the owner of the destination file to be the same as the source
filesource file, but only if the receiving rsync is being run as the super-user (see also the --super
option super option to force rsync to attempt super-user activities). Without this option, the owner is
set is set to the invoking user on the receiving side.
The preservation of ownership will associate matching names by default, but may fall back to
using to using the ID number in some circumstances (see also the --numeric-ids option for a full dis-cussion). discussion). cussion).
--group
This option causes rsync to set the group of the destination file to be the same as the source
file. If the receiving program is not is not running as the super-user (or if --no-super was speci-fied), specified),
fied), only groups that the invoking user on the receiving side is a member of will be pre-served. preserved.
served. Without this option, the group is set to the default group of the invoking user on
the receiving side.
The preservation of group information will associate matching names by default, but may fall
back to using the ID number in some circumstances some circumstances (see also the --numeric-ids option for a
full discussion).
--links
Copy symbolic links as symbolic links.
--sparse
Try to handle sparse files efficiently so they take up less space on the destination. Conflicts with --inplace because it's not possible to overwrite data in a sparse fashion. NOTE: Don't use this option when the destination is a Solaris "tmpfs" filesystem.
On the Mac OS X to backup iPhoto,
...