Link to home
Start Free TrialLog in
Avatar of Omega002
Omega002Flag for Afghanistan

asked on

How To Change Backup Paths In Backup jobs in SQL Server?

Greetings,

Wanted to know if there was a script you have that will change current backup path in SQL Server backup jobs to a new path without manually changing each backup job? We have over 50 backup jobs on 50 servers and wanted to see if there was some sort of undocumented method to do this without manually doing it. For example current backup path could be \\bakserver1\fullbkups\empdb1 and we want to change it to \\bak1\fullbackups\empdb1. Please advise.
ASKER CERTIFIED SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

The default backup path is stored in the registry so do take care!

The key for the default 2005 instance is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\BackupDirectory

My recommendation is to change the backup jobs, or alternatively use a database to keep your backup procedures and so on, and store a default backup path in that database. I would be reluctant to change the registry on an otherwise working production machine.

HTH
  David