Page 56 of 66 FirstFirst ... 6465455565758 ... LastLast
Results 551 to 560 of 659

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

  1. #551
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    Quote Originally Posted by blason View Post
    Has any body tries with tar -zcvf instead on dar on CentOS or RHEL? Does any one have the updated version?
    I haven't seen any posts of someone doing it. dar does have some nice features missing in tar, but unless you're encrypting your dars, there is not much difference in its usage in this script. Updating for tar would be straightforward, but take some time.

  2. #552
    blason is offline Elite Member
    Join Date
    Sep 2011
    Posts
    255
    Rep Power
    3

    Default

    Nah I am not concerned about encryption rather I am more worries about finding that RPM for CEntOS 6 X_64. Do you have that or does anybody have this RPM for CentOS 6

  3. #553
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    Quote Originally Posted by blason View Post
    Nah I am not concerned about encryption rather I am more worries about finding that RPM for CEntOS 6 X_64. Do you have that or does anybody have this RPM for CentOS 6
    A quick search turned up nothing. You've got to build it. If you need help with that, PM me.

  4. #554
    blason is offline Elite Member
    Join Date
    Sep 2011
    Posts
    255
    Rep Power
    3

    Default

    Thanks for your help LaFong in fact I did compile from source codes and got it installed. however I am still working tar so that instead of using dar I can use tar to save the backup or is it possible to do the same stuff with dar by keeping the entire backup in one file instead of slicing DVD wise?

    I am pretty much interested in that, though I haven't yet played with dar and most of my work have done is in tar hence I feel much comfortable about it

  5. #555
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    Quote Originally Posted by blason View Post
    Thanks for your help LaFong in fact I did compile from source codes and got it installed. however I am still working tar so that instead of using dar I can use tar to save the backup or is it possible to do the same stuff with dar by keeping the entire backup in one file instead of slicing DVD wise?

    I am pretty much interested in that, though I haven't yet played with dar and most of my work have done is in tar hence I feel much comfortable about it
    I do not slice my dars up to fit on DVDs, and most people (I think) do not want to do that. Simply set the ARCHIVESIZE variable bigger. I've got mine set to 110GB.
    Code:
    ARCHIVESIZE="110000M"   # storage media size, for full-backup archiving

  6. #556
    kazooless is offline Loyal Member
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default

    On 12-18-2010, LaFong said:

    If you restoring an entire server from scratch:
    Install OS
    Install Zimbra (the version you've been using)
    Replace /opt/zimbra with your backup.
    Restore/reinstall/reconfigure other items which are outside of Zimbra.
    And I found this article too:
    » Zimbra :: Blog

    I am planning to do this but I want to make sure I understand perfectly well before I do.

    The script gives us a FULL and a DIFF DAR file. Actually, I assume I can kick off a manual full backup before migrating and so I'll just have one FULL DAR file to work with.

    If I copy the DAR file to the new machine, then after I install the same version of Zimbra and delete /opt/zimbra as per the article above, can I just expand the DAR file to /opt/zimbra and that should be it? (Assuming I did all of the machine based config properly first).

    Lastly, is something like this the correct command line?:

    dar -x /tmp/backup.dar /opt/zimbra

  7. #557
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    Quote Originally Posted by kazooless View Post
    And I found this article too:
    » Zimbra :: Blog
    That is more or less the method, though some details can vary. For instance, you could use network transfer instead of an external drive.

    The script gives us a FULL and a DIFF DAR file. Actually, I assume I can kick off a manual full backup before migrating and so I'll just have one FULL DAR file to work with.
    You could do that, to have the backup be current. Do you not use the rsync part of the script, or rsync any other way? With a fresh rsync, you would not need to bother with the dars.

    If I copy the DAR file to the new machine, then after I install the same version of Zimbra and delete /opt/zimbra as per the article above, can I just expand the DAR file to /opt/zimbra and that should be it? (Assuming I did all of the machine based config properly first).
    Yes.

    Lastly, is something like this the correct command line?:
    dar -x /tmp/backup.dar /opt/zimbra
    Close. Here is the dar syntax:
    Code:
    dar -x /tmp/15_ZimbraBackup_20110414_FULL -w -R /opt/zimbra
    dar -x /tmp/15_ZimbraBackup_20110414_DIFF -w -R /opt/zimbra
    If you have a new full, you don't need to bother with the diff. Notice that you must leave out the ".1.dar" part of the filename. Create the /opt/zimbra directory first, and give it the proper owner, group, and permissions.

  8. #558
    kazooless is offline Loyal Member
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default

    Perfect! Thanks so much. The specific nature of your reply should also make it handy to anyone else out there.

  9. #559
    kazooless is offline Loyal Member
    Join Date
    Mar 2009
    Posts
    91
    Rep Power
    6

    Default Time Stamp Before Remote Copy?

    Hello again,

    I have my system remote copy to an iMac. Currently, I just use crontab to run a script with a simple "etherwake 'mac_address'" command. But the iMac is set to stay awake for an hour and that is more than I would really like.

    I found the function in the script that copies the DAR files over:

    # DRCP Section. To scp newly created archives to a remote system
    if [ "$DRCP" = "yes" ]
    then
    CPNAME=`ls -A "$ARCHIVENAME"*`
    echo "copy archive to $REMOTEHOST" remote directory $REMOTEDIR
    scp -i /root/.ssh/id_rsa $CPNAME "$SSHUSER"@"$REMOTEHOST":"$REMOTEDIR"
    if [ "$?" -ne "0" ]
    then
    echo "Error copying archive and checksum to $REMOTEHOST"
    mail_log
    exit 1
    fi
    How would I put a time stamp in the log right at the beginning of this section? This is so I know the average time it starts the copy for both FULL and DIFF copies.

    Secondly, how would I incorporate the "etherwake mac_address" command with a 30 second pause before actually starting the copy?

    Thanks in advance for the help.

    kazooless

  10. #560
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    Quote Originally Posted by kazooless View Post
    Hello again,

    I found the function in the script that copies the DAR files over:

    How would I put a time stamp in the log right at the beginning of this section? This is so I know the average time it starts the copy for both FULL and DIFF copies.
    Change this line, adding `date`:
    Code:
    echo "copy archive to $REMOTEHOST" remote directory $REMOTEDIR at `date`
    Or, if you just wanted the time, use something like `date +%H":"%M":"%S`. Note those are backticks, not single quotes, around `date`.
    Secondly, how would I incorporate the "etherwake mac_address" command with a 30 second pause before actually starting the copy?
    Code:
    if [ "$DRCP" = "yes" ]
    then
    etherwake mac_address
    sleep 30
    CPNAME=`ls -A "$ARCHIVENAME"*`
    echo "copy archive to $REMOTEHOST" remote directory $REMOTEDIR at `date`
    ...etc

Page 56 of 66 FirstFirst ... 6465455565758 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 3 users browsing this thread. (0 members and 3 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
  •