rajout appel de la fonction showsnap
This commit is contained in:
parent
620b3faddf
commit
1c1e1fc501
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Time-stamp: <2025-02-26 08:02:52 nomad>
|
# Time-stamp: <2025-02-26 11:02:08 nomad>
|
||||||
|
|
||||||
# Michel Le Cocq <lecocq@ipgp.fr>
|
# Michel Le Cocq <lecocq@ipgp.fr>
|
||||||
# <nomad@neuronfarm.net>
|
# <nomad@neuronfarm.net>
|
||||||
@ -89,7 +89,7 @@ function cleansnap
|
|||||||
printf '\nClean snapshot.\n'
|
printf '\nClean snapshot.\n'
|
||||||
|
|
||||||
printf 'Current available bootfs:\n'
|
printf 'Current available bootfs:\n'
|
||||||
zfs list -o name,used,usedbysnapshots -r zroot/ROOT -s creation | grep -v '^zroot/ROOT .*'
|
showsnap
|
||||||
oldest=$(zfs list -H -o name -r zroot/ROOT -s creation | grep -v '^zroot/ROOT$' | head -n 1)
|
oldest=$(zfs list -H -o name -r zroot/ROOT -s creation | grep -v '^zroot/ROOT$' | head -n 1)
|
||||||
oldestdate=$(echo $oldest | cut -d "_" -f 3- | tr '_' '-')
|
oldestdate=$(echo $oldest | cut -d "_" -f 3- | tr '_' '-')
|
||||||
current=$(zpool get -H bootfs zroot -o value)
|
current=$(zpool get -H bootfs zroot -o value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user