Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [SOLVED] problem taking opensource backup

  1. #1
    bluebriarrose is offline Active Member
    Join Date
    Aug 2009
    Posts
    48
    Rep Power
    6

    Default [SOLVED] problem taking opensource backup

    hi.. am new at this ... please help
    have tried out the following backup script but keep getting errors

    {{#!/bin/bash

    # Zimbra Backup Script
    # Live sync before stopping Zimbra to minimize sync time with the services down
    # Comment out the following line if you want to try single cold-sync only
    rsync -avHK /opt/zimbra/ /backup/zimbra

    # Stop Zimbra Services
    sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
    sleep 15

    # Sync to backup directory
    rsync -avHK /opt/zimbra/ /backup/zimbra

    # Restart Zimbra Services
    sudo -u zimbra /opt/zimbra/bin/zmcontrol start

    # Create archive of backed-up directory for offsite transfer
    # cd /backup/zimbra
    tar -zcvf /tmp/mail.backup.gz -C /backup/zimbra .

    # Transfer file to backup server
    ncftpput -u <username> -p <password> <ftpserver> /<desired dest. directory> /tmp/mail.backup.gz
    }}




    zimbra@cccbl:~> sudo -u zimbra /opt/zimbra/bin/zmcontrol stop sleep 15
    Host cccbl.citizencredit.com
    Stopping stats...Done
    Stopping mta...Done
    Stopping spell...Done
    Stopping snmp...Done
    Stopping archiving...Done
    Stopping antivirus...Done
    Stopping antispam...Done
    Stopping imapproxy...Done
    Stopping mailbox...Done
    Stopping logger...Done
    Stopping ldap...Done
    zimbra@cccbl:~> rsync -avHK /opt/zimbra/ /backup/zimbra
    building file list ... rsync: opendir "/opt/zimbra/ssl/zimbra.20090710125610" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/ssl/zimbra.20090710125612" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/ssl/zimbra" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/hold" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/corrupt" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/defer" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/flush" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/saved" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/trace" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/maildrop" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/active" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/bounce" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/deferred" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/public" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/incoming" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/data/postfix/spool/private" failed: Permission denied (13)
    rsync: opendir "/opt/zimbra/.saveconfig/zimlet" failed: Permission denied (13)
    done
    rsync: mkdir "/backup/zimbra" failed: No such file or directory (2)
    rsync error: error in file IO (code 11) at main.c(509) [receiver=2.6.8]
    rsync: connection unexpectedly closed (8 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(459) [sender=2.6.8]


  2. #2
    adeelarifbhatti is offline Advanced Member
    Join Date
    Feb 2009
    Posts
    188
    Rep Power
    6

    Post

    Hi,
    try this rsync -avrlHKpogDt /opt/zimbra/ /backup/zimbra_bak

    Regards
    Adeel

  3. #3
    bluebriarrose is offline Active Member
    Join Date
    Aug 2009
    Posts
    48
    Rep Power
    6

    Default

    Quote Originally Posted by adeelarifbhatti View Post
    Hi,
    try this rsync -avrlHKpogDt /opt/zimbra/ /backup/zimbra_bak

    Regards
    Adeel
    hi... i'm sorry i forgot to mention we are using SLES 10 as our OS .. does this command still apply??

  4. #4
    adeelarifbhatti is offline Advanced Member
    Join Date
    Feb 2009
    Posts
    188
    Rep Power
    6

    Post

    Did you mean solaris?

  5. #5
    bluebriarrose is offline Active Member
    Join Date
    Aug 2009
    Posts
    48
    Rep Power
    6

    Default

    no .. Suse Linux Enterprise Server 10.2

  6. #6
    bluebriarrose is offline Active Member
    Join Date
    Aug 2009
    Posts
    48
    Rep Power
    6

    Default

    this worked...

    {{{su - zimbra
    zmcontrol stop
    switch back to root
    ps aux | grep zimbra (kill -9 pid# of any remaining)
    mkdir /zcsbackup
    rsync -avHK /opt/zimbra/ /zcsbackup/zimbra
    mkdir /zcsbackuptars
    tar -zcvf /zcsbackuptars/backup.zimbra.version.date.time.tar.gz -c /zcsbackup/zimbra .
    su - zimbra
    zmcontrol start }}

    how exactly would the restore work?? what commands??

  7. #7
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    You would need to untar the backup file pull out any of the files you need.

  8. #8
    adeelarifbhatti is offline Advanced Member
    Join Date
    Feb 2009
    Posts
    188
    Rep Power
    6

    Exclamation

    did u mean taring and untaring don't work in a good way with zimbra ?



    regards
    Adeel

  9. #9
    bluebriarrose is offline Active Member
    Join Date
    Aug 2009
    Posts
    48
    Rep Power
    6

    Default

    hi
    no ... untarring works... i'm not sure about how the restored ZCS system picks up these files .... do i reintall zimbra??

  10. #10
    adeelarifbhatti is offline Advanced Member
    Join Date
    Feb 2009
    Posts
    188
    Rep Power
    6

    Post

    I guess, re-installation is required when u r moving to a new server, that re-installation with -s will only update some databases or RPMs.
    then u can delete the installation new one, and can restore the zimbra.

    Regards
    Adeel

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. LDAP authentication problem after backup script run
    By ask1 in forum Administrators
    Replies: 23
    Last Post: 11-18-2008, 03:47 PM
  2. ZCS NE Backup - Archiving To Tape Is To Slow
    By Chewie71 in forum Administrators
    Replies: 10
    Last Post: 09-19-2008, 04:59 PM
  3. Missing Email Problem
    By prox in forum Zimbra Connector for Outlook
    Replies: 6
    Last Post: 03-16-2008, 10:01 PM
  4. Problem with backup, sometimes
    By manowar in forum Administrators
    Replies: 0
    Last Post: 01-11-2008, 05:22 AM
  5. Is it started or not
    By kwelipatton in forum Installation
    Replies: 10
    Last Post: 03-28-2006, 11:11 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
  •