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 08-21-2010, 12:48 AM
Loyal Member
 
Posts: 85
Default [SOLVED] deleting old backups

Hello,

How can I delete old backups by hand?
Can I just do zmbackup -del 7d in command line?
Since 6.07 my disk space is huge ???

greets
John
Reply With Quote
  #2 (permalink)  
Old 08-21-2010, 10:18 AM
Partner (VAR/HSP)
 
Posts: 425
Default

Should be OK.
Reply With Quote
  #3 (permalink)  
Old 08-22-2010, 01:42 AM
Active Member
 
Posts: 31
Default

Yes you can use

Code:
/opt/zimbra/bin/zmbackup -del 7d
or directly whith the backup name
Code:
/opt/zimbra/bin/zmbackup -del full-20100821.010007.806
__________________
R905 DELL
Release 6.0.7_GA_2473.SLES11_64_20100616202558 SLES11_64 NETWORK edition.
Reply With Quote
  #4 (permalink)  
Old 08-22-2010, 08:22 AM
Loyal Member
 
Posts: 85
Default

Thank you !
Reply With Quote
  #5 (permalink)  
Old 08-23-2010, 10:23 AM
Advanced Member
 
Posts: 192
Default

Somewhere in ZCS 6.0.x the behaviour of the backups changed from default hardlinked blobs to default zipped & non-hardlinked blobs. Search the forums, there's many posts covering this. In short: you'll need to add the --noZip option to the backup lines in your crontab, and don't forget to redo this after every upgrade.
Reply With Quote
  #6 (permalink)  
Old 08-26-2010, 05:57 PM
Senior Member
 
Posts: 58
Default

Is there a way to configure backups to not keep 4 weeks of backups around? I have looked at the admin manual and i don't see this but can't imagine it is not configurable.

I'd like to only keep one week's worth on disk since it goes to tape anyways...
Reply With Quote
  #7 (permalink)  
Old 08-26-2010, 11:09 PM
Loyal Member
 
Posts: 85
Default

Code:
zimbra@mail:/root$ crontab -e
Search for BACKUP BEGIN :

Code:
# BACKUP BEGIN
0 1 * * 6 /opt/zimbra/bin/zmbackup -f --noZip -a all
0 1 * * 0-5 /opt/zimbra/bin/zmbackup -i --noZip
0 0 * * * /opt/zimbra/bin/zmbackup -del 7d
# BACKUP END
Last line 7d means that everything prior to -7 days wil be deleted.

Greets

John
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.