Guest User

Untitled

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Change these
  4. user='pol'
  5. local='/Users/pol/crux'
  6.  
  7. # Probably don't need to modify below
  8. remote='crux.msu.montana.edu:/rsync'
  9.  
  10. if [ -z "$1" ] ; then
  11. echo "Usage: `basename $0` [push | pull]"
  12. exit $E_NOARGS
  13. fi
  14.  
  15. case $1 in
  16. "pull" ) rsync -av $user@$remote $local;;
  17. "push" ) rsync -vlrpc $local/rsync/ $user@$remote/;;
  18. * ) echo "Usage: `basename $0` [push | pull]";;
  19. esac
Add Comment
Please, Sign In to add comment