]> arthur.barton.de Git - backup-script.git/commitdiff
backup-status: Correctly show "current" snapshot as newest
authorAlexander Barton <alex@barton.de>
Wed, 19 Aug 2015 07:59:25 +0000 (09:59 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 19 Aug 2015 07:59:25 +0000 (09:59 +0200)
bin/backup-status

index e0c5c0457cade0c6f0b37184a8be7d01f05f931d..4ba22f3a894abe6996f1c30a424508b045df60b4 100755 (executable)
@@ -147,7 +147,7 @@ for f in $sys; do
        echo "- Target: $target"
 
        if [ $generations -gt 0 ]; then
-               for s in $target/current $target/[0-9]*-[0-9]*; do
+               for s in $target/[0-9]*-[0-9]* $target/current; do
                        [ -e "$s" ] || continue
                        echo "  - Snapshot: $s"
                        Check_Size "$s" "  "