clog boy
2007-10-09, 09:53 AM
Our office started scheduling a script that I've written to erase all temp files from our project folders once a month. We will treesize it and examine the log file for mistakes.
We can only afford it because we have a reliable tape backup. Our tape backup will be only more reliable because of this; it will only host the temp files for one month max. Over the past four years we generated 13.4GB of incidental backup files.
Server- and tapespace is valuable. So are temp files. But I don't think you'll ever need to rely on a backup file the first monday of any given month.
Here's the content of the batch file:
del rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary project files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.00*.rvt >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary template files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.00*.rte >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary library files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.00*.rfa >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary AutoCAD files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.bak >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% End of Line >> rtemplog.txt
End of Line is a little joke, actually. It's a reference to Tron, the evil Master Control Program used to say that.
This code is free of use at your own risk. Feedback is welcome, please post and PM.
-
-
End of Line
We can only afford it because we have a reliable tape backup. Our tape backup will be only more reliable because of this; it will only host the temp files for one month max. Over the past four years we generated 13.4GB of incidental backup files.
Server- and tapespace is valuable. So are temp files. But I don't think you'll ever need to rely on a backup file the first monday of any given month.
Here's the content of the batch file:
del rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary project files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.00*.rvt >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary template files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.00*.rte >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary library files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.00*.rfa >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% >> rtemplog.txt
echo - >> rtemplog.txt
echo removing temporary AutoCAD files >> rtemplog.txt
echo ----------------------------------------- >> rtemplog.txt
del /S *.bak >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo - >> rtemplog.txt
echo %date% %time% End of Line >> rtemplog.txt
End of Line is a little joke, actually. It's a reference to Tron, the evil Master Control Program used to say that.
This code is free of use at your own risk. Feedback is welcome, please post and PM.
-
-
End of Line