snapshots
This commit is contained in:
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
|
||||||
Reference in New Issue
Block a user