rsync
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
rsync [2012/05/30 19:46] – javi | rsync [2012/11/02 10:51] – javi | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== rsync ====== | ||
+ | |||
+ | copy remote | ||
+ | |||
+ | ===== Receta 1 ===== | ||
+ | |||
http:// | http:// | ||
Line 11: | Line 17: | ||
-r recursive into subdirectories\\ | -r recursive into subdirectories\\ | ||
-v verbose | -v verbose | ||
+ | |||
+ | ===== Receta 2 ===== | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | SOURCE="/ | ||
+ | DESTINATION="/ | ||
+ | LOG="/ | ||
+ | RSYNC="/ | ||
+ | PORT=" | ||
+ | # Requires previous ssh keys exchange | ||
+ | # http:// | ||
+ | USER=" | ||
+ | REMOTE_HOST=" | ||
+ | |||
+ | DATE=" | ||
+ | |||
+ | echo " | ||
+ | ################### | ||
+ | |||
+ | $RSYNC -arv --no-implied-dirs --ignore-errors --rsh "ssh -p$PORT" | ||
+ | |||
+ | DATE=" | ||
+ | |||
+ | echo " | ||
+ | ################### | ||
+ | </ |
rsync.txt · Last modified: 2020/09/07 09:44 by jose