summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@kuecken.unki.net>2007-12-30 15:25:38 +0100
committerAndreas Unterkircher <unki@kuecken.unki.net>2007-12-30 15:25:38 +0100
commit59f8d0b60b40a88d650b7dcf7654a38e81ef2879 (patch)
treeec2b989f6806ca5bb403147dc7dabc190e805138
parent453a3d3c582f1abfa5c9c05fc50c9c1edc004edc (diff)
generic sync script
-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}