From: Andreas Unterkircher Date: Sun, 30 Dec 2007 14:25:38 +0000 (+0100) Subject: generic sync script X-Git-Tag: phpfspot-1.2~12 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=commitdiff_plain;h=59f8d0b60b40a88d650b7dcf7654a38e81ef2879 generic sync script --- 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}