Page 12 of 66 FirstFirst ... 210111213142262 ... LastLast
Results 111 to 120 of 659

Thread: [SOLVED] Yet Another Backup Script for Community Version

  1. #111
    tashi's Avatar
    tashi is offline Senior Member
    Join Date
    Oct 2008
    Location
    Bhutan
    Posts
    59
    Rep Power
    6

    Default how to restore when using the backup script

    how do we restore the backed up files after using the zmbac.sh back up script.the back up script was working fine but don't know how to restore the backed up files.>>
    Last edited by tashi; 10-21-2008 at 03:42 AM.

  2. #112
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    10

    Default

    Restoration depends on how blown up your system is. If you are just taking a working system back to an earlier date, you'd just expand the entire contents of your backup file into a temporary directory, stop all zimbra services, copy the contents of your temporary directory over top of /opt/zimbra, and restart.

    If you actually have to do a reinstall, which is more likely if your system blows up, MAKE ABSOLUTELY SURE YOU HAVE THE INSTALLATION BINARIES FOR THE EXACT SAME VERSION YOU HAD WHEN THE BACKUP WAS MADE. Install those binaries, then stop zimbra services, and copy the expanded backup over top of all files in /opt/zimbra. Restart zimbra and your system should be restored.
    Cheers,

    Dan

  3. #113
    tashi's Avatar
    tashi is offline Senior Member
    Join Date
    Oct 2008
    Location
    Bhutan
    Posts
    59
    Rep Power
    6

    Default

    hi heinzg,
    Thanks for the back up script, it was great but how do we restore the backed up data in case of server failures

  4. #114
    tashi's Avatar
    tashi is offline Senior Member
    Join Date
    Oct 2008
    Location
    Bhutan
    Posts
    59
    Rep Power
    6

    Thumbs up

    hi dan,

    many thanks for the info on restoring zimbra..

    regards tashi

  5. #115
    jay.choklsi is offline Senior Member
    Join Date
    Apr 2008
    Location
    India
    Posts
    59
    Rep Power
    7

    Default

    hi,

    i got the below error when script is running.

    Archive Created successfully

    Create MD5 Checksum for 44_Zimbra_Backup_04-November-2008_FULL.1.dar

    MD5 Checksum Created successfully

    copy archive to 172.16.1.7 remote directory /mailbackup/
    44_Zimbra_Backup_04-November-2008_FULL.1.dar 100% 426MB 10.6MB/s 00:40
    44_Zimbra_Backup_04-November-2008_FULL.1.dar.md5 100% 79 0.1KB/s 00:00

    Create file listing from archive

    :::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
    Full Zimbra Backup ended at: 15:38
    Backup took Hr:0 Min:10 Sec:31 to complete
    :::::::::::::::::Cheers Osoffice for the script:::::::::::::::::::::::
    zmbac.sh: line 901: /Backup/zimbra_dars/Backuplist-04-November-2008.txt.gz: Permission denied


    I am getting error in zimbra back up script while running with -d option.

    [root@server1 scripts]# sh zmbac.sh -d

    Diff Backup started at: 17:50

    Create file listing from archive

    :::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::
    Diff Zimbra Backup ended at: 17:50
    Backup took Hr:0 Min:0 Sec:0 to complete
    :::::::::::::::Cheers Osoffice for the script:::::::::::::::::::::::::



    [root@server1 scripts]# cat /Backup/zimbra_dars/Backuplist-15-November-2008.txt
    Aborting program. User refused to continue while asking: /Backup/zimbra_dars/45_Zimbra_Backup_15-November-2008_DIFF.1.dar is required for further operation, please provide the file.
    [root@server1 scripts]#
    Last edited by phoenix; 11-15-2008 at 04:52 AM.
    Regards,
    Jay Choksi

  6. #116
    jsauve's Avatar
    jsauve is offline Junior Member
    Join Date
    Nov 2008
    Posts
    8
    Rep Power
    6

    Default

    MAKE ABSOLUTELY SURE YOU HAVE THE INSTALLATION BINARIES FOR THE EXACT SAME VERSION YOU HAD WHEN THE BACKUP WAS MADE.
    Indeed, good advice. I keep the install tgz for my version (5.0.10) in the folder that the tapes drives grab every night.

    Many thanks to heinzg for this script. Tried writing my own, but it was pathetic compared to his. Learned a lot from reading through it, too!

    - Joe

  7. #117
    jsauve's Avatar
    jsauve is offline Junior Member
    Join Date
    Nov 2008
    Posts
    8
    Rep Power
    6

    Default

    Whoa. Had a major issue come up after using this script on ZCS 5.0.10. The mail transfer agent stopped starting up after running the script. I noticed a few days later when the Z admin console indicated that mta had stopped. Manual restart via zmcontrol stop & zmcontrol stop didn't do any good, and neither did physical reboots.

    I wound up restoring to the first full backup. Anyone have similar issues? Hopefully, the mta failure is just a coincidence. I'll be trying some other things soon.

    - Joe

  8. #118
    pebcomputing is offline Active Member
    Join Date
    Sep 2008
    Posts
    46
    Rep Power
    6

    Default

    Quote Originally Posted by jay.choklsi
    zmbac.sh: line 901: /Backup/zimbra_dars/Backuplist-04-November-2008.txt.gz: Permission denied
    I am getting this same error on my first run of full backup, except that it is at line 890. Otherwise the backup seems to have run successfully.

    Code:
        888     echo "Backup took Hr:$hours Min:$minutes Sec:$seconds to complete"
        889     echo ":::::::::::::::::Cheers Osoffice for the script:::::::::::::::::::::::"
        890     (cat $LOG; $UUENCODE "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz "$ARCHIVEDIR"Backuplist-"$BACKUPDATE".txt.gz) | mail -c $EMAILCC \
        891     -s "Zimbra Full Backup Log on `hostname --fqdn`" $EMAIL

  9. #119
    163828045 is offline Member
    Join Date
    Sep 2008
    Posts
    11
    Rep Power
    6

    Default

    Hello,
    My thanks to the author for sharing this script with us, is very handy.
    I have installed it in ubuntu 8.04 LTS after executing the command
    ./zmbac.sh -f
    Everything goes fine except for the last part when stuck in
    Archive 10_Zimbra_Backup_11-March-2009_FULL requires a password:

    Any ideias?
    Thanks for your help.

  10. #120
    heinzg is offline Loyal Member
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    83
    Rep Power
    7

    Default

    Quote Originally Posted by jsauve View Post
    Whoa. Had a major issue come up after using this script on ZCS 5.0.10. The mail transfer agent stopped starting up after running the script. I noticed a few days later when the Z admin console indicated that mta had stopped. Manual restart via zmcontrol stop & zmcontrol stop didn't do any good, and neither did physical reboots.

    I wound up restoring to the first full backup. Anyone have similar issues? Hopefully, the mta failure is just a coincidence. I'll be trying some other things soon.

    - Joe
    Hi, I can't imagine that the backup script caused the issue with the mta. As I have seen this on a box where the script is not running.

    I would like more info if you can provide, i will look into it.

    Cheers
    heinzg
    Motions of a day at work -

Page 12 of 66 FirstFirst ... 210111213142262 ... LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Zimbra Backup Script ... Small Problem
    By frankb in forum Administrators
    Replies: 12
    Last Post: 07-14-2008, 08:40 AM
  2. Debian - Upgrade from 4.5.6
    By magikman in forum Installation
    Replies: 1
    Last Post: 01-19-2008, 12:59 PM
  3. Backup script issues
    By SSS in forum Administrators
    Replies: 18
    Last Post: 12-03-2007, 09:56 AM
  4. 4.0.4 to 4.5.6 upgrade failed in network edition
    By chenthil in forum Administrators
    Replies: 1
    Last Post: 08-27-2007, 09:36 AM
  5. [SOLVED] Simple backup question...
    By dameron in forum Administrators
    Replies: 3
    Last Post: 08-25-2007, 09:36 PM

Posting Permissions

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