Simple bash script. Watches specified directory for changes and copy newly created or modified files to Amazon S3 Cloud.
This uses the inotifywait program, which on a Debian-based system is part of the 'inotify-tools' package.
Specify the following variables:
WATCH_DIR='/some/dir'
BUCKET='amazon_bucket_name'
sudo apt-get install -y python-pip
sudo pip install awscli