Advertisement
RussianSpaceGecko

Untitled

Oct 21st, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. SERVERS="cms c21b"
  4. FILES=".vimrc .bashrc .bash_profile .tmux.conf local/ .vim/"
  5.  
  6. for FILE in $FILES
  7. do
  8.    for SERVER in $SERVERS
  9.    do
  10.       rsync -avruzP $SERVER:$FILE $FILE
  11.    done
  12.  
  13.    for SERVER in $SERVERS
  14.    do
  15.       rsync -avruzP $FILE $SERVER:$FILE
  16.    done
  17. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement