summaryrefslogtreecommitdiffstats
path: root/sync_fspot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sync_fspot.sh')
-rwxr-xr-xsync_fspot.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/sync_fspot.sh b/sync_fspot.sh
new file mode 100755
index 0000000..3dfaea9
--- /dev/null
+++ b/sync_fspot.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+RSYNC="/usr/bin/rsync"
+
+F_SPOT_DB="$HOME/.gnome2/f-spot/photos.db"
+F_SPOT_PHOTOS="$HOME/Photos"
+
+DEST="server:/var/www/phpfspot"
+
+rsync -vr --progress --delete -e ssh ${F_SPOT_DB} ${DEST}
+rsync -vr --progress --delete -e ssh ${F_SPOT_PHOTOS} ${DEST}