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

cdurham gravatar image

cdurham
230 22 22 24

(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][1]

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

Hope this helps!!

[1]: http://ask.sqlservercentral.com/storage/temp/103-mp_backup_example.png
more ▼

answered Feb 20, 2012 at 03:46 PM

JohnM gravatar image

JohnM
6.8k 1 3 7

@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 Amardeep
(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

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:

x192
x89

asked: Feb 20, 2012 at 03:29 PM

Seen: 1133 times

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