E9: Dealing with temp files on server

This is perfect. Thanks for sharing.





Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:89c5a9.png@16bbe87c.45bc247a]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of scrumbus@...
Sent: Thursday, January 02, 2014 5:09 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: E9: Dealing with temp files on server



I have a batch file schedule to run each night to remove files at various age intervals, the -d says how many days old the file has to be before deleting. I used to scan user directories too as in old versions of 9 and 8 they weren't being cleaned up either properly.



Not sure how clean this batch file is going to look, but I'll paste it in. Remove the user specific file section if you don't want to scan them.



:: Will scan the directory and delete any file older than XX days
:: The xx being whatever value comes after the -d flag

:: Clear General EpicorData files generated by the server
forfiles -p "C:\Epicor\EpicorData" -d -15 -m Assign* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -1 -m baq* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m bfc* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m bpm* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m BusEntity* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m COAL* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -7 -m DBI* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m GLBCOA* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m GLJrn* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -7 -m lbi* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -5 -m rcd* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m RestrictFcts* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m srt* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m trp* -c "Cmd /c del Echo @Path"

:: Clear User Specific files that linger by user
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -90 -m *.xml -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -90 -m *.txt -c "Cmd /c del Echo @Path"

:: Clear User Specific bat files that linger by user
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -15 -m *.bat -c "Cmd /c del Echo @Path"



[Non-text portions of this message have been removed]
Hi All,

How are others dealing with the temp files that Epicor generates?
I have the standard EPICORTEMP folder and it’s loaded with a ton of baq*.p, srt*, rcda*, lbia*, and DBI* files.
Occasionally, during a restart, I will manually clear this folder out but for the most part this folder has hundreds of thousands of files in it.

Do others just use batch files to delete these files in the middle of the night?
Are there anything of these that are critical and deleting at the wrong moment would cause an issue?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:6ee5ac.png@4233cc82.4ba306e8]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.




[Non-text portions of this message have been removed]
We use a batch file on a schedule to clean this folder. I don't think you can accidentally delete a file at the wrong time because it will be locked with a process.


From: Joe Rojas <jrojas@...>
To: "vantage@yahoogroups.com" <vantage@yahoogroups.com>
Sent: Thursday, January 2, 2014 4:55 PM
Subject: [Vantage] E9: Dealing with temp files on server

Hi All,

How are others dealing with the temp files that Epicor generates?
I have the standard EPICORTEMP folder and it’s loaded with a ton of baq*.p, srt*, rcda*, lbia*, and DBI* files.
Occasionally, during a restart, I will manually clear this folder out but for the most part this folder has hundreds of thousands of files in it.

Do others just use batch files to delete these files in the middle of the night?
Are there anything of these that are critical and deleting at the wrong moment would cause an issue?




Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191

addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring

[cid:6ee5ac.png@4233cc82.4ba306e8]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.




[Non-text portions of this message have been removed]



------------------------------------

Useful links for the Yahoo!Groups Vantage Board are: ( Note:  You must have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and Crystal Reports and other 'goodies', please goto: http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto: http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto: http://groups.yahoo.com/group/vantage/linksYahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vantage/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/vantage/join
    (Yahoo! ID required)

<*> To change settings via email:
    vantage-digest@yahoogroups.com
    vantage-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    vantage-unsubscribe@yahoogroups.com

<*> Your use of Yahoo Groups is subject to:
    http://info.yahoo.com/legal/us/yahoo/utos/terms/


I have a batch file schedule to run each night to remove files at various age intervals, the -d says how many days old the file has to be before deleting.  I used to scan user directories too as in old versions of 9 and 8 they weren't being cleaned up either properly.

 

Not sure how clean this batch file is going to look, but I'll paste it in.  Remove the user specific file section if you don't want to scan them.

 

:: Will scan the directory and delete any file older than XX days
:: The xx being whatever value comes after the -d flag


:: Clear General EpicorData files generated by the server
forfiles -p "C:\Epicor\EpicorData" -d -15 -m Assign* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -1 -m baq* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m bfc* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m bpm* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m BusEntity* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m COAL* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -7 -m DBI* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m GLBCOA* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m GLJrn* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -7 -m lbi* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -5 -m rcd* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m RestrictFcts* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m srt* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m trp* -c "Cmd /c del Echo @Path"

:: Clear User Specific files that linger by user
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -90 -m *.xml -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -90 -m *.txt -c "Cmd /c del Echo @Path"

:: Clear User Specific bat files that linger by user
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -15 -m *.bat -c "Cmd /c del Echo @Path"

Pretty much the same batches I have been using with different customers for awhile now.

 

Only thing this doesn’t address is a log file that is updated over and over again, so the file age is never old enough to be deleted, and some of them can get very large, like pelog or globalalerts, and some others.

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of scrumbus@...
Sent: Thursday, January 02, 2014 5:09 PM
To: vantage@yahoogroups.com
Subject: [Vantage] RE: E9: Dealing with temp files on server

 




I have a batch file schedule to run each night to remove files at various age intervals, the -d says how many days old the file has to be before deleting.  I used to scan user directories too as in old versions of 9 and 8 they weren't being cleaned up either properly.

 

Not sure how clean this batch file is going to look, but I'll paste it in.  Remove the user specific file section if you don't want to scan them.

 

:: Will scan the directory and delete any file older than XX days
:: The xx being whatever value comes after the -d flag


:: Clear General EpicorData files generated by the server
forfiles -p "C:\Epicor\EpicorData" -d -15 -m Assign* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -1 -m baq* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m bfc* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m bpm* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m BusEntity* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m COAL* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -7 -m DBI* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m GLBCOA* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m GLJrn* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -7 -m lbi* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -5 -m rcd* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m RestrictFcts* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m srt* -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData" -d -15 -m trp* -c "Cmd /c del Echo @Path"

:: Clear User Specific files that linger by user
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -90 -m *.xml -c "Cmd /c del Echo @Path"
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -90 -m *.txt -c "Cmd /c del Echo @Path"

:: Clear User Specific bat files that linger by user
forfiles -p "C:\Epicor\EpicorData\Reports" /s -d -15 -m *.bat -c "Cmd /c del Echo @Path"




Yeah, I have a different bat file that cycles the GlobalAlerts and BPM logs each month and keeps around 5 old files for reference as I don't want to straight-up delete them.  I can paste that one in if someone needs.