Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [ 1 ]
- do
- rsync -avrvv --size-only --partial --progress user@host:/path_on_server localpath
- if [ "$?" = "0" ] ; then
- echo "rsync finished"
- exit
- else
- echo "Rsync problem, retrying in 3 minutes"
- sleep 180
- fi
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement