| Advertise on warmetal.nl! Click for more information about advertising here. |
Did you find this website useful? Did I save you a lot of time? |
|
# Written by Sjoerd # 2 june 2008 # sjoerd [@] warmetal.nl # tested on Netware 6 - 6.5 # variables: # $SN : SERVERNAME # $VOL1: First volume after SYS # $VOL2: Second volume after SYS # # # load toolbox for purge and echo to work # load toolbox # # load authentication for purge # to use this you need an authentication file: tboxauth.dat # see www.warmetal.nl on how to create this file # auth load # Start script echo *** Start Purge *** echo " " time echo " " echo Purging $SN/SYS echo " " purge $SN/SYS:deleted.sav /aqd=30 purge $SN/SYS: /aqd=30 echo Done purging $SN/SYS echo Purging $SN/$VOL1 echo " " purge $SN/$VOL1:deleted.sav /aqd=30 purge $SN/$VOL1: /aqd=30 echo Done purging $SN/$VOL1 echo Purging $SN/$VOL2 echo " " purge $SN/$VOL2:deleted.sav /aqd=30 purge $SN/$VOL2: /aqd=30 echo Done purging $SN/$VOL2 echo " " time echo " " echo *** Finished Purge ***
Of course it's possible to change the number of days, just change the d=30 switch to something more appropiate for you, and you can add more volumes, depending on your needs.
If the script is running you can stop it by issuing <CTRL>+C on the console.
Auth <TREENAME> <.admin.context> Auth SAVE
This will create the encrypted file tboxauth.dat.
Note that you'll have to schedule the command to run on a different time then your backup. Both are pretty demanding on your io.
Discussion