Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remote sql back-up

Status
Not open for further replies.

Dukester0122

IS-IT--Management
Mar 18, 2003
587
US
I'm installing a remote sql back-up for disaster recovery, we have vpn connection with this remote site. I want the back-up to run everyday except sat & sun. Can I just create a Job for the back-up or do I need to use a special procedure or query to do this?
 
You should be able to adjust the schedule of the job to run whenever you need it to. Double click on the job, choose the schedule tab and then hit the Change button for the "recurring" radio button. In there you can set what days of the week it should run as well as the start time.

Thanks

J. Kusch
 
But where do you specify which server this job goes to. Remember this is a new server which is in a remote site, I can access this server from here so I should be able to point the back-up to it but I can't find which tab to change the server.
 
When I do this I run it locally but use sp_executesql to excute on the remote server.

exec ('exec ' + @remsvr + '.master.dbo.sp_executesql N''backup database .....''')

or just
exec remsvr.master.dbo.sp_executesql N'backup database .....')

But you can try making the server a master (right click agent and multi-aerver..) then use the target multiple servers option on the first tab for the job properties.
Never tried it.

But for backups you would norally schedule them on the server to be backed up
In your case it sounds like you want to backup the database then copy the backup file to the remote site to restore.
You can do this on the local site by xp_cmdshell 'copy...'
Also have a look at this which does a copy of the latest backup file and restore


======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top