X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=bin%2Fbackup-script;h=fb7f7accab90c95f8964a036760d77a7dd1513fd;hb=f31ea553734983fe868614cb7b01b81c26dea1d2;hp=df719d3fe314731408efdc142c10967d4a0069d5;hpb=77b1d59b32a06bdf91de530ec687ab6e3675ff85;p=backup-script.git diff --git a/bin/backup-script b/bin/backup-script index df719d3..fb7f7ac 100755 --- a/bin/backup-script +++ b/bin/backup-script @@ -359,6 +359,11 @@ for f in $sys; do fi if [ $generations -gt 0 ]; then + # Update "latest" symlink + if [ "$DRYRUN" -eq 0 ]; then + rm -f "$sys_root/latest" + ln -s "$sys_target" "$sys_root/latest" + fi # Clean up old generations to_delete=`ls -1t "$sys_root" 2>/dev/null | tail -n+$generations | sort` if [ -n "$to_delete" -a $ok -eq 1 ]; then