question

cdurham avatar image
cdurham asked

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.
backupsql-agent
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JohnM avatar image
JohnM answered
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

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

cdurham avatar image cdurham commented ·
@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!
0 Likes 0 ·
JohnM avatar image JohnM commented ·
Awesome!! Very glad that I could help!
0 Likes 0 ·
Sharma avatar image Sharma commented ·
I would like to add that for backup\restore process on remote machine SQL Service should be run under domain account.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.