2026-03-12 20:51:59
This commit is contained in:
16
bash/adrci_purge.sh
Normal file
16
bash/adrci_purge.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
AGE1MIN=0
|
||||
AGE1DAYS=1440
|
||||
AGE7DAYS=10080
|
||||
AGE10DAYS=14400
|
||||
AGE15DAYS=21600
|
||||
AGE30DAYS=43200
|
||||
|
||||
PURGETARGET=$AGE1MIN
|
||||
|
||||
for f in $( adrci exec="show homes" | grep -v "ADR Homes:" );
|
||||
do
|
||||
echo "Purging ${f}:";
|
||||
adrci exec="set home $f; purge -age $PURGETARGET ;" ;
|
||||
done
|
||||
Reference in New Issue
Block a user