Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cd /path/to/project
- while [ 1 ]; do
- inotifywait --exclude '.git' -r -e modify,moved_to,moved_from,move,create,delete ./
- rsync -ah --exclude='.git/' ./ server:/dev/shm/projectname/ --delete
- done
- exit 0
Add Comment
Please, Sign In to add comment