WATCH=/home/user/MyDocs/DCIM CLOUD=user@remote.host:/path/ inotifywait --monitor -e close_write --format "%w" $WATCH |\ while read file do echo (dbg) added $file, synchronizing.. # convert/mogrify to make a smaller version? rsync -avz $WATCH $CLOUD done