Tue 26 Mar 2013

In last days, I was trying to restore SharePoint web application backup using PowerShell, but run into following error (although my sharepoint version was newer then the backup version)

Restore-SPSite : Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version. The backup file should be restored to a server with version '14.0.0.5138' or later.

Following is the quick overview / steps which I followed and successfully restored the SharePoint backup. Might be this could be applicable in your case

If you have the source database files (mdf and ldf) not the SharePoint backup file then follow step 2, otherwise step 1 and 2

Step 1.

  • Create a virtual machine if you don’t have

  • Install SharePoint on that vm if your don’t have it on that vm

  • Make the environment version same by installing the same cumulative update(s) which source server has. Once the server has the same version as of the backup, in my case it was (14.0.0.5138). (to check SharePoint version central administration -> upgrade and migration -> check product and patch installation)

  • Create new web application and Restore the SharePoint backup.

  • In sql server, detach the restored SharePoint database and physically copy database files (mdf and ldf)

 

Step 2.

On SharePoint environment where you want to restore the backup (this SharePoint version obviously needs to be later version, in my case it was 14.0.6029.1000)

  • Create web application (no need to create site collection) (central administration -> application management -> manage web application-> new)

  • Remove content database of newly created web application (central administration -> application management -> manage content database -> choose web application from the dropdown -> click on database name -> choose offline from database status and check mark Remove content database) (make sure you have selected the newly created web application and its content database)

  • In sql server, detach that content database of newly created web application

  • Physically replace the detached content database files (mdf and ldf) from the SharePoint backup's mdf/ldf file (which were taken from step1 or from the original server / source)

  • Attach Database (while attaching, after selecting mdf file, Change the Database name as of file name in Database to Attach's -> Attach As textbox, then on same screen, select/browse both mdf and ldf file in database details section -> Current File Path)

  • Open SharePoint 2010 Management Shell, and add content database using following command
    stsadm -o addcontentdb -url <URL name> -databasename <database name>

  • Then follow remaining application specific restore steps (for e.g. change site collection administrators, changes in web.config, add or change global resource files etc.)

Then access web application, hope so it would restored successfully

 

Comments (2)
Mon 18 Mar 2013

 

we+love+u+boom+boom.jpg

Hero of Pakistan... Shahid Afridi

  • 50 runs on 18 balls
  • Fastest 100 on 37 balls
  • T-20 world cup champion captain
  • Most sixers
  • Most wicket taker in world cup 2011
  • No once can hit biggest Six unless he is Afridi

boom+boom+afridi.jpg

Comments here
Fri 21 Dec 2012

Quraan recite by child voice - Surah -Yaseen Ayats, maashaAllah

طفل يقرأ القرآن - صوت - سورة ياسين، آية، ماشاء الله 

Categories : Reality of Islam
Comments (1)
Fri 21 Dec 2012

Amazon founder and CEO Jeff Bezos' patent for a phone airbag patent was recently approved. Here's how it would work: "Prior to impact between a surface and a device, a determination of a risk of damage to the device is made. If the risk of damage to the device exceeds a threshold, a protection system is activated to reduce or eliminate damage to the device.

Airbags+for+Smartphones.jpg

 

Below is a Video of Lenovo Flying Laptop having technology something similar to this.

[youtube:KWbLq0kMEpM]

 In the patent filing papers, this system utilizes the handset's integrated gyroscope, camera, accelerometers as well as other onboard sensors to determine if it is currently falling. Should a fall be detected, the system will deploy airbags to reduce potential damage - or possibly change the trajectory of its fall by firing jets of air.

 Source: dailymail.co.uk/news/article-2248824/Airbag-dropped-smartphones-invented-Amazon-patents-airbag-air-jet-mobile-phones

Comments here
Fri 14 Dec 2012

صحراست که دریاست ته بال و پرماست

sahraast ke daryast,tah e bal o par e mas

All the desserts,all the rivers are underneath my wings

 

 Pakistan+Air+Force.jpg

Categories : Pics / Images Shot
Comments (1)
Wed 12 Dec 2012
Tags:
Categories :
Comments here
Sun 2 Dec 2012

A Urdu TV program Sar-e-Aam goes live about Secret videos of Girlfriends and blackmailing of girls females whose personal photos or videos shared and spread on social media facebook or on internet youtube etc by her boyfriend or other people who get into these stuffs.

Think before you get into extra marital relation or love and having photos or videos.

Categories : Thoughts / Lessons
Comments (4)




Ads