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.
How to reduce a project to the minimum size?
Search
-
winthrop.polk
- Posts: 15
- Joined: Thu May 06, 2021 1:34 pm
Re: How to reduce a project to the minimum size?
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
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
Re: How to reduce a project to the minimum size?
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
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
Re: How to reduce a project to the minimum size?
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
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
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.
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.