Cleaning up ZCS installation after many upgrades

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Chicken76
Posts: 26
Joined: Sat Sep 13, 2014 2:28 am

Cleaning up ZCS installation after many upgrades

Post by Chicken76 »

I have recently upgraded to 8.7.11 an installation that started may years ago with 8.0.0 with upgrades along the way, and found some things that may need trimming and would like some advice in order to avoid breaking something.

1. /opt/zimbra/zmstat has years and years of .gz archives. I don't really need to look that far back into the past. Is there a command to discard the ones older than a certain date, or can I just simply delete them?

2. I've counted 22 broken symlinks in /opt/zimbra. Since my ZCS is working, I'm guessing they are no longer needed. Can I delete them?
Image

3. Old folders in /opt/zimbra/data/clamav/db
Image
I'm guessing the folders with dates from 2012 and 2013 can be deleted?
Ash74
Posts: 10
Joined: Sat Sep 13, 2014 2:56 am

Re: Cleaning up ZCS installation after many upgrades

Post by Ash74 »

I was about to ask the exact same questions :) - too bad there is so little response in these forums.

Also: will /opt/zimbra/common be a somewhat sticky place from now on? Had to fix several mta* symlinks inside /etc/alternatives/
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Cleaning up ZCS installation after many upgrades

Post by DualBoot »

Hello,

Symlinks without target are dead symlinks so you can delete them.

For the other files it depends on :
- last time access
- are you lucky ? :twisted:
Post Reply