Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-2011, 04:13 AM
Active Member
 
Posts: 36
Default [SOLVED] Reduce backups kept

Hi All

Is it possible to stop zimbra network edition keeping 4 weeks worth of backup and reducing it to say 2. Having a bit of a space issue at present on a hosted server.

Thanks
Reply With Quote
  #2 (permalink)  
Old 07-03-2011, 08:52 AM
Moderator
 
Posts: 1,554
Default

use zmschedulebackup and the delete option, take a look at the wiki for syntax

CLI zmschedulebackup Network Edition only - Zimbra :: Wiki
Reply With Quote
  #3 (permalink)  
Old 07-04-2011, 12:52 AM
Active Member
 
Posts: 36
Default

I still want the server to backup as it does now and not change how often but just how many days worth it keeps in the backup folder

Thanks
Reply With Quote
  #4 (permalink)  
Old 07-04-2011, 01:32 AM
Special Member
 
Posts: 149
Default

check for cronjob with command like
Code:
/opt/zimbra/bin/zmbackup -del 1m --mail-report
and change parameter "-del 1m" to "-del 15d". When this cron job gets executed, it will delete backups older than 15 days.
Reply With Quote
  #5 (permalink)  
Old 07-04-2011, 02:55 AM
Active Member
 
Posts: 36
Default

That's fantastic

Thanks
Reply With Quote
  #6 (permalink)  
Old 07-04-2011, 06:23 AM
Elite Member
 
Posts: 305
Question

Quote:
Originally Posted by dipeshmehta View Post
check for cronjob with command like
Code:
/opt/zimbra/bin/zmbackup -del 1m --mail-report
and change parameter "-del 1m" to "-del 15d". When this cron job gets executed, it will delete backups older than 15 days.
Could someone show me how this cron entry is supposed to look? I have no such entry in my zimbra cron:

Code:
# BACKUP BEGIN
0 1 * * 6 /opt/zimbra/bin/zmbackup -f -a  all    
0 1 * * 0-5 /opt/zimbra/bin/zmbackup -i 
# BACKUP END
Doug
__________________
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Reply With Quote
  #7 (permalink)  
Old 07-04-2011, 06:37 AM
Zimbra Consultant & Moderator
 
Posts: 20,314
Default

Quote:
Originally Posted by lytledd View Post
Could someone show me how this cron entry is supposed to look?
It should look like this:

Code:
0 0 * * * /opt/zimbra/bin/zmbackup -del 1m --mail-report
I don't, however, understand why you'd need it as it's a Network Edition feature for the scheduled backup.
__________________
Regards


Bill
Reply With Quote
  #8 (permalink)  
Old 07-04-2011, 06:57 AM
Elite Member
 
Posts: 305
Default

Thank Bill.

I run OSE at home and NE at work. The work installation has never removed older backups and now I know why.

You'd think though, when doing the upgrades, it'd modify the cron job and and that entry.

I'll manually add it.

Doug
__________________
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.