Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Editorial: TAKE TIME TO BACKUP

  1. #11
    sternfan is offline Special Member
    Join Date
    Mar 2007
    Location
    Near Pittsburgh
    Posts
    146
    Rep Power
    8

    Question

    Hi all,

    New to all of this, so please bear with me

    Could someone please post a "Backup Basics" for the Open Source edition?

    I found the zmbackup command in the manuals and have a few questions...

    • What is the first step in backing up? Do I have to shut down any services? Will the services restart after the backup?
    • Is there an indicator that the backup was successful?
    • I notice the backups go to zimbra_home/backup directory. Is it OK to manually copy the contents of this directory to a network drive on another server? Will the next backup overwrite or will there be two backups in the zimbra_home/backup directory?
    • Does the zmbackup command cover everything needed for a restore? Or do I have to do other backups for things such as MySql etc?


    Thanks,
    Rob

  2. #12
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    if you have the open source version the essential's are
    su zimbra
    zmcontrol stop (if you want you can check your processes to be sure they stopped)
    copy, tar, etc the /opt/zimbra folder (and if you made links or mounts to the store, index, etc elsewhere backup those too)
    Backing up and restoring Zimbra (Open Source Version) - ZimbraWiki

    zmbackup is for the NE version:
    CLI - zmbackup Network Edition Only - ZimbraWiki

    now there are a few threads on backup scripts and ways to backup the open source edition live...but if your new to linux...probably a little over your head
    regarding cold & hot, full and incramental backups of open source version:
    Full Server Backup and Restore of “open source version”
    Last edited by phoenix; 05-30-2007 at 09:25 AM. Reason: typo on link

  3. #13
    czaveri's Avatar
    czaveri is offline Former Zimbran
    Join Date
    Feb 2006
    Location
    Pune, India
    Posts
    294
    Rep Power
    9

    Default

    Quote Originally Posted by sternfan View Post
    Hi all,

    New to all of this, so please bear with me

    Could someone please post a "Backup Basics" for the Open Source edition?

    I found the zmbackup command in the manuals and have a few questions...
    • What is the first step in backing up? Do I have to shut down any services? Will the services restart after the backup?
    • Is there an indicator that the backup was successful?
    • I notice the backups go to zimbra_home/backup directory. Is it OK to manually copy the contents of this directory to a network drive on another server? Will the next backup overwrite or will there be two backups in the zimbra_home/backup directory?
    • Does the zmbackup command cover everything needed for a restore? Or do I have to do other backups for things such as MySql etc?
    Thanks,
    Rob
    Hi Rob,

    Zimbra Open Source does not come with the zmbackup command. "zmbackup" is bundled with Zimbra Network Edition.

    You need not stop Zimbra if you use zmbackup, however, from all the known strategies for backing up Zimbra Open Source, you must stop Zimbra (that is, take a Cold backup).

    If you use zmbackup, the indicator is the name of backup given by the command on STDOUT (If there are any errors, they are reported, too). If you do a Cold backup of Zimbra Open Source, you are using system utilities (such as, "rsync") and thus, the errors will be reported by these utilities.

    If you are using zmbackup, you can also list out the completed backups by using the command zmbackupquery. For Cold backup of Zimbra Open Source, you have no such utility (except, the "ls" command).

    zmbackup, done from command-line includes everything - no need to backup MySQL, etc. separately. Cold backup also includes everything.

    Cold Backup Basics:

    1. Stop all Zimbra Services
    2. Ensure all services are stopped or kill them gracefully (don't use kill -9)
    3. Once all Zimbra services are stopped, rsync them (/opt/zimbra) to some other path - maintaining ownerships, permissions, symlinks, hard links, etc.
    4. Start Zimbra
    5. Done!

    Cold Backup Restoration Basics:

    1. Stop Zimbra
    2. mv _OR_ rm -rf /opt/zimbra
    3. Copy the backed up Zimbra directory to /opt/zimbra
    4. Start Zimbra

    Common Issues:
    If something doesn't start, run /opt/zimbra/libexec/zmfixperms
    This will fix all permissions.

    If Tomcat doesn't start, please check /opt/zimbra/tomcat/logs/catalina.out
    The log in this is generally understandable.

    Make sure:
    1. The hostname of the system on which restoration is to be done is the same as the hostname of the system on which backup was taken.

    2. Zimbra is installed on the system on which restoration is to be done. If not, restoration will not work.

    Others:
    I am not aware if rsync-ing to the same backup directory more than once, will works. This must be tested. So, I would add, backup to a different directory everytime and rotate backups to save space.
    Regards,

    Chintan Zaveri
    (Yet another ZIMBRAN!)

    "Dhundhne par Bhagwan bhi ..."

  4. #14
    sternfan is offline Special Member
    Join Date
    Mar 2007
    Location
    Near Pittsburgh
    Posts
    146
    Rep Power
    8

    Default

    Thanks for all the replies:

    Mmorse: - the first link you have ended up with an empty page (There is currently no text in this page).

    I am planning to do a backup after business hours friday. Just to be clear..

    - I su zimbra
    - zmcontrol stop
    - verify services have stopped (I am assuming Server Status?)
    - copy the contents of /opt/zimbra to a network drive
    - Start services? zmcontrol start?

    czaveri

    - I've never used rsync before. Will what I mentioned above work?

    Right now my /opt/zimbra directory is about 3gb - so it should be a fast backup.

    Also - do the users need to logoff their email accounts?

    Thanks,
    Rob

  5. #15
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Quote Originally Posted by sternfan View Post
    Mmorse: - the first link you have ended up with an empty page (There is currently no text in this page).
    There was a typing error on that link, try it again.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #16
    mmorse's Avatar
    mmorse is offline Moderator
    Join Date
    May 2006
    Location
    USA
    Posts
    6,242
    Rep Power
    21

    Default

    Thanks pheonix

    sternfan,
    Doing zmcontrol stop will essentially end their sessions anyway. -it shuts down everything.
    You will have to do the backup as root (otherwise you'll miss a few files).
    However you need to keep the files that are assigned zimbra.zimbra assigned to the zimbra user.
    Do an ls -la inside /opt/zimbra and you'll see what I mean.
    Now, there is a script to run if you mess up permissions
    >/opt/zimbra/libexec/zmfixperms
    -however to save yourself the hassle; Tar, zip, etc the folder first or use a copy (cp) command that saves permissions.
    Last edited by mmorse; 05-30-2007 at 09:38 AM.

  7. #17
    sternfan is offline Special Member
    Join Date
    Mar 2007
    Location
    Near Pittsburgh
    Posts
    146
    Rep Power
    8

    Question

    Thanks for all the replies - my first backup will be at the end of the workday tomorrow.

    And I've been thinking about future backups...

    Since the server has to go down, I have to do this at off-hours. I have a helpdesk tech that can help with this, who works some of these off-hours (I am thinking every saturday when 90% of the users are gone). However, he is totally unfamiliar with Linux in any way, hates it, and basically I do not want him pecking around with the command line on my freshly installed Zimbra box. In fact, I am terrified of him logging directly into the server as ROOT.

    So - would webmin interfere with Zimbra? Using it just for the backup module? I can set him up at his desk (not physically touching the server) - I'll create a how-to with screenshots - test it and he should be OK? I just checked the webmin module, and it does TAR formats.

    Thanks,
    Rob

  8. #18
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Webmin works fine on my Zimbra server box, you should have no problems with it.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #19
    sternfan is offline Special Member
    Join Date
    Mar 2007
    Location
    Near Pittsburgh
    Posts
    146
    Rep Power
    8

    Question

    Hi Phoenix,

    Just finished my first backup using webmin. Looks like all went well. One quick question though...

    During the backup, I am getting things like:

    tar: /opt/zimbra/postfix-2.2.9/spool/private/smtp-amavis: socket ignored

    I got about 20 of these - all in the opt/zimbra/postfix directory. I googled webmin "socket ignored" and it looks like when the backup meets a virtual directory (I am assuming this is what this is) that it ignores it.

    Does this look right to you?

    Thanks,
    Rob

  10. #20
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,491
    Rep Power
    56

    Default

    Yes, it's a harmless message that's telling you it's something that can't be backed up.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Backup best practice
    By Eyfi in forum Administrators
    Replies: 2
    Last Post: 06-29-2007, 07:52 AM
  2. Off-site backup
    By jbareMACS in forum Administrators
    Replies: 3
    Last Post: 05-20-2007, 10:32 AM
  3. Time mess everything up
    By Peque in forum Zimbra Connector for Outlook
    Replies: 4
    Last Post: 05-10-2007, 02:31 AM
  4. DDT backup strategies for 4.5 NE
    By su_A_ve in forum Administrators
    Replies: 2
    Last Post: 04-10-2007, 10:57 AM
  5. NE Backup best practises
    By Klug in forum Administrators
    Replies: 3
    Last Post: 05-29-2006, 08:32 AM

Posting Permissions

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