Recover a specific backup from backup history with dbmcli

hello friends,
how can i recover a specific backup from backup history with dbmcli with inizialization. in dbmcli i can only find methods for medium recovery. with dbmgui i try "instance" in menu, then "Recovery with Initialization", then i try i choose  admin_state, then i choose the radiobutton recover from backup history. I get my choice with specific date.
How can I build a script in dbmcli for this scenario. when i am try the command backup_history_open and backup_history_list i cant see the specific backup, what i see in dbmgui.
the backup history item, that i need has a specific system key "492FB68F0002". with which dbmcli  command i get this system key for recover.
which command i take for this scenarion db_activate RECOVER?
many thanks for suggestions,
christoph

> how can i record the staments for my script?
Do you know the "show console" feature in DBMGUI/DB Studio?
With that you can display all commands used by DBMGUI and the Recovery Wizard.
> I am looking for an automatism to recover an instance from a specific item from backup history, because we test ower deliverys with import in stms - see return codes.
Ok, but why do you need a recovery for that?
Use SNAPSHOTS instead (read the docu [here|http://maxdb.sap.com/doc/7_7/44/c4afa67ca22e17e10000000a114a6b/content.htm]!).
Create your base instance.
Create a SNAPSHOT.
Now run your tests.
When you finished your tests, simply restore the SNAPSHOT.
This takes seconds.
Bring the database online again and run some new tests.
When you want your initial instance again - just restore the SNAPSHOT once again.
Really, SNAPSHOTs are made for such a scenario.
> content for script:
>
> 1. stopsap r3 in sidadm context
> 2. db_admin of instance in dbmcli context
> 3. recover a specific item from backup history from nfs mount in dbmcli context
> 4. restartable check in dbcmcli context
> 5. restart instance in dbmcli context
> 6. logmode to overwrite in dbmcli context
> 7. db_offline in dbmcli context
> 8. startsap all in sidadm context
Ok. if you still would like to do it  this way... how about this:
dbmcli -U c -i refresh_db.txt
refresh_db.txt:
==============
db_admin
db_activate RECOVER <medium_name> DATA AUTOIGNORE
db_online
db_execute SET LOG AUTO OVERWRITE ON
db_offline
I leave the stopsap/startsap and the rest of the script to you, but I guess you got the idea.
BTW: there's no need to check for restart ability of the database after the recovery since by definition all full data restores are restartable with MaxDB!
So have fun (and go for the SNAPSHOTS instead!).
regards,
Lars

Similar Messages

  • HT204350 New Macbook Pro bought December 2013. Transferred everything from Timemachine backup from Macbook Air with 10.6.8.  Failed to transfer "network settings".  PROBLEM:  neither account can log in.  It shakes and refuses (the correct) password.  Help

    New Macbook Pro bought December 2013. T
    ransferred everything from Timemachine backup from Macbook Air with 10.6.8. 
    Failed to transfer "network settings". 
    PROBLEM:  the two accounts from the Macbook Air cannot log in.  It shakes and refuses (the correct) password.
    Cannot redo the setup.
    Stuck!  (With a dead as a doorknob $3000 machine.)
    Help!!

    New Macbook Pro bought December 2013. T
    ransferred everything from Timemachine backup from Macbook Air with 10.6.8. 
    Failed to transfer "network settings". 
    PROBLEM:  the two accounts from the Macbook Air cannot log in.  It shakes and refuses (the correct) password.
    Cannot redo the setup.
    Stuck!  (With a dead as a doorknob $3000 machine.)
    Help!!

  • Hard drive crashed. How do I recover all photos/albums from backup/synced data to new HD? PSE8

    Hard drive crashed. How can I recover all photos/albums from Elements 8 backup/synced data sitting on my acct on Photoshop.com
    to a new hard drive?

    You would need to sign in to Photoshop.com with your account and need to select the online album you want to download to your desktop.

  • How do I restore specific items from backup?

    Hi
    My phone had no reception, therefore I went on iTunes and backed it up then restored my iPhone to the factory settings.
    The recetion problem got fixed, but when iTunes asked me to restore my backup files on to my iPhone, so I did. then the reception problem came back on again. from here, it's obvious something in my backup files is making this problem happen. I then restored to factory settings again, but this time I set it up as a new device.
    now the question is, since the restore from backup function restores everything including the problem, how do I get specific things from the backup files?
    and also what exactly is backed up when you choose to backup the iPhone, does it backup things like photos and videos etc.?
    Thanks in advance.

    bbfc wrote:
    Not true - i don't sync my contacts with another service; they are restored from backup when needed. You can sync them with a service, like Outlook, Google etc, but most people do not know how to do this, so they just use the iPhone backup.
    I'm not sure about "most people", unless most people don't read the manual, which gives very clear step-by-step instructions on how to sync contacts (and calendar) to either the cloud or a computer application. Or they skip the manual and look at the screen, which has a checkbox and dropdown to sync contacts to a computer application.
    I can think of no reason to NOT sync contacts to an application or cloud service, as the iTunes backup is notoriously unreliable and is easily corrupted.
    But you are correct that contacts are included in the backup.

  • HT1386 Lost iPhone 4, bought iPhone 5, would like to transfer backup from last synch with computer but don't have the password

    Lost iPhone 4, bought iPhone 5, would like to transfer backup to new iPhone 5 from last synch with computer but don't have the password.

    What password? Did you encrypt your backup & now can't remember the encrypted backup passcode? If so, no, you won't be able to use that backup. If on a Mac, & you elected to save the passcode to your Keychain, you can recover it from that. Otherwise, you'll have to delete the backup. The data is unrecoverable.
    Or, are you talking about the iPhone passcode?

  • SBS2008 - How to recover single user mailbox from backup?

    Is it possible to recover the entire mailbox for a single user from backup? I have a user which deleted a subfolder from the Inbox which contained his most important e-mails for the past year, moved them to Deleted Items and of course delete it from there
    too which was removed from the server. 
    Never done a recovery so I'm kind of pulling my hair on this and I don't want to restore the whole storage group. 
    Any ideas would be greatly appreciated!

    Its tough if backups are not available. I agree with Larry.
    For More Info:
    http://blogs.technet.com/b/sbs/archive/2009/01/26/how-to-use-a-recovery-storage-group-in-sbs-2008.aspx
    Configuring Deleted Mailbox and Deleted Item Retention
    http://technet.microsoft.com/en-us/library/bb125266(EXCHG.80).aspx
    "Deleted Mailbox Retention  - Allows you to recover mailboxes after they were deleted. You must configure the Exchange server for deleted mailbox retention, and the mailbox recovery must occur during the retention period. In Exchange 2007, the
    default retention period is 30 days. You can perform the actual recovery of the deleted mailbox by using either the Exchange Management Shell or the Exchange Management Console."
    Binu Kumar - MCP, MCITP, MCTS , MBA - IT , Director Aarbin Technology Pvt Ltd - Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Can I restore backup from another mac with time machine?

    I would like to restore files from a TM backup from another Mac - is this possible? Thanks.

    I'm not sure I know how to help. I use OS X Server's Time Machine services from a Mac Mini to do my back ups to a drive connected to that server. I have the same user account on one MBP Retina that does not do back ups as another MBP Retina that DOES back ups. However, I can't even open the sparse bundle from the one that doesn't do back ups of the one that does (if that makes sense).
    You might try and see if this link helps. This guy was the TM guru around here. He might have addressed a solution to what you're trying to do.

  • How to recover an iphoto book from backup

    Hello,
    My wife managed to accidentally delete a 75 page iphoto book she's been working on for months.  I have a backup of our iphoto library at an offsite location (read: not a time machine) and am in the process of transferring a copy of it to my local machine.  However, since the entire iphoto library is 80+ gb, I would prefer to only recover this book if at all possible.  I've done some digging through the iphoto library and have found the book in the /iPhoto Library/Metadata Backup/Albums/Album.18008.ipmeta.  I have recovered this file from my backup and placed it back into this folder on my local computer, but unfortunately this hasn't restored the book in iphoto itself.  I'm assuming there are other pointers hidden throughout the database that also will need to be restored to make this book show up again in iphoto.  Has anyone dealt with this problem before and managed to recover a deleted book without restoring the entire iphoto library?
    Thank you,
    Dennis

    You must recover the entire iPhoto library. Books are not a seperate item but are database entries
    And it is critical that you do not muck around inside the iPhoto library. There are no user serviceable parts in it and if you make and changes you may corrupt it and cause data loss
    LN

  • Recovering associated library files from backup.

    iTunes recently became corrupted and required that I reinstall on my PC. With no choice I followed the reinstall procedure but no big surprise, all of my playlists, track info and any changes I made to the library manually were missing. I have backed up entire iTunes library recently and would like to know what file(s) I need to pull from my backup disk to restore my previous playlists, etc.

    You would need the iTunes Library.itl file, or the iTunes Music Library.xml file which might allow you to reconstruct the library.

  • Restoring iphone backup from itunes account with multiple phones.

    Hi, I wonder if anyone can please help.
    Problem as follows:
    Backed up/synced both my wifes and my iphone 4 to the same itunes account on Macbook. Wifes phone gets stolen, so get myself new iphone 5 and new Macbook. Managed to set up and get my data onto new phone without any problems, so all sorted.
    I now want to pass on my old iphone 4 to my wife, but I cant restore the back up from her stolen phone on the old Macbook as itunes seems to only recognize and associates this phone with its last back up containing my data. Is there anyway that I can restore from the stolen phones backed up data? I have tried restoring the phone to factory settings, but then I still only get the option to restore from that phones original back up.
    Would be grateful for any help.
    Thx

    Yes it is possible. Just log in on both phones using the same iTunes account info.
    As far as synching goes, iTunes remembers the info you want synch'ed on each phone separately.
    If you download an app on one phone and pay for it, it will be free to download on the 2nd phone as long as you use the same iTunes login

  • I deleted a specific website from the "History" and used "forget this site" but it still shows up when I type the first letter of the site. How do I delete it?

    I am not computer savvy. I don't want to clear all my history, just one specific site. I deleted it, its cookies, passwords and everything and when I type the first letter of the website in, it shows up as one of the options for websites. I need to delete it, but how?

    Maybe these will help?
    *http://kb.mozillazine.org/Deleting_autocomplete_entries
    *[[Remove websites from the Awesome Bar suggestions]]
    It's possible the website is in your bookmarks and when you type in some letters in the Location Bar that match that bookmark, it is coming up from there. See [[Search your bookmarks, history and tabs with the Awesome Bar]] for details on changing your Location Bar settings in your [[Options Window - Privacy panel|privacy settings]].

  • How: can i get a specificated item from a list with more than 100.000 items

    Hi,
    i have a very large list and i got always an exception that the list has more than 5000 items and cant query!! But in the default list view i can see, order and filter all items. So how can i do this by c#?

    Hi,
    According to your description, my understanding is that you want to get a specific list item form a list which with more than 100000 items using C#.
    I suggest you can use CAML Query with some condition and set Row Limit to specify the number of items to return.
    Here is a detailed code demo for your reference:
    Client Object Model Access Large Lists/Overcome ListView Threshold while accessing large list
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Capture specific files from different folders with USMT

    Hi Team,
    I am looking for some xml that will just capture specific files and restore it as part of refresh TS. Any pointers will be appreciated. Thanks. 
    Regards,

    You need to create a custom xml which can be used with capture (scanstate.exe) and restore (loadstate.exe) of any specific data you want. This xml file needs to be modified to create rules for files to be captures, example:
    <script>MigXmlHelper.GenerateDrivePatterns ("*
    [*.pst]", "Fixed")</script>
    Please find below website for more examples:
    http://technet.microsoft.com/en-us/library/cc766056(v=ws.10).aspx
    MANISH BANGIA

  • Removing specific items from the "Open With" menu

    I use VMWare Fusion and have an issue with the "Open With" context menu for documents that I can open with VMWare. Several images that have been deleted continue to show up in the context menu. How can I remove them?
    I tried renaming the com.launcher.plist solution described in the "how to" section, but to no avail...

    When you say you "tried renaming the com.launcher.plist", did you do what is described [here|http://support.apple.com/kb/TA24770?viewlocale=en_US] or something else?
    Also have a look at [this thread|http://discussions.apple.com/thread.jspa?threadID=1486735].
    /p

  • My iPod won't restore from backup

    I have an iPod touch 3rd gen 32 gb. I backed it and recovered it, then restored from backup, however, now it is stuck between the lock screen and a loading circle. Is there a way to fix this without recovering it and not restoring it?

    Not likely
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                 
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

Maybe you are looking for

  • HP LaserJet 6MP & HP JetDirect 300x connection problem

    I've done a search and read these threads: http://discussions.apple.com/message.jspa?messageID=11078808#11078808 http://discussions.apple.com/message.jspa?messageID=11086516#11086516 Still can't get my printer to print. Here's my set-up: I have an iM

  • Portlet gives ERROR: Content not available and log says FileNotFoundExcepti

    I'm trying to deploy my 'works on JBoss' portlets onto portlet server 7.2 I uses psadmin register-portlets... to load my ear file with the portlets I went into 'Add New Channel or Container' and picked the sandbox and 'channel' Step 1.1 I picked JSR

  • User Accounts Just Disappeared After Updates

    I just did a security update and now the user accounts are not present. How do I fix this?

  • Send junk mail to trash

    I am using Apple's Mail. Does anyone know of a workflow that will automatically send my junk mail to the trash? I would also like to have the option to delete the trash periodically e.g. once a week. TIA. John

  • Non-uniform XML reading behaviour

    Hi all, I am currently facing this extremely weird problem. I have this program which will allow the user to key in the URL of an XML file and the program would then retrieve the XML file using the following codes; import org.xml.sax.*; import java.n