x

How would I send out a backup to another server from SQL Server Agent?

Hello All,

I have a job that creates backups of one database on a daily basis. I need to know how I could send this backup to a drive on another server. At first I tried to replicate the database all last week but with no success. I am technically a begginer with SQL Server 2005 and SQL Server 2008 so please bear with me. Any help on this situation would be appreciated.

more ▼

asked Feb 20, 2012 at 03:29 PM in Default

avatar image

cdurham
230 22 22 26

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

Is this a hand crafted job or are you using maintenance plans to accomplish the backup?

In either case, you can change the target of the backup to use UNC paths or a mapped drive.

Keep in mind that depending on where the target location is located (both physically and logically on the network) the backup time might increase so I would test it to make sure that it falls within the ranges of your SLA requirements.

For example, via code:

 BACKUP DATABASE [DatabaseName] TO DISK='\\SERVER1\BACKUPS'

via a maintenance plan:

alt text

Also, here is a forum post that might help: http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=6096 as well.

Hope this helps!!

more ▼

answered Feb 20, 2012 at 03:46 PM

avatar image

JohnM
12.8k 3 7 14

@John Morehouse

I am using a maintenance plan to create the backups. I believe this will work. Once again you have been a very big help to me. Thank you so much!

Feb 20, 2012 at 03:52 PM cdurham

Awesome!! Very glad that I could help!

Feb 20, 2012 at 05:29 PM JohnM

I would like to add that for backup\restore process on remote machine SQL Service should be run under domain account.

Feb 21, 2012 at 04:58 AM Sharma
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x237
x107

asked: Feb 20, 2012 at 03:29 PM

Seen: 1310 times

Last Updated: Feb 21, 2012 at 04:58 AM

Copyright 2016 Redgate Software. Privacy Policy