Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 10871 |  Welcome, Guest!   Register  Login
Home > Articles > Sql Server > Database Backup to / Restore from Remote Server - SQL Server

Database Backup to / Restore from Remote Server - SQL Server

4 vote(s)
Rating: 4.75 out of 5
Article posted by PandianS on 10/26/2010 | Views: 25403 | Category: Sql Server | Level: Advance | Points: 150 red flag


Backup and Restore is one of the high availability model. In this article, I would like to perform Backup on Remote server and Performing Restore the backup file(.bak) from Remote Server into local SQL Server.

Introduction


Backup and Restore is one of the high availability model. In this article, I would like to perform Backup on Remote server and Performing Restore the backup file(.bak) from Remote Server into local SQL Server.

How to access the Remote Server shared path from local server ?

We can use Map network drive with Remote Server.

How to perform the Map network Drive with Remote Server ?

We have two Servers (ServerA and ServerB),

If we want to perform Database Backup from ServerA and Put the backup file(.bak) to Remote Server(ServerB).

If we want to perform Database Restore on ServerA from ServerB - The Backup file(.bak) will be there in Remote Server(ServerB).


 

Implementing Map Network Drive


Login into the Remote server where you want to perform Backup, Restore and retain / refer the Backup file:



Give the User name and Password to login into the Remote server…

Decide which path you want to share and Map to the Network Map drive…

I would like to create one Folder in D:\ drive named Database Backup and share the folder as given below…







Click the Apply and OK button on Backup Database Properties dialog box.

Login into Local Server/Machine


Login into local Server/Machine where you want to perform Backup and Restore activity…

Right click on My Computer



Click Map Network Drive… as given above



Choose the Drive like Z:\

Click the Browse Button and points the Remote server and Shared Path what you have shared on previous section..
Or
Simply enter the Server IP and Shared Path as given below (\\RemoteServer IP\Database Backup)



Login credential dialog box appeared.

Give the Remote server login credential as given below

User Name : DomainName\UserName
(or)
User Name : UserName

Password   : **********



Click the OK button, Now the system will try to browse the Mapped network drive of the Remote server… as given below



Login into SQL Server…. Try to access the Mapped network drive (Z:) as given below



According to the result given above, The system could not find the drive Z:\, Because the Network Map drive is not identifiable by the SQL Server.

OK. What should be done ?

We have to make the Network Map drive (Z:\) accessible by the SQL Server as given below



Once done the above step, Now The mapped network drive is accessible…. by the SQL Server

Try to access the Network mapped drive from SQL Server as given below…



YES.  Now we can access the Network Mapped drive (Z:)

Backup the Database to Remote Server


Let’s try to Backup a database to Remote server (Z:)

Right Click on Database which you want to backup to Remote server…

Right Click on Database under Object Explore --> Click Tasks --> Click Backup -->






The Database Backup successfully completed and The backup file stored in Remote server(Z:)

Try to make sure by list-out the Backup file from Remote Server…

 

Restore the backup file(.Bak) from Remote Server


Let’s try to Restore the Backup file from Remote Server to Local SQL Server

Right Click on Database which you want to be restored from the Remote server backup backup file(.Bak)…

Right Click on Database under Object Explore --> Click Tasks --> Click Restore --> Click Database…










Now the Backup file from Remote server successfully restored in local SQL Server..

If you want to remove the Mapped network drive… follow the steps as given below



Once ran the script successfully, Follow the steps as given below…





Let’s try to access the Network Map Drive



No, We could not access the Network map drive…

Conclusion


Using Network Map drive, We can perform Database Backup and Restore on Remote Server.  

If you like this article, subscribe to our RSS Feed. You can also subscribe via email to our Interview Questions, Codes and Forums section.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:



Please Sign In to vote for this post.

Experience:7 year(s)
Home page:http://sqlserverbuddy.blogspot.com/
Member since:Monday, May 11, 2009
Level:Silver
Status: [Member] [MVP]
Biography:Microsoft Certification
- Microsoft Certified IT Professional(MCITP) - SQL Server 2008 Database Administrator
- Microsoft Certified Technology Specialist(MCTS) - SQL Server 2005
- Microsoft Certified Professional(MCP) - SQL Server 2000
 Responses
Posted by: Webmaster | Posted on: 27 Oct 2010 09:08:43 AM | Points: 10

Very good article, PandianS.

Keep sharing your knowledge!

Posted by: Ttkprakash | Posted on: 29 Oct 2010 04:32:42 PM | Points: 10

Pandian,

Good one.

-PRAKASH KANDASMAY

Posted by: Zoe.lin | Posted on: 22 Sep 2011 03:33:29 PM | Points: 25

Appreciate, it works!!!! I have a question, I need to change my password every month, does it mean I need to do the same steps everytime after I change my password?

Posted by: Praveen.Nakka | Posted on: 16 Oct 2011 09:17:40 AM | Points: 25

Excellent Job Done Pandian... This has helped me Lot of Restoring DB's of size 1.3 Terra Bytes.

Please keep doing the good works..

Kind Regards,

Praveen Nakka


>> Write Response - Respond to this post and get points
Related Posts

Were you ever in need of debugging a stored procedure in SQL Server 2005. Any .NET Developer is well versed with debugging .NET applications. The .pdb files will be used internally to serve the purpose. Pdb files will have the mapping information from Native to MSIL and ultimately to the .NET code. I will not get into the internals of how this happens as this article falls under the SQL Server category.

This is part 32 of the series of article on SSIS. In this article we are going to see on how to use an Aggregate (Group by) data flow transformation control in SSIS packaging.

With SqlServer 2008 version various new Transact-SQL programmability features and Enhancements of some existing features has been introduced by Microsoft. This article covers some new features/ Enhancements in Sql server 2008

Here we will see a to convert a varchar type column is to xml type with preservation of already existing data.

We have used SUBSTRING in many ways/scenarios. This article explains how it works.

More ...
About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/18/2013 3:13:23 PM