Common Usage
Here is common usage,
Code Block | ||
---|---|---|
| ||
rsync -r -t -p -o-owner -g -v --progress --delete -l -z -s /home/tempadmin/tmp/source /home/tempadmin/tmp/destination |
--owner
This option causes rsync to set the owner of the destination file to be the same as the source
file, but only if the receiving rsync is being run as the super-user (see also the --super
option to force rsync to attempt super-user activities). Without this option, the owner 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 the ID number in some circumstances (see also the --numeric-ids option for a full dis-cussion). discussion).
cussion).
On the Mac OS X to backup iPhoto,
Code Block | ||
---|---|---|
| ||
rsync -r -t -p -owner -g -v --progress --delete -l -z -s /home/tempadmin/tmp/source /home/tempadmin/tmp/destination |
--extended-attributes = Copy extended attributes and resource forks
Over SSH
rsync ....
Code Block | ||
---|---|---|
| ||
# Rsync over the Internet rsync --archive --verbose --compress --delete --progress -e "ssh -c arcfour -o Compression=no -x" /source/folder remotebackup@earth.com:/home/user:destination-folder # Rsync over LAN # Same but disable all compression. |
...