Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- lockfile=/tmp/rsync.lock
- [ -e ${lockfile} ] || exit 100
- touch ${lockfile}
- rsync -avP /source user@host:/destination
- rm -f ${lockfile}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement