to transfer files from localhost to remote
rsync -tracdv --delete username@hostname:/sites/scripts/env2 /sites/env2
-t - preserve timestamp-r - recurse into directories
-a - archive mode
-c - skip based on checksum, not mod-time & size
-d - transfer directories without recursing
-v - verbose mode
-- delete - delete files in destination if source has deleted them.
for more info
man rsync
rsync -h
No comments:
Post a Comment