View Single Post
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#7
Thanks @magick777 and @pichlo for all the input, and @Estel for the idea.

I've come up with this:

Code:
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
This is untested (I've written it on Notepad). This could be run permanently (or manually before starting a photo shooting session).

Thanks to inotify, there should be (almost) no impact on battery life.

I'll give it a try when I'm home!
 

The Following 4 Users Say Thank You to reinob For This Useful Post: