Skip navigation

Camera syncs automatically on plug in

December 31st, 2006 by Matt Bracewell · No Comments

Step 1

Create the following script somewhere. I choose ~/bin.

#!/bin/bash
src=/insert/path/to/mounted/camera
DST=/home/shared/Photos/camera_sync/
rsync -rtv --modify-window=1 --progress --ignore-existing $SRC $DST
xmessage "Camera Sync Complete!"

Step 2

Find the gnome removable media preferences application. (On Ubuntu it’s at System->Preferences->Removable Drives and Media).

Under the Multimedia tab change the Digital Camera command to:

gnome-terminal -e "/path/to/your/script"

Tags: Geeky · Linux