Sign in to follow this  
Followers 0

SQL live backup & restore

21 posts in this topic

Posted

Hi Guys

I want some software that can take a sql databse from one machine, and restore it to another, every hour or so,

anyone aware of any?

Ed

Share this post


Link to post
Share on other sites

Posted

Is it a Microsoft SQL Server..? Because if so, you can just use logshipping - it's built in and specifically designed for this purpose :)

Share this post


Link to post
Share on other sites

Posted

Yes it is..

any info on that?

Share this post


Link to post
Share on other sites

Posted

Thanks!

looks like it doesnt support express! :(

Share this post


Link to post
Share on other sites

Posted

Ah - I didn't realise you were using SQL Express :(

You could still do this with a combination of Windows scheduled tasks and Jobs within SQL Server but it'd be pretty cludgy.. :( What you'd want to do would be doing transaction log backups rather than full database backups which would mean the file you needed to copy over was smaller and would take less time to restore.. that's what (unsurprisingly) log shipping does :)

Share this post


Link to post
Share on other sites

Posted

Just putting the full SQl on my test machines now, will give it a go ;)

Thanks

Share this post


Link to post
Share on other sites

Posted

Sorry - I forgot to say.. In terms of what you use, it depends on how you want to use the 'backup' database - is it to be used as a standby system, or are you just going to be doing reporting off the database or subsets of the data?

Share this post


Link to post
Share on other sites

Posted

backup server!

Share this post


Link to post
Share on other sites

Posted

OK - logshipping would do exactly what you want. The only thing you need to bear in mind is that, AFAIK, logshipping will only be backing up the contents of the database. Any other things you change (such as adding new users, etc) will not come across in the logshipping - so any such changes that you make to one server, you'll need to do to the other.

Share this post


Link to post
Share on other sites

Posted

Brill.

Thanks for your help.

Just reconfiguring SQL on the 2nd server and i should have it set up then :)

Share this post


Link to post
Share on other sites

Posted

Cool - good luck :)

Share this post


Link to post
Share on other sites

Posted

My only question..

It asks for a network path to the backup folder on the primary server.

These 2 machines are on seperate networks with no VPN etc.

is there a way around this>?

Share this post


Link to post
Share on other sites

Posted

Ah - that's going to be an issue :| It expects to be able to copy the file over Windows File Sharing :|

Share this post


Link to post
Share on other sites

Posted

hmm :/

strange one,

when i setup VPn connection it connects but i loose my external connection :(

Share this post


Link to post
Share on other sites

Posted

Do you want?

1: nightly re-build?

2: master to slave setup? (this will keep the backup up-to-date but also requires some configuration with keys to function.)

Share this post


Link to post
Share on other sites

Posted

Have you tried on the client PC that is connecting to the VPN...

Open Network Connections, Right click the VPN Network Adapter -> Properties -> Networking -> Double click Internet Protocol Version 4 - > Click Advanced -> Untick Use default gateway on remote network.

Share this post


Link to post
Share on other sites

Posted

Have you tried on the client PC that is connecting to the VPN...

Open Network Connections, Right click the VPN Network Adapter -> Properties -> Networking -> Double click Internet Protocol Version 4 - > Click Advanced -> Untick Use default gateway on remote network.

That was it :) found it after a quick help from google lol

.Problem im having now is

Cannot open backup device '\\server2\backups\test.bak'. Operating system error 5(error not found).

RESTORE FILELIST is terminating abnormally. (Microsoft SQL Server, Error: 3201)

Both backup folders have full write/read access to folders and i can manually copy those folders across.

Ed

Share this post


Link to post
Share on other sites

Posted

sorted that :D

seems to be working now.

thanks guys

One question..

After the initial config, does it send the full DB every time or does it just send the changes?

Ed

Share this post


Link to post
Share on other sites

Posted

Changes - it's sending the transaction log files :)

Share this post


Link to post
Share on other sites

Posted

Cheers Chicane,

Final question i hope.

Once done, the DB is stuck in the (RESTORING) state...

Any ideas why this is?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.