Skip to content

Instantly share code, notes, and snippets.

@phinze
Created November 13, 2009 22:17
Show Gist options
  • Save phinze/234220 to your computer and use it in GitHub Desktop.
Save phinze/234220 to your computer and use it in GitHub Desktop.
#!/bin/sh
while inotifywait -e modify -e create -e delete -e attrib $1; do
rsync -zrptLv --delete-after -e "ssh" --exclude=.bzr $1 $2
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment