Tool for compressing/clearing log files folder

9 Posts
3 Users
0 Likes
41 Views
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Does anybody have a tool for compressing/clearing/backing up the PcVue log files folder?
Nico, didn't you have such kind of tool or script once?

Since PcVue 11.0 we have project level settings for the log files folder's max size, but for projects using older versions it could still be useful...

 
Posted : 19/08/2014 7:38 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Hi Armin,

No sorry i don't have any tool for that purpose.
But what kind of behaviour are you looking for?

 
Posted : 20/08/2014 7:02 am
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

But what kind of behaviour are you looking for?

Just something that takes care of the size of the log files folder and prevents the folder from consuming too much disk space (by deleting the oldest files or exporting them).

I remember that we once had issues with a version 9.0 or version 10.0 customer project, which was running PcVue in a Remote Desktop Services environment. In this project the size of the log files folder literally exploded (up to >10 GB of traces), due to the fact that all the stations wrote their traces into the same log files folder. The partition on which PcVue was running was small in size.

Since we are currently taking into operation a project that we are engineering by ourselves (PcVue GmbH) and which is also running PcVue 10.0, I thought it would be a good idea to implement preemptive measures in this regard. As I have seen the hds.log file alone has already grown to more than 2.5 GB.

 
Posted : 20/08/2014 2:09 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Sorry no tools for that 🙁
At least you could make a SPR requesting a control of hds.ini file.
I think I did it already (not sure..) but you could insist...

 
Posted : 21/08/2014 8:03 am
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Armin,

I found this:
http://ss64.com/nt/forfiles.html
also
http://www.reimagery.com/fsfd/filutil2.htm#delete

By the way another technique (less elegant) is to use Robocopy
1. Create temp folder
2. Use Robocopy to move files older than xx days (/minage option) and/or bigger than xx size (/Min option) to Temp folder
3. Delete temp folder

 
Posted : 27/08/2014 1:57 pm
(@admin_doc72)
Posts: 493
Member Admin
Topic starter
 

Great! Thanks, Nico!

I think the Robocopy thing was the hint that I originally asked for, but I couldn't remember the name.

 
Posted : 28/08/2014 2:08 am
(@j.becker@pcvue.de)
Posts: 0
New Member Guest
 

Hello,

there are a lot of tools to schedule delete (or move, rename, ...) operations.
e.g:

http://www.z-cron.de/ (not free for non private use)

or

http://lifehacker.com/341950/belvedere-automates-your-self-cleaning-pc (open-source)

 
Posted : 03/11/2014 4:01 pm
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
 

Thanks Johannes,
Belvedere looks good.
Did you try it?

 
Posted : 03/11/2014 4:13 pm
(@j.becker@pcvue.de)
Posts: 0
New Member Guest
 

Yes, I tested it, it works fine. the only thing is the missing build in ability to run as service.

 
Posted : 03/11/2014 4:34 pm