View Single Post
  #3 (permalink)  
Old 06-29-2007, 08:52 AM
Eyfi Eyfi is offline
Member
 
Posts: 12
Default

Thanks mmorse for your reply.

After reading your links here how I see what I can do:

Mount 3 volumes to the Zimbra server

Volume 1: /opt/zimbra/backup
Volume 2: /backup/monthly
Volume 3: /backup/weekly

Then this is what I'll do:

1. Use zmschedulebackup to create this schedule:

f 0 1 * * 6
i 0 1 * * 0-5
d 1m 0 0 * * *

Now I have 1 month of daily backups on the server

2. Edit crontab and add following lines:

#keep 2 months of weekly backups
0 1 * * 7 /opt/zimbra/bin/zmbackup -f -a all -t /backup/weekly
0 1 * * * /opt/zimbra/bin/zmbackup -del 2m -t /backup/weekly

#Keep 6 months of monthly backups (first day of each month)
0 5 1 * * /opt/zimbra/bin/zmbackup -f -a all -t /backup/monthly
0 2 * * * /opt/zimbra/bin/zmbackup -del 6m -t /backup/monthly

3. Each night run a offline backup of /opt/zimbra and do rsync to /backup/zimbra.

4. Backup the 3 volumes + /backup/zimbra and /etc folders each night to our BackupPC server or do a rsync of those volumes to another server.

Now I have 1 month of daily backups 2 months of weekly backups and 6months of full backups.

If you have a simpler way of doing this I would really appreciate your comments.

Am I forgetting anything? Would you say that this covers the total backup of the system to recover from a total system crash or any day to day problems? LDAP and MySQL is included in the full and incr. backups right ?
Reply With Quote