Change Default backup folder in a SQL 2005

Last post 11-25-2009 10:47 AM by jherrick. 9 replies.
Page 1 of 1 (10 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 07-08-2008 10:31 AM

    Change Default backup folder in a SQL 2005

    How can I change the default backup folder in a SQL 2005? I think at the time of installation it is set to D:\somewhere and I want to change it to somewhere else. The problem is that when I want to backup manually, get an error that D:\somewhere does not exists and then I have to enter the new path.

    CanadaDBA
  • 07-08-2008 11:42 AM In reply to

    • fromnaija
    • Not Ranked
    • Joined on 06-18-2008
    • United States
    • Posts 9

    Re: Change Default backup folder in a SQL 2005

    The default backup folder is set during installation and saved to the registry.  You could change it here for the default instance:

    HKLM\Software\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer.

    On a SQL Server 2000, the default backup folder is also stored in the registry here for the default instance:

    HKLM\Software\Microsoft\MSSQLServer\MSSQLServer

    The usual caveat applies: backup your registry before making changes!

  • 07-08-2008 11:53 PM In reply to

    Re: Change Default backup folder in a SQL 2005

     I came to that path in registry and couldn't find the default backup pathEmbarrassed

    could you help me find that? 

  • 07-09-2008 3:41 AM In reply to

    • satya
    • Top 10 Contributor
    • Joined on 11-05-2002
    • United Kingdom
    • Posts 23,751
    • Microsoft MVP
      Moderator

    Re: Change Default backup folder in a SQL 2005

    You can create a device to specify the new location in this case and use that device during your backup routine. See this http://www.simple-talk.com/community/blogs/philfactor/archive/2007/03/22/21152.aspx foyi.

    -Satya S K J

    SQL Server MVP



    Knowledge is Power, you will gain by sharing it. SSQA.net - Invisible contributions to the users & visible success in SQL Community.
  • 07-09-2008 4:46 PM In reply to

    Re: Change Default backup folder in a SQL 2005

     modify  the registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\BackupDirectory

     

    the default of that entry is:

    C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup 

    you can modify it

     

     

    View Mahmoud Hassan's profile on LinkedIn
  • 07-09-2008 7:31 PM In reply to

    Re: Change Default backup folder in a SQL 2005

    You can specify the backup location in your backup command....

    Is there any reason to change the default backup directory?

    MohammedU.
    Microsoft SQL Server MVP
    Moderator
    SQL-Server-Performance.com

    All postings are provided “AS IS” with no warranties for accuracy.
  • 07-11-2008 11:50 PM In reply to

    Re: Change Default backup folder in a SQL 2005

    Thank you mahmoud I found that :) 

     

    I was just curious about it  

  • 08-01-2008 9:29 AM In reply to

    Re: Change Default backup folder in a SQL 2005

    MohammedU:

    You can specify the backup location in your backup command....

    Is there any reason to change the default backup directory?

    No offense, but spoken like true die-hard MS :) "why would anybody want to do that?" :)  "why would anybody need more that 640 k of memory?"

    If there is a need for a default backup directory in the first place, then there is a need for someone to change it sometime. 

     

    Thanks for the reg entry, it will help when creating new backups to not have to change the location every time.

  • 06-23-2009 7:06 PM In reply to

    Re: Change Default backup folder in a SQL 2005

    If you prefer to change via a GUI.  

     

    Through SQL Server configuration manager.  Under SQL Server 2005 Services,  right click on the the SQL Server (MSSQL Server) service.  Select properties, then select advanced tab.  It will be listed under DUMP DIRECTORY.

  • 11-25-2009 10:47 AM In reply to

    Re: Change Default backup folder in a SQL 2005

    That didn't work for us.  The caption for that setting indicates it is only for error log files.  We needed to make the change in the registry.

    Filed under: ,
Page 1 of 1 (10 items)
Active Topics   My Discussions    Unanswered Posts


© 2010 Jude O'Kelly All Rights Reserved.