Guest User

Untitled

a guest
Oct 18th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/bash
  2. cd /path/to/project
  3.  
  4. while [ 1 ]; do
  5. inotifywait --exclude '.git' -r -e modify,moved_to,moved_from,move,create,delete ./
  6. rsync -ah --exclude='.git/' ./ server:/dev/shm/projectname/ --delete
  7. done
  8.  
  9. exit 0
Add Comment
Please, Sign In to add comment