How to take a backup to a different server

Last post 11-19-2007 9:05 AM by Greg Larsen. 2 replies.
Page 1 of 1 (3 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 11-16-2007 12:25 PM

    How to take a backup to a different server

    Hi Everyone,

    I have small question in regards to taking a backup.I have a database <DB1> for which i need to take the backup.But i want the .bak file to be in a different server as i dont have enough disk space to take that back up on the same server.

    So generally we give the command as

    BACKUP DATABASE DB1 TO DISK ='D:\........bak'                                                                                                                     

    WITH INIT,STATS=10

    But now I need to take a backup to differnt server so what is the command for that ???

    Thanks in advance

                         

     

  • 11-16-2007 1:52 PM In reply to

    Re: How to take a backup to a different server

    BACKUP DATABASE ... TO DISK='myserver\myshare\...'

    One thing to remember is that the account SQL Server and Agent runs under should (or must?!?) be a user account, not the system account and this account needs read and write permission.

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Contributing Editor, Writer & Forum Moderator http://www.sql-server-performance.com
    Webmaster: http://www.insidesql.org
    View Frank Kalis's profile on LinkedIn

    XING
  • 11-19-2007 9:05 AM In reply to

    • Greg Larsen
    • Top 75 Contributor
    • Joined on 10-02-2007
    • Tumwater, Washington, USA
    • Posts 245

    Re: How to take a backup to a different server

    you need a couple of slashes in front of myserver (network share name) like so:

    BACKUP DATABASE ... TO DISK='\\myserver\myshare\...'

     

    For SQL Server Examples and SQL Server DBA Dashboard tool go to --http://www.sqlserverexamples.com

    Greg Larsen, MCITP
Page 1 of 1 (3 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.