Rebuilding config server.  what/how to archive and restore?

Greetings,
I've recently realized that I've gotta either re-jumpstart a server (because the root disk isn't mirrored, and because some other packages didn't get installed), or manually mirror the root disk (using SVM).
What I'm after here is info on what I need to archive, how to do that, and how to restore.
Details on the host: It's my primary master for my MMR setup, and is also the config server for when I set up other DS machines.
I'm guessing that I've got to archive off o=NetscapeRoot, and possibly the config stuff (but not necessarily the suffix, since it should be able to be initialized from one of my other masters, right?)
What tools are best used for this? Once the backup is made and the server is rebuilt, is it as simple as just restoring the archived trees? What tools are used for that?
TIA,
Patrick

I should think:
1) "tar" of everything under $LDAP_SERVER_ROOT, when both admin and ldap server are shutdown, make sure you check its content via "tar tvf ..." that all alias/*.db and all files under "db" are there.
2) db2ldif for both NetscapeRoot and all userRoot(s) when both are down "ideally".
I have a cron job for this "db2ldif_backup.sh" which runs daily at 02:00 when both are "up".
# db2ldif_backup.sh
# Execute these for iPlanet Directory Server
IDS5_PATH=/var/Sun/mps
BASEDN="dc=example,dc=com"
LDIF_FILE=/home/ldap/full_backup.ldif
NETSCAPEROOT_LDIF_FILE=/home/ldap/NetscapeRoot.ldif
if [ -n "`ps -ef | grep 'ns-slapd' | grep -v grep`" ]
then
YYYY=`date +'%Y'`
cd $IDS5_PATH/slapd-`hostname`/ldif
rm -f $YYYY*.ldif
../db2ldif -n UserRoot
cp $YYYY*.ldif $LDIF_FILE
echo "Full user data backup written to $LDIF_FILE"
rm -f $YYYY*.ldif
../db2ldif -n NetscapeRoot
cp $YYYY*.ldif $NETSCAPEROOT_LDIF_FILE
echo "Netscape Config data backup written to $NETSCAPEROOT_LDIF_FILE"
chmod 600 $NETSCAPEROOT_LDIF_FILE
fi
Note: saveconfig and restoreconfig are doing the same for NetscapeRoot.
3) db2bak
Gary

Similar Messages

  • How to archive and delete messages in SXMB_MONI

    Hi all,
    We are working on SAP XI Development environment wherein we have File to IDoc scenario running twice daily and creating many messages.
    How to archive and then delete these messages ?
    Does accumalation of past messages affect the speed and performance of the system?
    Thanks in advance.
    Ajay

    Ajay,
    For step by step procedure of how to archieve and delete messages in XI go through the urls:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50
    Delete Messages SXMB_MONI
    http://help.sap.com/saphelp_nw04/helpdata/en/0e/80553b4d53273de10000000a114084/frameset.htm
    Too many questions on Archive/Delete messages.
    ---Satish

  • What is data archiving and DMS(Data Management System) in SAP

    what is data archiving and DMS(Data Management System) in SAP
    Welcome to SCN. Before posting questions please search for available information here and in the web. Please also read the Rules of Engagement before further posting.
    Edited by: kishan P on Aug 31, 2010 1:06 PM

    Hi,
    Filtering at the IDoc Level
    Identify the filter object (BD59)
    Modify the distribution model
    Segment Filtering
    specify the segments to be filtered (BD56)
    The Reduced IDoc Type
    Analyze the data.
    Reduce the IDoc type (BD53)
    Thanks and regards.

  • How to view and restore sharepoint 2013 designer workflows and how to redeploy with newer version to environments

    how to view and restore sharepoint 2013 designer workflows and how to redeploy with newer version to environments
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi,
    In SharePoint Designer 2010, we could not save the workflow as a template directly except the reusable workflow.
    However, in SharePoint Designer 2013, we can just save all the types workflow as a template, then you can import the workflow into the new environment.
    http://blogs.msdn.com/b/workflows_for_product_catalogs/archive/2012/11/02/deploying-a-workflow-on-a-different-server.aspx
    In SharePoint Designer 2013, every time we publish the workflow, we would get a newer version workflow, and the old workflow version would be overwritten.
    So, when you deploy the workflow in the environment, the workflow would the newer version.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Can anyone tell me how to find and restore previously purchased OS updates to my iMac?

    Can anyone tell me how to find and restore previously purchased OS updates to my iMac?

    Please go to the Apple (upper left corner) and click on About this Mac. In the resulting window, click on the numbers underneath until they display the OS version.
    Snow Leopard, Lion, and Mountain Lion are all OS X - they are 10.6, 10.7, and 10.8 respectively. After you get the OS version, click until you get the "Build" number and post that as well.
    If your Mac is from 2010, it most likely came with Snow Leopard. If you purchased Lion, then you should be able to see it under your Purchases in the App Store (not iTunes). But, first, we need to figure out what was installed on your machine after the hard drive replacement.
    Not sure about iPhoto at this point - may have to do with whaever OS version is installed. Check in Applications folder in column view and post back which version of iPhoto you have installed.

  • HT1766 Now, I understand how the backup and restore the backup functions. However, if I don't want to transfer the music that I have on iTunes to my phone, how do I avoid it? How do I not transfer the music or take it out of my iPhone if it is already the

    Now, I understand how the backup and restore the backup features function. However, if I don't want to transfer the music that I have on iTunes to my phone, how do I avoid it? How do I not transfer the music or take it out of my iPhone if it is already there? I really do not want any music on my iPhone because I have an iPod for that. Thanks. Hope someone can help.

    When you connect your phone and start iTunes on the left side you will see your phone listed under devices.Click on te icon next to it that looks like a battery. Click on the music button at the top and uncheck the sync music box.

  • How to backup and restore in sap ECC 6.0  EHP 6 in HANA database

    how to backup and restore in sap ECC 6.0  EHP 6 in HANA database

    Stop loading your interview questions here - otherwise your user ID will be deleted.
    Thread locked!

  • How to backup and restore iPhone 4

    how to backup and restore iphone 4

    How to back up: http://support.apple.com/kb/HT1766.
    How to restore: http://support.apple.com/kb/ht1414.

  • Please help! I am currently using iPhone 5 and changing to iphone 6 in sometime. I have taken backup of my photos, videos, contacts, notes and whatsapp. The only thing that remains is my iMessage. Can someone tell me how to backup and restore my iMes

    I am currently using iPhone 5 and changing to iphone 6 in sometime. I have taken backup of my photos, videos, contacts, notes and whatsapp. The only thing that remains is my iMessage. Can someone tell me how to backup and restore my iMessages?

    iMessages are backed up in the normal backup of your phone so it will be restored when you restore the backup.

  • Time machine failure after MacBook archive and restore

    A couple of days ago my 2 year old MacBookPro was hanging up everywhere and all the time so I finally did an archive and restore. Since then I haven't been successful with a TM backup. I am using a 500 gig Western DIgital MyBook which I have used successfully from the start. I have checked the drive with Disk Utility and have even dumped the previous TM backups on the drive. This is the message I get from the Buddy Widget:
    Starting standard backup
    Backing up to: /Volumes/Barb's MyBook/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Backup content size: 100.7 GB excluded items size: 21.7 MB for volume Macintosh HD
    No pre-backup thinning needed: 121.07 GB requested (including padding), 358.68 GB available
    Error: (-36) SrcErr:YES Copying /Previous Systems.localized/2009-06-28_2347/private/var/vm/sleepimage to (null)
    Error: (-50) SrcErr:NO Copying /Previous Systems.localized/2009-06-28_2347/private/var/vm/sleepimage to /Volumes/Barb's MyBook/Backups.backupdb/MacBook Pro/2009-06-29-224854.inProgress/28FEA71C-BD1B-48FA-9609-3B59A7E31A25/Macintosh HD/Previous Systems.localized/2009-06-28_2347/private/var/vm
    Stopping backup.
    Error: (-8062) SrcErr:NO Copying /Previous Systems.localized/2009-06-28_2347/private/var/vm/sleepimage to /Volumes/Barb's MyBook/Backups.backupdb/MacBook Pro/2009-06-29-224854.inProgress/28FEA71C-BD1B-48FA-9609-3B59A7E31A25/Macintosh HD/Previous Systems.localized/2009-06-28_2347/private/var/vm
    Copied 78842 files (28.8 GB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    Hopefully someone can translate this? This time the failure came about 1/4 of the way through.
    Thanks!

    Belbe wrote:
    Error: (-36) SrcErr:YES Copying /Previous Systems.localized/2009-06-28_2347/private/var/vm/sleepimage
    The Previous Systems folder is your old OS, from before you did the Archive & Install. It's left there in case something didn't get transferred to the new system properly, you can go in and copy or move it.
    If you're sure the A&I brought everything over, you can just delete it. But note that it contains several hundred thousand items, so will take a very long time to delete. The last time I did this, I deleted the top-level folders one at a time to reduce the impact on my Mac.
    In the meantime, try simply excluding it from TM. go to TM's Preferences and click Options.
    In the next panel, click the plus sign at the bottom.
    In the sidebar of the next panel, select your internal HD, then navigate to the folder listed.
    Select it, click Exclude, then Done.
    Then do a +Back Up Now+ from the TM icon in your Menubar.
    It will probably work fine. If not, post back with those messages.

  • Just set-up my first IPad (Air) using ICloud.  This resulted in none of my desktop Outlook icons working.  Can anyone tell me how ICloud works and restore functional Outlook icons on my desktop.

    Just set-up my first IPad (Air) using ICloud.  This resulted in none of my desktop Outlook icons working.  Can anyone tell me how ICloud works and restore functional Outlook icons on my desktop?

    Just set-up my first IPad (Air) using ICloud.  This resulted in none of my desktop Outlook icons working.  Can anyone tell me how ICloud works and restore functional Outlook icons on my desktop?

  • Hard Drive won't verify so can't Archive and Restore (10.4.6)

    Hello
    I've had problems updating from 10.4.5 to 10.4.6 - ever since the update neither iCal nor the Address book work. The data for the address book is still there as Mail can see it, but neither iCal nor Address book will open - they just bounce in the dock and crash.
    Reading further down this forum I worked out that the best thing was probably to archive and restore back to 10.4.1 and re-update using the combo installer.
    Unfortunately the 10.4.1 Installer DVD won't let me carry on as it crashes when it verifies the target disk.
    The same thing happens when I use the disk utility and try to verify the disk - it won't even start scanning it - just crashes almost instantly. (Permissions verify OK and no problems).
    I'd rather not do a format & install if I can help it as I would have to spend ages reloading all the software from CDs and DVDs...
    I hope that all makes sense - thanks in advance for your help
    T
    Powerbook G4   Mac OS X (10.4.6)  

    Hi Tom, Welcome to Apple Discussions.
    Given the situation you're in I don't know that you have a good option but to erase and install. You can try repairing with DiskWarrior but it may or may not work.
    My advice would be to get a firewire external hard drive and clone your system over to it. That way, instead of re-installing you can just use Migration Manager. You'll also have a complete backup solution which it sounds like you need.
    -mj
    [email protected]

  • Lion Archive and Restore

    Can anyone tell me where to find instructions for Lion to archive and restore operating system? 

    There is no Archive and Install, there is just Reinstall:
    Reinstalling Lion Without the Installer
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alterhatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Continue button.
    Note: You can also re-download the Lion installer by opening the App Store application. Hold down the OPTION key and click on the Purchases icon in the toolbar. You should now see an active Install button to the right of your Lion purchase entry. There are situations in which this will not work. For example, if you are already booted into the Lion you originally purchased with your Apple ID or if an instance of the Lion installer is located anywhere on your computer.

  • How to Archive and Purge SLA data?

    We are looking for a solution to archive and purge SLA tables. I have opened an SR with Oracle and they suggested to work with third party who specialized in archiving and purging data. I would like to see if any of the clients have developed a custom solution for this and if so what is the criteria that has been used for this
    Thanks in advance,
    Prathibha

    Hi,
    Thanks for the information.
    But this traditional way of doing is archiving is for maintenance and backup operations.
    We want to have this process online, without taking db offline. In this case will this approach work?
    In our case, the rules can be like -
    1. For table 'A', if rows exceed 10Million, then start archiving of the data for that table.
    2. For table 'B', if data is older than 6 motnhs start archiving of the data for that table.
    3. Archiving should be on for 15 minutes only after that should pause, and should resume whenever user wants to resume.
    4. Archiving should start on specified days only... ETC...

  • How to backup and restore postgres, How to backup and restore postgres

    Hi!
    Yesterday I had a major hickup while trying to configure some OD stuff. Since I was still setting up Lion Server, I just decided to go back and restore the system using a Time Machine backup from a few hours earlier. Went well... except that anything to do with postgres was not working anymore: web pages, wiki, iCal, etc Postgres would not start anymore. I could not find anything on the internet and after a few hours of trying gave up and just did a fresh, clean install. Fortunately there were not many user files on yet, but I did lose everything I noted in the wiki since I migrated the old Snow Leopard content.
    SO, HERE comes the question: is there a fool-proof way of backing up all Lion Server postgres databases and, more importantly, to actually get the thing back up after a Time Machine restore? I know I can dump all db's using pg_dumpall, but what would be the steps to get this back up and running should I need to? I have restored many MySQL databases in the past, but never were they directly linked to many OS functionalities.
    The "Advanced Administration" document of course is not advanced enough for this. Is there anywhere I real guide on "How to restore and make function your Lion Server after a major desaster", like hard disk failure?? Would be very helpful, in case it's needed but also for peace of mind.
    Thanks lot! Appreciate any input!
    Cheers,
    Hendrik

    Take my little script here and adjust it to your requirements. I got the base of this script somwhere else and enhanced it myself. Read some explanations below:
    # #!/bin/bash
    if (test "`whoami`" != "root") then
            echo "You need to be root to start this"
            exit 1
    fi
    PG_PORT="5432"
    PG_USER="_postgres"
    PG_BIN="/usr/bin/"
    ACT_DATE=$(date '+%y-%m-%d')
    EXP_DATE=$(date -v -2w '+%y-%m-%d')
    BACKUP_DIR="/Backups/postgres"
    LOGFILE=$BACKUP_DIR"/_pg_backup.log"
    COMPRESSION="9"
    PG_CON="-U $PG_USER"
    BACKUP_OPTIONS="$PG_CON -b -C -F c -Z $COMPRESSION"
    VACUUM_OPTIONS="$PG_CON -eq"
    echo "***** DB_BACKUP $ACT_DATE *****" >>$LOGFILE
    for db in `$PG_BIN/psql $PG_CON -lt | sed /\eof/p | grep -v = | awk {'print $1'}`
      do
        # vacuum
        if [ "X" == "X$db" ]; then
              continue;
        fi
        echo $(date '+%c')" -- vacuuming database $db" >> $LOGFILE
        if $PG_BIN/vacuumdb $VACUUM_OPTIONS $db
          then
          #echo "OK!" >>$LOGFILE
              sleep 1
        else
          echo "No Vacuum in database $db!" >>$LOGFILE
        fi
        # backup
        echo $(date '+%c')" -- backing up database $db" >>$LOGFILE
        if  $PG_BIN/pg_dump $BACKUP_OPTIONS -f $BACKUP_DIR/$db-$ACT_DATE.pgdump $db
          then
          if [ -e $BACKUP_DIR/$db-$EXP_DATE.pgdump ]; then
              echo $(date '+%c')" -- deleting old backup" >>$LOGFILE
              rm $BACKUP_DIR/$db-$EXP_DATE.pgdump
          fi
        else
          echo "FAIL Database $db backup!" >>$LOGFILE
        fi
      done
    This script dumps all databases in postgres individually.
    Databases are vacuumed and then dumped.
    Dump-Format is currently set as compressed pgsql dump (See "-F c" in $BACKUP_OPTIONS)
    File names consist of "databasename"-"backupdade".pgdump
    I have programmed to automatically purge backups older than two weeks (see " -2w " in $EXP_DATE)
    If you drop a database you will have to remove backups for that database manually.
    I have enabled a daily run of this scrip by placing the executable script somwhere and add it to the crontab of root: sudo crontab -e
    Enter the following line and your backups start every day at 6:00. Adjust paths and scriptname according to your own setup.
    0 6 * * *       ~/.bin/postgres_dump.sh > /dev/null 2>&1

Maybe you are looking for