Results 1 to 10 of 17

Thread: zmschedulebackup and Alternate Backup Location

Hybrid View

  1. #1
    Join Date
    Sep 2006
    Location
    477 Congress Street | Portland, ME 04101
    Posts
    1,374
    Rep Power
    11

    Default zmschedulebackup and Alternate Backup Location

    Running 4.0.1 Network Edition on SuSE 10.0.

    Is it OK to replace the directory /opt/zimbra/backup with a symlink pointing to the desired alternate backup location?

    The zmschedulebackup command documentation indicates zmschedulebackup does not support the "-t" switch that the zmbackup command does. As a result, the cron jobs set up by running "zmschedulebackup -D" do not specify our desired alternate target backup directory.

    My sense is that it is better to symlink the target backup directory than to edit the three cron jobs created by zmschedulebackup, but I'd like to have someone from Zimbra confirm that, please.

    In our case, Zimbra runs on a VMware virtual machine. The alternate backup directory is an LVM partition on the VMware host machine. The VMware host machine exports the backup directory via NFS, and the Zimbra virtual machine (as well as the other virtual machines on this host) use NFS to mount the export to a local directory. A separate machine, off site and connected via a VPN, then uses Dirvish to connect to the VMware host and make off site backups of the LVM backup partition.

    Anyone see any issues with this configuration?

    Thanks,
    Mark

  2. #2
    Join Date
    Nov 2005
    Posts
    518
    Rep Power
    11

    Default

    sending zmbackup straight to nfs is prone to failure. the best method is to run the backup to the local disk, then move to external storage

    as far as the more general question of the target option, the only concern with editing the crontab is that running zmschedulebackup will reset the change

    this is Bug 9539 - zmschedulebackup should allow for target specification

  3. #3
    Join Date
    Jan 2007
    Posts
    39
    Rep Power
    8

    Default

    Bump*

    I'm looking to do the same thing... it seems zimbra would only allow me to install it on the OS partition in RHEL4 that is only 30 Gigs. My 2nd partition is 200g which is where I moved my mailstore directory to. I want the backups to save in there as well instead of the default /opt/zimbra/backup. Do you have to just create a sym link to get it to save to say.... /raid5/zimbra/backup?

    I was thinking that "ln -s /opt/zimbra/backup /raid5/zimbra/backup" would work. I tried without the -s for the hell of it and it said /opt/zimbra/backup is not allowed to do hard links, so I put the -s in to make it a soft link. I guess I'll know in the morning when it tries to backup again if it actually worked. I'd run a zmbackup now but I don't wanna slow down the e-mail server during business hours.
    Last edited by w1nz; 05-11-2007 at 11:39 AM. Reason: add

  4. #4
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Why don't you just install some larger hard disks and relocate the whole /opt/zimbra directory to the new hard drive and install Zimbra on that. Under no circumstances (unless you have a very small number of users and even then I wouldn't recommend it) should you use a RAID5 as the backup device - that configuration has poor write performance.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    Join Date
    Jan 2007
    Posts
    39
    Rep Power
    8

    Default

    well i guess i'm screwed. Our old IMAP server crashed on us while I was still testing Zimbra net edition, and I was forced to implement Zimbra earlier than planned. Our old server was using a raid 1+0 for the OS partition and raid5 for the mailstore partition, so I configured the new server just like that thinking it was good. If this mail server has anymore downtime it's gonna be my ass. We only have 58 users anyway, you think the symbolic link will work for now so I don't have to keep doing "mv (/opt/zimbra/backup/whatever) /raid5/zimbra/backup" ?

  6. #6
    Join Date
    Mar 2007
    Location
    Regina, Sask.
    Posts
    215
    Rep Power
    8

    Default

    This may be of no help because I can't speak to the symlink option (and I'm using the OS version) but you could just automate rsync's to the raid partition as part of your pre-backup scripting. Yes it has some IO tagged with it but so would having a symlink to a different fs especially if it's RAID5 (why not mirror? RAID5 is not ideal for heavy IO which is all backups are, is none of this being backed up to tape anywhere?).

    At least this way you could tie it in to your existing backup schema ..... unless of course everyone is only doing local backup to disk using the Network version's internal backup operations

    In that case this wouldn't buy you anything.

    </2 cents>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •