diff options
| author | Laurent <laurent@pogopixels.com> | 2013-11-15 01:16:05 -0800 |
|---|---|---|
| committer | Laurent <laurent@pogopixels.com> | 2013-11-15 01:16:05 -0800 |
| commit | 85fea581a6f194818d5273d30f68c18ce2aaf474 (patch) | |
| tree | 47ec099c57e7fed9bdeefd01e9b4712869e38fe5 | |
| parent | 8a2e91813b0ccd8989870a87e36ec3b609942afa (diff) | |
| parent | 0c679903afba716726bbf3040f697622985d653b (diff) | |
Merge pull request #15 from mumrah/master
Add a "latest" symlink when backup is successful
| -rw-r--r-- | rsync_tmbackup.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index 754189f..fd997a6 100644 --- a/rsync_tmbackup.sh +++ b/rsync_tmbackup.sh @@ -226,6 +226,8 @@ while [ "1" ]; do fi if [ "$RSYNC_EXIT_CODE" != "0" ]; then + rm -f $DEST_FOLDER/latest + ln -s $DEST $DEST_FOLDER/latest fn_log_error "Exited with error code $RSYNC_EXIT_CODE" exit $RSYNC_EXIT_CODE fi |
