Solved

SQL Server Jobs Change Backup Location

Posted on 2013-12-04
8
726 Views
Last Modified: 2013-12-06
I have created several jobs in mssql 2005. One is a backup databases job and the other is cleanup old databases. Currently they backup to a local drive E.

Can i back them up to a shared drive on another computer? If so do I have to create anew job and delete the old one or is there a place I can go to edit the location of where my backups are currently going and point them to the new location.

If it is possible to make backups on a shared drive, do I need to create a mapped drive to do this backup or can I do it with just a network path typed in?
0
Comment
Question by:MEATBALLHERO
  • 4
  • 2
  • 2
8 Comments
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 39697518
Yes, you can backup to a network address like:

BACKUP DATABASE YourDB
TO DISK = '\\Computer\Backups'

You must check if the credentials that are running the SQL Server Engine has the proper permissions to write your backup file.

I think you can modify your Jobs to avoid deleting and creating new ones.
0
 
LVL 13

Expert Comment

by:SagiEDoc
ID: 39697565
So far as I recall the drive has to be local and mapping to a network location does not work either. You will need to backup locally and then have a script run that moves the backup jobs to a network drive.
0
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 39697580
No my friend, I'm currently using network paths to backup my databases and they work as expected, the thing is to assign the right permissions on the shared folder to allow SQL Server Engine to write its backup.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 13

Expert Comment

by:SagiEDoc
ID: 39697587
Sorry Jorge - my bad, you are right. SQL cluster the disk needs to be local, stand alone works.
0
 

Author Comment

by:MEATBALLHERO
ID: 39698246
Does any one know how I can edit my Job to change where the the backups go? How do i do this?
0
 
LVL 15

Expert Comment

by:jorge_toriz
ID: 39698316
We need to know how your job was made. Does it execute a Maintenance Plan?, an exe file?, T-SQL script?, Power Shell?

You can open the Maintenance Plan inside SSMS
0
 

Author Comment

by:MEATBALLHERO
ID: 39701523
Maintenence Plan
0
 
LVL 15

Accepted Solution

by:
jorge_toriz earned 500 total points
ID: 39701577
Open your maintenance plan inside SSMS and then look for the Database Maintenance Task, double click on it and then change the location of the backups.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question