mirror of
https://github.com/bashclub/zfs-housekeeping.git
synced 2024-11-07 15:31:58 +01:00
Update README.md
new command name cleansnaps.sh
This commit is contained in:
parent
4c83218b97
commit
9876095fa2
14
README.md
14
README.md
@ -5,16 +5,16 @@
|
||||
Aufruf: ./sts23.sh <test|echt> <Poolfilter> <Anz. Behalte> [Snapshotfilter]
|
||||
|
||||
|
||||
## Script snpgrpdl.sh (neu)
|
||||
## Script cleansnaps.sh (neu)
|
||||
Snapshots nach Datasets und Muster im Snapshotnamen filtern und ggf. löschen.
|
||||
Es können alle bis auf die letzten x Snapshots behalten werden (-k keep).
|
||||
Zu löschende Snapshots werden mit einem '-' gekennzeichnet.
|
||||
|
||||
### Aufruf:
|
||||
```
|
||||
root@zfsrasp~# ./snpgrpdl.sh -h
|
||||
root@zfsrasp~# ./cleansnaps.sh -h
|
||||
|
||||
Aufruf: snpgrpdl.sh [-htf] [-k keep] <Datasetfilter> [Snapshotfilter]
|
||||
Aufruf: cleansnaps.sh [-htf] [-k keep] <Datasetfilter> [Snapshotfilter]
|
||||
|
||||
-h Hilfe Anzeigen
|
||||
-t Testmodus. Simulation von löschen ohne Nachfragen (benötigt -k)
|
||||
@ -25,7 +25,7 @@ Aufruf: snpgrpdl.sh [-htf] [-k keep] <Datasetfilter> [Snapshotfilter]
|
||||
### Beispiele:
|
||||
Nur Filtern (ohne löschen):
|
||||
```
|
||||
root@zfsrasp:~# ./snpgrpdl.sh backup frequent
|
||||
root@zfsrasp:~# ./cleansnaps.sh backup frequent
|
||||
# Gefilterte Datasets:
|
||||
NAME USED AVAIL REFER MOUNTPOINT
|
||||
backup 3.93M 3.62G 24K /backup
|
||||
@ -55,7 +55,7 @@ root@zfsrasp:~#
|
||||
```
|
||||
Interaktiv - Filtern und alle außer die letzten 10 löschen:
|
||||
```
|
||||
root@zfsrasp:~# ./snpgrpdl.sh -k 10 backup$ daily
|
||||
root@zfsrasp:~# ./cleansnaps.sh -k 10 backup$ daily
|
||||
# Gefilterte Datasets:
|
||||
NAME USED AVAIL REFER MOUNTPOINT
|
||||
backup 4.00M 3.62G 24K /backup
|
||||
@ -100,7 +100,7 @@ root@zfsrasp:~#
|
||||
```
|
||||
Testmodus - löschen nur simulieren (ohne Nachfragen):
|
||||
```
|
||||
root@zfsrasp:~# ./snpgrpdl.sh -t -k 5 backup$ daily
|
||||
root@zfsrasp:~# ./cleansnaps.sh -t -k 5 backup$ daily
|
||||
# Gefilterte Datasets:
|
||||
NAME USED AVAIL REFER MOUNTPOINT
|
||||
backup 3.98M 3.62G 24K /backup
|
||||
@ -132,7 +132,7 @@ root@zfsrasp:~#
|
||||
|
||||
Forcemodus - löschen ohne Nachfragen:
|
||||
```
|
||||
root@zfsrasp:~# ./snpgrpdl.sh -f -k 6 backup frequent
|
||||
root@zfsrasp:~# ./cleansnaps.sh -f -k 6 backup frequent
|
||||
# Gefilterte Datasets:
|
||||
NAME USED AVAIL REFER MOUNTPOINT
|
||||
backup 3.98M 3.62G 24K /backup
|
||||
|
Loading…
Reference in New Issue
Block a user