Skip to content

Instantly share code, notes, and snippets.

@sorl
Created July 1, 2016 13:23
Show Gist options
  • Save sorl/f39e2217d6064fd7de8b69fb099305a9 to your computer and use it in GitHub Desktop.
Save sorl/f39e2217d6064fd7de8b69fb099305a9 to your computer and use it in GitHub Desktop.
rsync files from osx to docker host
#!/bin/bash
fswatch -r "$1" -0 | while read -d "" file
do
rsync -a "$1" "$2"
echo "$file synced"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment