[SOLVED] deleting old backups

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
jayel
Advanced member
Advanced member
Posts: 85
Joined: Fri Sep 12, 2014 11:15 pm

[SOLVED] deleting old backups

Postby jayel » Sat Aug 21, 2010 2:48 am

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


iway
Outstanding Member
Outstanding Member
Posts: 425
Joined: Fri Sep 12, 2014 11:31 pm

[SOLVED] deleting old backups

Postby iway » Sat Aug 21, 2010 12:18 pm

Should be OK.
bartounet16
Posts: 30
Joined: Sat Sep 13, 2014 12:54 am

[SOLVED] deleting old backups

Postby bartounet16 » Sun Aug 22, 2010 3:42 am

Yes you can use
/opt/zimbra/bin/zmbackup -del 7d

or directly whith the backup name



/opt/zimbra/bin/zmbackup -del full-20100821.010007.806
jayel
Advanced member
Advanced member
Posts: 85
Joined: Fri Sep 12, 2014 11:15 pm

[SOLVED] deleting old backups

Postby jayel » Sun Aug 22, 2010 10:22 am

Thank you !
Hivos
Outstanding Member
Outstanding Member
Posts: 216
Joined: Sat Sep 13, 2014 12:40 am

[SOLVED] deleting old backups

Postby Hivos » Mon Aug 23, 2010 12:23 pm

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.
jurness
Advanced member
Advanced member
Posts: 58
Joined: Sat Sep 13, 2014 12:29 am

[SOLVED] deleting old backups

Postby jurness » Thu Aug 26, 2010 7:57 pm

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...
jayel
Advanced member
Advanced member
Posts: 85
Joined: Fri Sep 12, 2014 11:15 pm

[SOLVED] deleting old backups

Postby jayel » Fri Aug 27, 2010 1:09 am


zimbra@mail:/root$ crontab -e


Search for BACKUP BEGIN :

# 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

Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 9 guests