Algorithm for online backup and restore of the entire grid

Hello!
I am trying to write a utility program that backs up the entire grid data to a binary file and restores it at a later point in time. Assuming that the class files are not updated, I am using the following simple logic
1. Use the cluster and CacheService APIs, get the names of all named caches of types replicated, distributed and optimistic
2. Iterate through each named cache and use ExternalizableHelper.writeMap method to extract the data as byte arrays
3. Create a custom datagrid object holding a map of byte arrays by names
4. Write the custom object to a persistent storage
Similar logic to restore the data grid from the custom object on the disk.
I have the following questions
1. I am sure the above logic is not going to recreate the entire datagrid in the exact state it was backed up. For e.g. if I used write-behind, I must either flush or backup the write-behind queue. What other objects should
I consider backing up other than the data from the named caches? If I used the incubator patterns, I am guessing I need to backup the command objects and functor objects.
2. I do not have a need for other cache services now. If I need to use the same utility across different grid configurations, what other services should I include for the back up (overflow, external, paged external) ?
3. Are there best practices for such use cases? Any insights you can provide to enhancing this utility would be much appreciated.
Thank you
Regards,
Sairam

Hi Sairam,
If you want a non-intrusive solution then you cannot really use cache stores, as these would certainly intrude into the cluster. Cache stores would also not really be an option if the cluster already used another type of cache store - unless you write some sort of multiplexing cache store.
If your backup/restore solution needs to be a "client" (optionally over Extend) then you have two choices:
1. Build something that is run whenever you want to do a backup - this would usually be an Extend client application. This application would then read data out of the caches and write it to disk. With this option a backup might take a while if the cluster is large but running the backup is pretty easy.
2. Build something that is permanently connected to the cluster being backed up and uses Map listeners to listen for inserts and updates and stores the data to disk. This application could be either an Extend client or a storage disabled cluster member. With this option your cluster is always backed up in real time but you have the overhead of another process to manage.
If all your caches use POF serialisation then either of the above options could be written to just store the POF binary without having to deserialize it and could then be "bolted on" to any cluster. Re-loading stored binaries would need a bit of thinking about although a couple of options come to mind. If you just worked with the binary you might not need to worry about you backup application needing the pof-config of the cluster.
You backup application would need to either be told which caches to back up or be able to dynamically figure out what caches had been created. You cannot always do this from the cache config file if the cache names in the mappings section use wild card names.
As you can see there is lots to think about if you want to build something truly non-intrusive.
JK

Similar Messages

  • HT4528 My apps store will not go online with verizon network, but on wifi it works. I am on an iphone 4, verizon.  I tried to do a complete, backup and restore on the phone 1 day before i noticed this problem,  The backup finished the RESTORE would fail c

    My apps store will not go online with verizon network, but on wifi it works. I am on an iphone 4, verizon.  I tried to do a complete, backup and restore on the phone 1 day before i noticed this problem,  The backup finished but the RESTORE would fail I had an error, could not access Apple server ( some server name I cant remember).
    I have plenty of space available on the iphone,
    8gb free,
    ios version- 6.1.3 ( 10B329)
    carrier - Verizon 14.0
    Modem Firmware - 3.0.04
    Can someone help.
    I tried doing my backup restore on the same computer as I once did a year ago. and THis time I cant do the restore on the iphone.
    computer osx is 10.5.8
    itunes version 10.
    I do not wish to go to ios 7 at this time.

    Settings > General > Reset > Reset Network Settings.
    Basic troubleshooting is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If the issue continues, contact the carrier to troubleshoot the network connectivity issues.

  • HT1414 Ipod Touch can't find Bluetooth device. (Jam Box)  Upgraded Itunes software did a backup and restore on the Ipod.  My PC sees it fine.  IPod used to work with JamBox.  Reset Jambox, no luck. Followed every instruction from the forums. Still no luck

    Ipod Touch can't find Bluetooth device. (Jam Box) 
    Upgraded Itunes software did a backup and restore on the Ipod.
    My PC sees Jam Box fine.  IPod used to work with JamBox.  Reset Jambox, no luck.
    Followed every instruction from the forums. Still no luck.
    Reset Jam Box to factory settings. 

    Did a network reset on the Ipod after the backup and restore.  No luck

  • RZ20, No value for Performance/Backup and Restore node

    Hi Experts
    In RZ20 - CCMS monitoring there was no MTE for the database. i executed the report RSMON0, which created the node Microsoft SQL server monitor. But not all the nodes have the data.
    Space Management has the data but _Performance , Backup/Restore and Health have no data collected.
    I have already implemented the note 1141047 but no data collected.
    system details
    SP 15
    Kernel support pack level 159
    database MSSQL 9.00.4035
    Please help me
    regards
    Naveen

    What error?
    FYI: No iTunes content is included in any iPhone backup. After you restore from backup, you must sync to restore your iTunes content.

  • HT1766 I got my iPhone 5 replaced and had to backup and restore with the cloud, but all my apps started disappearing one by one??

    I had backuped my phone before and after I got the iOS7 update. Then, I went to the apple store to change my phone for a new one because my old one had a hardware issue with the camera. It was all going smoothly until I saw each and every one of my apps disappearing one by one...The people at the store told me that it was because I had a bad backup (which could be caused by multiple reasons)??? So we tried doing it three times with different backup times, and this kept on happening. Why is this happening and what do I do to get my apps back, hopefully with the latest backup I had done prior to this disaster???? Please help!!

    Morning Vjohara,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/ts1702
    Best of luck,
    Mario

  • Backup and restore to the other database with Recovery Catalog

    Dear All,
    i need your help about recovery catalog.
    I have 3 databases, 2 databases version are 8.1.7.3 (HostA and HostB) and other database is 9.2.0.6 (as Catalog Database)
    I want to backup files from HostA with Catalog Database into tape, then restore the backup files into HostB.
    Please suggest me how to do this.
    Best Regards,
    abip

    you can achieve this with the rman duplicate command.
    if you have the same directory structure then it is a relatively simple task, if the directory structure is different then you need to use the
    'set newname' syntax.
    regards
    Alan

  • Backup and restore OS X 10.3.x server

    I'm looking for suggestions for both backup and restore software/hardware for my OS X 10.3.9 server. I am running a lab of 28 iMacs running OS 9.2.2 with Mac Manager 2.2
    Thanks in advance,
    Mel

    Mel,
    We use Retrospect and backup to tape and hard drive. This is for user files. If you want you could use Carbon Copy Cloner (www.bombich.com)to baxck up the server or certain user files.
    10.3.9 xserves (2)
    10.2.8, 10.3.9 and 10.4.4 clients (400)
    2000 users

  • Restore Backup made with Backup and Restore W7 x64

    Hi ....
    Im really looking for some help here...
    I had my laptop stolen and my now trying to recover a 2013 Backup Image made with a Windows tool called Backup and Restore.
    The backup was made with a W7 SP1 64bit using Windows own Backup/Restore utility to create a system image on an external HDD connected by USB port. 
    The application saved the image into a folder called WindowsImageBackup. Inside this folders there are 2 *.VHD file
    So as my laptop was Stolen, im trying to recover this old Backup and save my files again.
    I would like to restore that previous Image. These are the steps I took:
    1) Plugged in the HDD.
    2) I went to Control Panel->Backup and Restore.
    3) I selected 'Select another backup to restore files from'.
    4) In the Restore Files (Advanced) dialogue, my backup isn't showing into the box, because its on my external drive, so i choose browse network location
    5) I clicked 'browse network location' button, and it takes me to another restore files (advanced) dialogue that asks for network folder path.  I tried to locate my external HD, without success. So i tried Search Network. As i also have a copy of my
    backup on my NAS, i tried to inform the network IP path, but it didnt locate the backup either. I get the error that windows was not able to find any backup sets in that directory. 
    6) As the step 5 resulted in nothing, i tried the option: Recover system settings or Computer. And then Advanced recovery methods. And finally use previously system image to recover computer. And then Windows asks to reboot the computer and once rebooted
    it starts on recovery mode where it cant find my backup image either.
    So, how can i recover my backup?
    I saw that the Backup created 2 VHD files and also tried to mount the VHD using Disk Management and attaching the VHD. The VHD mounted as drive and i could finally see my files, but most of them are corrupted. So i dont know if im doing something wrong when
    attaching the VHD.
    Can anyone help me please? I dont know what else to try.
    Thanks a lot
    Flavio.

    Hi,
    If you mean that you want to restore an system image in a different computer, then I have to say that it will not work.
    Please see the statement in KB 249694,
    we do not support restoring a system state backup from one computer to a second computer of a different make, model, or hardware configuration.
    http://support.microsoft.com/kb/249694/en-us
    How to restore a  Windows installation or move it to different hardware
    Yolanda Zhu
    TechNet Community Support

  • If I back up my ipod  touch 5th gen and restore, will the new copy be exactly the same?

    I want to update my ipod to ios 8, but ther is not enough room. I am not willing to delete apps, so I figured that I would backup and restore after the update, which I have never done, and I was wondering if the restore would save everything, like game data and folder locations, so it would be like it never changed. If someone could please clarify, that would be great

    If you restore from iCloud backup the apps and other iTunes purchases will be automatically downloaded. Non-iTunes purchases like music from CD will be restored. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:        
    Downloading past purchases from the App Store, iBookstore, and iTunes Store         

  • Iphone4 would not restore Error -50. I have tried to restore and it restored it to the point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out.

    Iphone would not restore---- Error -50. I have tried to restore, and it restored it to the new point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out. I can see earlier backups in my C:\Documents and Settings\user\Application Data\Apple Computer\MobileSync\Backup folder. There are four subfolders in this address. I need my contacts, photos, and messages back. I know this is a common error but I can not figure it out. I have ran the other troublshoot items in the error steps for 13 and 14 like apple says. Is there a way to call apple and get a step by step of how to restore from another restore point? Does anybody have a solution????

    It tells you to go to Error 13 and 14 if you receive error (-50).
    Here is what I have tried...
    Error 13 and 14: These errors are typically resolved by performing one or more of the steps listed below:
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting. I have moved it around to different ports.
    Put a USB 2.0 hub between the device and the computer. Didn't change anything.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts. Removed all virus protection and firewall.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.Used the Microsoft fix it.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online. Doesn't matter.
    Try to restore from another known-good computer and network. I do not know how to do this or how to find the correct/full/complete restore point. There should be more information for this.

  • My Itunes account was hacked and my Apple ID was disabled. I followed the instructions from APPLE to backup and restore from Itunes but that did not work. Any suggestions?? Thanks!!

    My Itunes account was hacked and my Apple ID was disabled. I followed the instructions from APPLE to backup and restore from Itunes but that did not work. Any suggestions?? Thanks!!

    Are you saying that you contacted Apple support and they instructed you to backup and restore your iPad? Or do you mean that you picked up this information from an online support article? If you spoke to an Apple rep or received these instructions via email, contact them again for further help.
    I fail to see how restoring your iPad would enable yoyr Apple ID.

  • 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.

  • Has anyone sucessfully used the new Winclone 3.2 to backup and restore  Bootcamp partittion with Windows 7 Ultimate on MBP with Lion 10.7.3?

    Bought late 2011 MBP 17" with Bootcamp partition (Windows 7 Ultimate) and Lion OS 10.7.3
    I am trying to make a backup of Bootcamp partition before I start using my laptop but it proves to be a difficult task.
    I don’t have any installation disk for Windows 7 and I am afraid that, if a disaster strikes and I loose the HDD, my copy of Windows will be gone. 
    The only way to restore Windows partition according to what I read so far is to do the following:
    • Use Windows to backup data from BootCamp Partition
    • Reinstall OS Lion formatting full hard drive in the process
    • Use BootCamp Assistant to create BootCamp partition
    • Install Windows 7 on bootcamp partion
    • Use Windows 7 to restore data from backup file created in the first step
    The only problem is that I don't any image or disk to re-install Windows 7. With Windows 7 I can create only 'repair disk' (for what it is worth) or system image but according to other users it would format the whole drive including OS Lion partition when reinstalling
    Winclone 3.2 seems like the answer to my prayers but would like to hear from the users if it worked for them (most imprtantly, did the restore work?). 

    Got the response from Winclone regarding my confusion in step 18 of the procedure to create bootcamp backup.  The message displayed on the screenshot under step 18 can be ignored.  It refers to creating a Windows partition using Boot Camp Assistant but in fact this partition has already been created in earlier steps using Disk Utility. 
    I bought Winclone 3.3 as it promises to make backup and restore of Bootcamp partition with Windows 7 on it really easy, the steps to do this task are easy and well documented, and the owner of the program was very prompt responding to my queries.
    I performed the following as an insurance against disaster prior to creating Winclone image:
    Since my Windows 7 came pre-installed but without any installation disk I used Windows 7 to create 'Windows 7 system image' . From what I read on forums the system image created using Windows 7 apparently can't be used to easily restore Boot Camp partition (as it wipes out OS X in the process).  I created this image as a last resort backup rescue - some users reported that it can be used to recover Windows but the process is painful and involve a number of steps, swapping hard drives, and paid software to assist in the process.  I did not bother to make notes on this process - thanks to Winclone I am not suppose to need this backup if everything works as promised
    I also created 'Windows 7 repair disk' prior to running Winclone.  Not sure what the value of it will be but again, this is something I did just in case I need it in the future
    Then I installed Winclone 3.3 and created Windows 7 Ultimate Boot Camp image without any problems (on MBP running Lion 10.7.4).  My Winclone image file of 150GB Windows 7 Boot Camp partition prior to installing any programs and without any data on it ended up being nearly 8GB (saved to the external USB HDD).
    I have not restored and don't plan to restore the Winclone 3.3 image just to test if it works (don't want to risk loosing my perfectly well running Windows 7 in case of any disaster).  So ultimately only time or experience of other users will tell me if I spent my money well buying Winclone 3.3.  I  know it worked for you JBLTZ so hopefully it will work for me when I need it one day.
    Cheers
    Swavek

  • The backup and restore function in windows 8.1 seems is changed!

    hi,
    I don't see the real backup and restore function in windows8.1 .
    I have  in search entered  backup and I see some other things
    thanks
    johan
    h.david

    Here's an article that will help:
    http://windows.microsoft.com/en-us/windows-8/what-happened-to-backup-restore
    In previous versions of Windows, you could use Backup and Restore to back up your files or create and use a system image backup or repair disc.
    Windows 8.1 gives you choices about how you can recover your PC and back up your personal files.
    Reset or refresh your PC
    If you’re having a problem with your PC, you can refresh Windows without losing your photos, music, videos, and other personal files. You can also start over by resetting it to factory settings. For more info, see
    How to refresh, reset, or restore your PC.
    Back up or restore personal files
    You can use File History to back up the files on your PC in the Documents, Music, Pictures, Videos, and Desktop folders. Over time, File History builds a history of your files. You'll first need to set up a File History drive and turn File History on. For
    more info, see
    Set up a drive for File History. If your original files are lost, damaged, or deleted, you can restore them. You can also browse and restore different versions of your files. For more info, see
    Restore files or folders using File History.
    Use System Image Backup
    You can use System Image Backup like you did in previous verison of Windows.
    To open System Image Backup
    Swipe in from the right edge of the screen, and then tap Search.
    (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, and then click
    Search.)
    Enter File History in the search box, tap or click File History, and then click
    System Image Backup.

  • What are the commands using in SAP ECC 6.0 ehp on SYBASE Database? Backup and restore commands?

    Hi All,
    What are the commands using in SAP ECC 6.0 ehp on SYBASE Database? Backup and restore commands?

    Hi Jayachander,
    Have a look at these sap notes:
    For taking backup: Schedule from DB13 and get the exact command from Logs
    1841993 - SYB: How to schedule backups in DBA Cockpit
    1887068 - SYB: Using external backup and restore with SAP Sybase ASE
    How to restore DB
    1611715 - SYB: How to restore a Sybase ASE database server (Windows)
    Divyanshu

Maybe you are looking for

  • Problem with printing report (URGENT)

    hi every body, (urgent) When I print a report the margin of report not as i am like, i change the setting of printer to be suitable with what i want but nothong change,so the output of report not good. can any body tell me if can change margin of the

  • FAQ: How do I find my install logs?

    Installation logs are very helpful for us in troubleshooting installation issues, if you're having installation issues, we'll likely ask you to provide the installer log to us. To find your installer logs, navigate to the following directories. Insta

  • 7 errors when compiled java servelet

    Plz help me.. I m new to java while compliling Helloworld.java i got 7 errors C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\ROOT\hello>javac Helloworld.java Helloworld.java:5: class HelloWorld is public, should be declared in a file

  • Window Id for adf dialogs

    Hi, Is it possible to set the window id or title for an adf dialog. This dialog opens when a button is clicked <af:commandButton action="dialog:openDialog" useWindow="true" /> Thanks in advance.

  • R12 Search on Supplier Bank Account Number

    Hi, We want to search our suppliers on the bank account number, which is stored at site level. But I'm missing the field Bank account number on the Suppliers Inquiry Page. Is is possible to add this field to the Suppliers inquiry page?