-
Notifications
You must be signed in to change notification settings - Fork 1
rsync
Evan Moran edited this page Sep 4, 2013
·
3 revisions
Archive Directory (Recursive + Preserve Timestamps, Permissions, Symbolic Links)
rsync -a <src_dir> <dest_dir>
Sync Specific File
rsync -v <src_file> <dest_file>
IMPORTANT: The final slash in paths really matter:
- Source slashed (
src/) -- Sync files insidesrc/... - Source not slashed (
src) - Sync folder ofsrc/ - Dest slashed (
dest/) -- Sync to insidedest/... - Dest not slashed (
dest) -- Sync to folderdest/
For example:
rsync -a src/ dest/ # Copy data to new folder name