Rsync
From Attie's Wiki
(Difference between revisions)
(Created page with "Trailing slashes mean things! ==Sync 2 Directories== <source lang="bash"> rsync -av ${SRC_DIR} ${DEST_DIR} </source>") |
m |
||
Line 1: | Line 1: | ||
Trailing slashes mean things! | Trailing slashes mean things! | ||
− | == | + | ==Mirror, left to right (no deletes)== |
<source lang="bash"> | <source lang="bash"> | ||
rsync -av ${SRC_DIR} ${DEST_DIR} | rsync -av ${SRC_DIR} ${DEST_DIR} | ||
+ | </source> | ||
+ | |||
+ | ==Mirror, left to right (with deletions)== | ||
+ | <source lang="bash"> | ||
+ | rsync -av --delete-delay ${SRC_DIR} ${DEST_DIR} | ||
</source> | </source> |
Latest revision as of 09:30, 8 April 2014
Trailing slashes mean things!
[edit] Mirror, left to right (no deletes)
rsync -av ${SRC_DIR} ${DEST_DIR}
[edit] Mirror, left to right (with deletions)
rsync -av --delete-delay ${SRC_DIR} ${DEST_DIR}