diff options
| author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-10-25 10:34:45 -0400 |
|---|---|---|
| committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-10-29 14:17:37 -0400 |
| commit | bb06aafc5b621e9814baf7d3723440e4ef85b86d (patch) | |
| tree | c72c8c06dea9a855942679129539daa45c97d026 /tools/sfsnapshot-upload | |
| parent | 61e77e54d71579d3717963ae6286922aed9d12d9 (diff) | |
| download | monitoring-plugins-bb06aafc5b621e9814baf7d3723440e4ef85b86d.tar.gz | |
Allow rsyncing to local paths
Diffstat (limited to 'tools/sfsnapshot-upload')
| -rwxr-xr-x | tools/sfsnapshot-upload | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sfsnapshot-upload b/tools/sfsnapshot-upload index 1507cffc..e0a2300c 100755 --- a/tools/sfsnapshot-upload +++ b/tools/sfsnapshot-upload | |||
| @@ -94,7 +94,8 @@ END_README | |||
| 94 | md5sum *.gz | tee -a README > MD5SUM | 94 | md5sum *.gz | tee -a README > MD5SUM |
| 95 | 95 | ||
| 96 | # Sync the files | 96 | # Sync the files |
| 97 | rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER:$OUT_PATH" | 97 | [ -n "$OUT_SERVER" ] && OUT_SERVER="$OUT_SERVER:" |
| 98 | rsync -a --exclude=.htaccess --exclude=HEADER.html --delete "$SFSNAP_DEST/" "$OUT_SERVER$OUT_PATH" | ||
| 98 | 99 | ||
| 99 | trap - EXIT | 100 | trap - EXIT |
| 100 | 101 | ||
