Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #!/bin/bash
  2. lockfile=/tmp/rsync.lock
  3.  
  4. [ -e ${lockfile} ] || exit 100
  5. touch ${lockfile}
  6.  
  7. rsync -avP /source user@host:/destination
  8. rm -f ${lockfile}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement