How to reduce a project to the minimum size?

Find and share HowTos to various installations / configurations!
Search

Post Reply
5 posts • Page 1 of 1
winthrop.polk
Posts: 15
Joined: Thu May 06, 2021 1:34 pm

How to reduce a project to the minimum size?

Post by winthrop.polk »

We have projects that were delivered as tarballs, 80MB in size, but 4.9GB in size when uncompressed! Such a massive compression ratio suggests massive duplication. This is what has been deployed into production. I am seeking a way to make this more reasonable, I strongly suspect a lot of it is logs and backups from the developers and should never have been released to production. So what can be deleted and what can I ignore with git or svn so this doesn't happen again. So far I have deleted everything in the log folder (2GB) and db folder .bk files (1GB) and .bk files in that buried Online Backups folder... I am down to 300MB uncompressed but suspect it could get much lower with proper guidance.

Any assistance is appreciated.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to reduce a project to the minimum size?

Post by leoknipp »

In the WinCC OA database and the project there are no *.bk files existing.
The log files can be deleted without any negative effect on the project.
For all other files, especially in the db folder you really need to know which can be deleted or not.
If files, which are needed to start the project, are deleted the project does not run any more.

Without detailed information for the files located in your project there is no chance to give a hint how disk space can be saved.
If you need further assistance please get in contact with your common WinCC OA support.

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
adaneau
Posts: 310
Joined: Tue Feb 21, 2012 9:49 am

Re: How to reduce a project to the minimum size?

Post by adaneau »

Hi,

You shouldnt ship database for PROD. This is error prone and can lead to transfer unwanted alarms / status to PROD setup.

When moving from TEST/ACCEPTANCE to PROD, best is to build the database fresh in PROD using dplists so you dont carry around unwanted values / alarms. You can do that using dbcreate tools for greenfield, otherwise ascii manager for update. Also this allows you to have a fresh InfluxDB.

Thus you reduce a project to:

- panels
- scripts /libs
- config
- pictures
- data
- msg
- colorDB
- eventually bin if you have custom API
- eventually help if you have custom help

The rest can be forgotten.

Best regards
Alexandre

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: How to reduce a project to the minimum size?

Post by leoknipp »

Possibly the "images" directory is also needed if you are using graphics in your panels which are not referenced and/or ActiveX elements.
Sometimes settings for ActiveX elements are also stored in the images directory.

Best Regards
Leopold Knipp
Senior Support Specialist

winthrop.polk
Posts: 15
Joined: Thu May 06, 2021 1:34 pm

Thank you

Post by winthrop.polk »

All great advice that helps a bunch, thanks!

Surprised I didn't get a notification of response, I don't think it's working on this site =(; confirmed, I am subscribed... I think, lol, isn't clear.

Post Reply
5 posts • Page 1 of 1