Command for Backuping in LDIF

Hi all, I am able to backup in whole directory in LDIF format through the console. But how can i backup whole directory in LDIF format in command line.
i know there is command db2ldif. what is correct form of usage to backup the complete directory .
Thanks

Thanks,
As you said to find suffix i did some thing like this
ldapsearch ...... -s base -b"dc=domain,dc=edu" "objectclass=*" namingContexts
i got only one suffix
dc=domain,dc=edu
To find backend database
ldapsearch ..... -s sub -b "cn=config" "objectclass=nsbackendinstance" cn
i got following name
cn=NetscapeRoot,cn=ldbm database,cn=plugins,cn=config
cn=NetscapeRoot
cn=sampleRoot,cn=ldbm database,cn=plugins,cn=config
cn=sampleRoot
cn=userRoot,cn=ldbm database,cn=plugins,cn=config
cn=userRoot
which one have complete backup in suffix or in database ?
I assume the backing ldif in database instance will be more complete than suffix am i correct.
Thanks again for your inputs

Similar Messages

  • Sql Commands for Backup and restore database

    Hi,
    What are the SQL commands used for database backup nad restore?
    Is it possible to use these command in pl/sql block or it is used only
    from sql plus?
    Thanks
    Jobin .SP

    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/intro005.htm

  • How to run exp command for backup in Oracle APEX 4.0

    Hi!
    I am using APEX 4.0 with Oracle R11i. For Daily Backup I have to use the "CMD" procedure. Is it possible to run this "EXP" script through a BUTTON or anything else in Oracle APEX 4.0
    Looking For You Quick Response
    With Best Regards

    Why not instead run a dbms_scheduler job to handle your backup? Or better yet, just build a scheduled job to run every night and you don't need to have the user run ANYTHING?
    Thank you,
    Tony Miller
    Webster, TX
    Never Surrender Dreams!
    JMS

  • Best command for script backup?

    hello,
    i always use robocopy for file backup , but with powershell and the new technologies is still the easiest and best choice?

    Your initial question was "Best command for script backup?". For this you received an answer. If you now need support on the subject of your script then you should start a new thread. Note also that you must test your robocopy command from a
    command line before trying to embed it in a PowerShell script.

  • Commands for OCR and Voting File backup Restore?

    We have 2 node rac instance on 64-bit win2003 with three diskgroups DATA, BKUP, +FRA.
    We have ordered for new servers till then I will not have any test instance but only the production to work on.
    I am taking care of db files, ctl, spfile, arcivelog files through RMAN.
    The voting file and the ocr file is on raw disks.
    I have gone through the rac material but My request is somebody please compile the way and command to backup my ocr and voting file and in case of loss what are the commands to restore the files?
    Thanks in advace.
    [email protected]

    Hi Sami,
    Taking backups from OCR
    %CRS_HOME%\bin\ocrconfig -export C:\OCR_%DATA%.bkp -s online
    Restoring OCR... http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/votocr.htm#i1016682
    Run the following command to add an OCR location using either destination_file or disk to designate the target location of the additional OCR:
    %CRS_HOME%\bin\ocrconfig -replace ocr destination_file or disk
    Run the following command to add an OCR mirror location using either destination_file or disk to designate the target location of the additional OCR:
    %CRS_HOME%\bin\ocrconfig -replace ocrmirror destination_file or disk
    Backing Up and recover Voting Disks http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/votocr.htm#BABDJDHI
    with ocopy and crsctl
    Regards,
    Rodrigo Mufalani

  • I bought a new external hard drive for backups, but time machine won't do a full back up.  I think it is remembering backing up onto previous external hard drives, which I don't own anymore.  How do I do a new full backup?

    I bought a new external hard drive for backups, but time machine won't do a full back up. 
    I think it is remembering backing up onto previous external hard drives, which I don't own anymore.  How do I do a new full backup?
    When I bought the new (used) iMac, I also bought an external hard drive for backups.  It worked fine, but my husband stole it.
    Then I bought a new external hard drive (Seagate) and it worked fine for three weeks, then died.
    So I just got a new external hard drive, which was put together from an internal hard drive and a hard drive enclosure. 
    Time machine did the first backup today, and it should have taken 9 hours like it did on the previous first time full back up.  Instead, it took 30 minutes.  That can't be right.  I want to start over and do a full backup to make sure everything gets onto my new external hard drive, but I can't figure out how to do that.  Please help.

    Triple-click anywhere in the line below to select it:
    tmutil compare -E
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V).
    The command will take at least a few minutes to run. Eventually some lines of output will appear below what you entered.
    Each line that begins with a plus sign (“+”) represents a file that has been added to the source volume since the last snapshot was taken. These files have not been backed up yet.
    Each line that begins with an exclamation point (“!”) represents a file that has changed on the source volume. These files have been backed up, but not in their present state.
    Each line that begins with a minus sign (“-“) represents a file that has been removed from the source volume.
    At the end of the output, you’ll get some lines like the following:
    Added:
    Removed:
    Changed:
    These lines show the total amount of data added, removed, or changed on the source(s) since the last snapshot.

  • What is best solution for backup ?

    Our environment consisted of RAC (2 nodes). we are trying to back up our database using RMAN with NetBackup.
    we also have other different databases need to be backed up.
    In RAC case, what is best solution for backing up the database ?
    As I mentioned above, we are using RMAN for backup our RAC with NetBackup.
    Actually, the RMAN is not simple utility for me.
    Is there any other way to back up the database in our situation without rman.
    I need some advice from all of you.
    Thanks in advance.

    Hi Justin
    There are many possible ways to backup your database. You must decide the one that suits your environment.
    Following is the list of options that you have.
    1. Take Online Backups
    Issue this command to freeze tablespaces
    SQL> ALTER TABLESPACE tblspcname BEGIN BACKUP;
    Copy all the files belonging to this tablespace to your backup location using OS commands.
    Release the tablespace by using this command.
    SQL> ALTER TABLESPACE tblspcname END BACKUP;
    To find the data files belonging to a particular tablespace you can issue this statement
    SQL>SELECT file_name, tablespace_name FROM dba_data_files ORDER BY tablespace_name;
    2. If your db size is not BIG then you can take logical backups. Logical Backups can be FULL or incremental. In 10g you can have filesets to spilit your logical backups in more than one file with specified sizes. (By Logical Backups I mean EXPORT).
    To take export for example issue this command.
    ORACLE_HOME\bin\exp file=fullpath+filename.dmp log=fullpath+logfilename.log FULL=Y userid=system/pwd@dbconnectstring
    To get full list of export parameters type
    ORACLE_HOME\bin\exp help=y
    3. RMAN (Strongly recommended) but you ruled out its possibility so I won't elaborate on that.
    4. COLD BACKUP
    To perform this type of backup you will need to shutdown your database by issuing this command.
    SQL>SHUTDOWN IMMEDIATE;
    (On RAC you will need to shutdown all the instances before copying files to the backup location).
    Use OS copy command to copy files to backup location.
    (This method is not recommended as it will flush your SGA and your client will complain about performance for the first few hours).
    Let me know if you need more details.
    Hopefully this helps.
    Rgds
    Adnan

  • "Backup optimization on" is not working for "backup database"

    Hi,
    I am using a windows environment and my database info is like this:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0      Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Productionnow, I change my configuration for backup optimization on and then make example tablespace offline and also make example datafile offline. After that I run 2 times "Backup Database" command but 2 backup has same size and have example tablespace too... Backup archivelog all is working bur backup database is not!
    according to this link it must not backup example datafile for second: http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmconfb.htm#BRADV113
    is there something that I missed ?
    rman configuration:
    CONFIGURE RETENTION POLICY TO REDUNDANCY 5;
    CONFIGURE BACKUP OPTIMIZATION ON;
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET;
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1;
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF;
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE COMPRESSION ALGORITHM 'HIGH' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE;
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'C:\APP\ABC\PRODUCT\11.2.0\DBHOME_1\DATABASE\SNCFORCL.ORA'; # default

    If you enable backup optimization, then the BACKUP command skips backing up files when the identical file has already been backed up to the specified device type.
    1. In case of datafile RMAN compares the DBID, checkpoint SCN, creation SCN, and RESETLOGS SCN and time as a datafile already in a backup. If they are identical then skip to take backup again.
    2. In case of archived redo log RMAN compares thread, sequence number, and RESETLOGS SCN and time.
    3. In case of backupset RMAN compares recid and stamp.
    Backup optimization applies to only commands,
    -BACKUP DATABASE
    -BACKUP ARCHIVELOG with ALL or LIKE options
    -BACKUP BACKUPSET ALL
    refer,
    http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14191/rcmconc1008.htm
    Thanks

  • Waking for backup - USB unmounted...sometimes

    It will take a couple of more days of experiments to define this problem, but I thought I would go ahead and post.
    I have my system (20" Alu iMac) set to sleep after an hour of inactivity and wake up at 12:30am, if needed, to execute a cron job (haven't gotten launchd to work yet - it tries, but the program fails) at 1:00am. The cron job runs rsback, an rsync-based script to save rotating backups (backups need to be accessible by Linux systems in case the iMac fails, so not using TM) to my external USB harddrive - a WD 320GB MyBook. Normally, the external drive is mounted as /Volumes/WD320A.
    For the first few days when I logged in in the morning, the backups would appear in a real, local directory /Volumes/WD320A and the USB drive was mounted as "/Volumes/WD320A 1" I suspected the drive was not waking when the computer did to run rsback. But this morning, the backup appeared on the harddrive. The only difference was that I did not log out last night when I finished work. I am suspecting that the drive remains mounted if a user is logged in, but unmounted if no users are logged in. I will have to do some experiments to confirm or deny this. My questions at this point are:
    1) Is the USB drive really unmounted if noone is logged in, and does it stay mounted if someone is?
    2) Is there command I can use to "tickle" a sleeping or force a mount of the drive prior to executing my backup (which runs as root).

    Update. I have confirmed that if no one is logged in, the USB drive is not available for backups executed by cron as root. As long as I don't log out, its there and the backups proceed correctly.
    Next step is to see if I can find a shell command to force the mount of the drive just prior to the backup.
    Any suggestions?

  • HT3597 commands for voice control

    Is there a list of commands for voice control?

    Yea, I have a friend who has noticed this issue on his Z10.
    I've tested on my Z30, and the voice feedback is loud and clear. We'll have to figure out the differenced in the devices or OS release, or settings.
    What is your Operating System loaded to your device? Look at Options >  From the main screen, swipe down from the top black bezel to Settings > About... what is the OS Version listed there?
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Voice command for Contacts doesn't work after a re...

    Voice command for Contacts doesn't work after a reboot or a contacts restore.
    Steps to reproduce:
    1. Backup contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Back up now.
    2. Edit/save a contact, press and hold the call button, speak contacts name. The voice recognition works fine.
    3. Restore contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Restore.
    4. Reboot phone when prompted.
    5. Press and hold the call button, speak contacts name. The voice recognition does not work.
    Work around:
    Edit and save each contact.
    Additional Information:
    Social integration with contacts also does not work after a reboot. The facebook icon and "See what xxx is up to on Facebook" is not displayed. The same work around "Edit and save each contact" also applies. This occurs using the Nokia N8 and Nokia 808 Pureview.

    Nancy2015 wrote:
    I have my phone paired with my car, I can do everything except it does not recognize any of my contact names. If I try say a contact name, it says "not recognized" but if I say the contacts phone number, the name pops up onthe display in my car.
    Has anyone had this issue, is there a setting I am missing in my phone?
    Hello, 
    This is not necessarily and issue with the phone. It could also be an issue with the car`s bluetooth software that is only limited to some functions like reading your contacts list, last calls, missed calls, etc. which is most likely the basic 2.0 version. 
    The Z30 has the 4.0 version that has a lot more communication capability but if the car`s bluetooth its a lower version, then you will not be able to take full advantage of it unless you upgrade the bluetooth software in your car. Call your dealer and inquire about the bluetooth software upgrade in your car   

  • Create server role for backups (BACKUP DATABASE and RESTORE HEADERONLY)

    Hello-
    I wish to create a server role that will allow any users assigned to it to be able to issue a BACKUP DATABASE and RESTORE HEADERONLY for any database on the server.  I've been searching Google and MSDN but haven't had much luck.  I can create the
    user (CREATE SERVER ROLE backupuser;) but don't really know how to assign the permissions to it that I want.  I wish to keep the permissions as narrow as possible for good practice; I could just assign the user to the sysadmin group but that shouldn't
    be necessary.
    If anyone can help, I would much appreciate it.

    Whenever you need to find out the required permissions for a command, the best way is to look up these commands in Books Online, and to the Permissions/Securities section. This is what I always do when people asks these questions, because I rarely knows
    the answer by heart.
    So, let's see what the topic for BACKUP has to say:
       BACKUP DATABASE and BACKUP LOG permissions default to members of the
       sysadmin fixed server role and the db_owner and db_backupoperator fixed
       database roles
    The permission section for RESTORE HEADERONLY says:
       Beginning in SQL Server 2008, obtaining information about a backup set or
       backup device requires CREATE DATABASE permission. For more information,
       see GRANT Database Permissions (Transact-SQL).
    So it seems that if you want a user that has server-level rights to back up databases, this must be sysadmin, which is a little disappointing. One possibility is to package the BACKUP command in a stored procedure, which you sign with a certificate. Then
    you create a login from the certiticate, and add that login to sysadmin. BACKUP accepts parameters for many of its arguments, so you don't have to build dynamic SQL. Still it is not really a satisfactory solution, since this user will have to work with
    BACKUP "commands" that will be procedure calls.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Can I make a disk image of my macbook pro for backup?

    Can I make a disk image of my macbook pro for backup? I'm using Lion, have 8 g memory and 500 HDD.

    Clone Lion using Restore Option of Disk Utility
    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. Alternatively, 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.
    Select Disk Utility from the main menu then press the Continue button.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    DU will also clone the Recovery HD partition automatically at the end of the process.

  • Application to use for backup

    Hi,
    I am using MBP with Snow Leopard, and I have this 500G external drive as my backup (Sometime use on windows to open backup files from mac).
    My question is , is there a program / application to use for backup? I tried backing up, but the folder on my target drive (500gb ext), was replaced with the folder on my mbp.
    Scenario:
    on MBP - I have folder Documents
    on 500ext drive - I have folder Documents
    When I copy the entire Documents folder from MBP to 500G Ext Drive, the one in 500G was replaced with the one in MBP. I dont want that to happen because sometimes I have files on 500g documents that doesn't exists on MBP Docs. I just want to COPY folders on either way and will retain files even not exists. Which means, I need a file manager that copy files to files not folder to folder.
    As much as possible, I want a free apps.
    Thanks

    Use the ditto command in the Terminal, which is in the /Applications/Utilities/ folder; for instructions on its use, enter 'man ditto' without the quote marks into the Terminal prompt.
    (55711)

  • My macbook says it has 108.3GB used for backups.  Why is that?  I'm running out of GB and would like to free some space up. Thanks. BTW this is my first mac.

    My Macbook pro keep running out of space.  I have my iPhoto library's on an external hard drive and I backup my mac to a separate hard drive.  But I noticed today that in my "about my mac" it says I am using over 108GB for backups!  What is that?  How do I fix it?  This is my first mac.
    Thanks so much for the help.
    Lisa

    If you have Time Machine enabled, then those are Time Machine snapshots. They will be deleted automatically if the space is needed. You can also do this:
    About Time Machine local snapshots
    Time Machine Snapshots
    Open the Terminal in the Utilities folder and enter or paste the appropriate command line. Press RETURN and enter your admin password when prompted. It will not be echoed. Press RETURN again.
         To turn them ON: sudo tmutil enablelocal
         To turn them OFF: sudo tmutil disablelocal
    Note that turning them OFF will also delete all existing snapshots.
    For more about snapshots see: OS X Mountain Lion- About local snapshots.

Maybe you are looking for

  • Cannot create SAPUI5 UI Component from a BPM Process

    Dear friends, For a very strange reason I am not able to create a SAPUI5 UI Component from a BPM Process. I am trying to create SAPUI5 UI's for an Human task as part of my BPM process. I am using NWDS 7.3 EHP1 SP15 PAT0000. We are using NWDI developm

  • MVA SQL Server Query Assessment question

    Hi Guys I was doing a course on MVA, Querying Microsoft SQL Server Quick Start. This question came up in the assessment: True or False: You use the INTERSECT operator to combine results from two SELECT statements. Only rows that appear in both result

  • How to put 2D graphics in TransformGroup?

    I can use J3DGraphics2D to draw graphics in Canvas3D, but may i put the graphics i drawed in a TransformGroup so that i can remove them later?

  • Application functions differently between accounts

    I recently installed Adobe CS4 and found that Dreamweaver was very slow. Adobe suggested that I create a new admin user to see if that helped. It worked excellent, but is there a way to cleanup my original user account so it will function without hav

  • Olympus C-5050 raw support workaround

    Followed the workaround found here http://discussions.apple.com/thread.jspa?messageID=3038880&#3038880 but it no longer seems to work. Is anyone still successfully using this workaround with a 5050 (or other unsupported formats)?