This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# DEPENDS ON: dialog, fswatch, rsync, ssh | |
# | |
# This script uses fswatch to monitor a directory for changes and when changes are detected | |
# Runs rsync to sync the changes to a remote server | |
# | |
# Features: | |
# - prompt for initial sync from remote server | |
# - delay after rsync to make sure it doesn't run too frequently |