
396
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-t, --times
Set the timestamps of the destination file to match those of the
source file, instead of using the time of transfer (that is,
reflecting the existence of a new file on the destination host).
-T dir, --temp-dir=dir
Use dir as rsync’s temporary directory instead of the destina-
tion directory.
-u, --update
Don’t change a destination file if it is newer than the source
file.
--version
Display rsync’s version and compiled-in features.
-v, --verbose
Display the names of files transferred and statistics related to
the transfer.
-W, --whole-file
Transfer the entire files, instead of using rsync’s block checks
to transfer just parts of files where possible.
--write-batch=prefix
Prepare to syncronize systems by writing files, whose names
start with prefix, that describe the transfers to take place.
-x Synonym for --one-file-system.
-z Synonym for --compress.
Examples
Transfer the entire directory proj to the /planning directory on
remote host ourhub:
$ rsync -r proj/ ourhub:/planning
Transfer the files and subdirectories under proj to the /planning
directory on remote host ourhub:
$ rsync -r proj ourhub:/planning
Return files from local directory active to the /tmp/active directory
on remote host ourhub. Files to be transferred are listed in active/
current_work.txt