Code

Allow rsyncing to local paths
authorThomas Guyot-Sionnest <dermoth@aei.ca>
Sun, 25 Oct 2009 14:34:45 +0000 (10:34 -0400)
committerThomas Guyot-Sionnest <dermoth@aei.ca>
Thu, 29 Oct 2009 18:17:37 +0000 (14:17 -0400)
tools/sfsnapshot-upload

index 1507cffc063cc7c1262f4eb7e635983bc860a075..e0a2300cc6ed97dcbb76867d2f6cfca8920be152 100755 (executable)
@@ -94,7 +94,8 @@ END_README
 md5sum *.gz | tee -a README > MD5SUM
 
 # Sync the files
-rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER:$OUT_PATH"
+[ -n "$OUT_SERVER" ] && OUT_SERVER="$OUT_SERVER:"
+rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER$OUT_PATH"
 
 trap - EXIT