Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Change these
- user='pol'
- local='/Users/pol/crux'
- # Probably don't need to modify below
- remote='crux.msu.montana.edu:/rsync'
- if [ -z "$1" ] ; then
- echo "Usage: `basename $0` [push | pull]"
- exit $E_NOARGS
- fi
- case $1 in
- "pull" ) rsync -av $user@$remote $local;;
- "push" ) rsync -vlrpc $local/rsync/ $user@$remote/;;
- * ) echo "Usage: `basename $0` [push | pull]";;
- esac
Add Comment
Please, Sign In to add comment