Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How can i take backup's on remote server path directly??

How can i take backup's on remote server path directly??

Scheduled Pinned Locked Moved Database
helpquestiondatabasesysadmin
11 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Aman786Singh

    Hi All, This is the code i am running.. BACKUP DATABASE [Outbound_Vodafone] TO DISK = N'\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak' WITH DIFFERENTIAL , INIT This path is already shared to my domain user login. But I am getting this exception.. Msg 3201, Level 16, State 1, Line 1 Cannot open backup device '\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak'. Operating system error 5(Access is denied.). Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally. Please help!! Regards, Amandeep Singh

    C Offline
    C Offline
    Corporal Agarn
    wrote on last edited by
    #2

    Which version are you using (it looks like one of MS SQL). If you are using SQL 2000 you may not be allowed to backup to a different system.

    A 1 Reply Last reply
    0
    • A Aman786Singh

      Hi All, This is the code i am running.. BACKUP DATABASE [Outbound_Vodafone] TO DISK = N'\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak' WITH DIFFERENTIAL , INIT This path is already shared to my domain user login. But I am getting this exception.. Msg 3201, Level 16, State 1, Line 1 Cannot open backup device '\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak'. Operating system error 5(Access is denied.). Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally. Please help!! Regards, Amandeep Singh

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #3

      Have you try this?

      BACKUP DATABASE DatabBasename
      TO DISK = 'C:\BackUp\databasenamebackup.bak'
      WITH FORMAT;


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

      A 1 Reply Last reply
      0
      • C Corporal Agarn

        Which version are you using (it looks like one of MS SQL). If you are using SQL 2000 you may not be allowed to backup to a different system.

        A Offline
        A Offline
        Aman786Singh
        wrote on last edited by
        #4

        I am using SQL server2005!!

        1 Reply Last reply
        0
        • B Blue_Boy

          Have you try this?

          BACKUP DATABASE DatabBasename
          TO DISK = 'C:\BackUp\databasenamebackup.bak'
          WITH FORMAT;


          I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

          A Offline
          A Offline
          Aman786Singh
          wrote on last edited by
          #5

          Please understand i want to take backup's on some other server, not on the local.

          B 1 Reply Last reply
          0
          • A Aman786Singh

            Hi All, This is the code i am running.. BACKUP DATABASE [Outbound_Vodafone] TO DISK = N'\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak' WITH DIFFERENTIAL , INIT This path is already shared to my domain user login. But I am getting this exception.. Msg 3201, Level 16, State 1, Line 1 Cannot open backup device '\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak'. Operating system error 5(Access is denied.). Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally. Please help!! Regards, Amandeep Singh

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            I really don't know much about this, but the access denied message suggests the backup is trying to do something on that disk that is restricted by permissions. You say that this disk is shared to your login, but are you sure that you have full access control on it; can you read and write and create directories etc?

            It's time for a new signature.

            1 Reply Last reply
            0
            • A Aman786Singh

              Hi All, This is the code i am running.. BACKUP DATABASE [Outbound_Vodafone] TO DISK = N'\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak' WITH DIFFERENTIAL , INIT This path is already shared to my domain user login. But I am getting this exception.. Msg 3201, Level 16, State 1, Line 1 Cannot open backup device '\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak'. Operating system error 5(Access is denied.). Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally. Please help!! Regards, Amandeep Singh

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #7

              Sometimes I have the same problem on some clients servers.You need to ensure that the account, SQL server is running under, has the appropriate access rights to the shared network partition. :). [EDIT] I'm not sure but I suppose that SQL server should better be running under Network service built-in account. [/EDIT]

              Life is a stage and we are all actors!

              modified on Tuesday, May 25, 2010 4:46 AM

              C 1 Reply Last reply
              0
              • L Lost User

                Sometimes I have the same problem on some clients servers.You need to ensure that the account, SQL server is running under, has the appropriate access rights to the shared network partition. :). [EDIT] I'm not sure but I suppose that SQL server should better be running under Network service built-in account. [/EDIT]

                Life is a stage and we are all actors!

                modified on Tuesday, May 25, 2010 4:46 AM

                C Offline
                C Offline
                Corporal Agarn
                wrote on last edited by
                #8

                Hristo Bojilov wrote:

                I'm not sure but I suppose that SQL server should better be running under Network service built-in account.

                I believe that is the problem. I had an issue where the account running the SQL Server Agent did not have the permissions to access the other server. I changed the account but I think there is a way to impersonate for a run. Sorry I have not used this but seem to remember reading in a study guide.

                A 1 Reply Last reply
                0
                • C Corporal Agarn

                  Hristo Bojilov wrote:

                  I'm not sure but I suppose that SQL server should better be running under Network service built-in account.

                  I believe that is the problem. I had an issue where the account running the SQL Server Agent did not have the permissions to access the other server. I changed the account but I think there is a way to impersonate for a run. Sorry I have not used this but seem to remember reading in a study guide.

                  A Offline
                  A Offline
                  Aman786Singh
                  wrote on last edited by
                  #9

                  still not get any appropriate answer.. Kindly add some more solutions.

                  1 Reply Last reply
                  0
                  • A Aman786Singh

                    Please understand i want to take backup's on some other server, not on the local.

                    B Offline
                    B Offline
                    Blue_Boy
                    wrote on last edited by
                    #10

                    Instead path of localhost give path in which you are trying to backup database.


                    I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

                    A 1 Reply Last reply
                    0
                    • B Blue_Boy

                      Instead path of localhost give path in which you are trying to backup database.


                      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

                      A Offline
                      A Offline
                      Aman786Singh
                      wrote on last edited by
                      #11

                      That's what i am doing dear! See the BACKUP DATABASE [Outbound_Vodafone] TO DISK = N'\\dataserver\Database\Outbound_VodafoneDifferential_9PM.bak' WITH DIFFERENTIAL , INIT but it's not working.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups