snapshots
This commit is contained in:
parent
5ac717f75f
commit
c28dc76afe
6
snapshots.sh
Executable file
6
snapshots.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/ash
|
||||||
|
|
||||||
|
for u in $(ls /home); do
|
||||||
|
zfs snapshot tank/ROOT/homes/$u@$(date "+%Y%m%d")
|
||||||
|
zfs destroy tank/ROOT/homes/$u@$(date --date="-5 days" "+%Y%m%d")
|
||||||
|
done
|
||||||
Loading…
x
Reference in New Issue
Block a user