]> arthur.barton.de Git - backup-script.git/commitdiff
backup-status: Fix handling of "current" snapshot on ZFS
authorAlexander Barton <alex@barton.de>
Wed, 29 Jul 2015 10:56:16 +0000 (12:56 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 29 Jul 2015 10:56:16 +0000 (12:56 +0200)
bin/backup-status

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