ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    PowerShell - Script never completes. Is there a session timeout?

    Scheduled Pinned Locked Moved IT Discussion
    powershellsql 2012 standardbackup
    11 Posts 3 Posters 2.5k Views
    Loading More Posts
    • 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.
    • dafyreD
      dafyre
      last edited by

      Could it be the transfer is actually still running?

      Have you tried to restore from any of the backups recently to make sure they work?

      anthonyhA 1 Reply Last reply Reply Quote 0
      • anthonyhA
        anthonyh @dafyre
        last edited by

        @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

        Could it be the transfer is actually still running?

        Have you tried to restore from any of the backups recently to make sure they work?

        I don't think the copy is hanging. I find the complete backup on the remote share the following morning and it appears to be in tact. If I verify the file, MS-SQL reports it as valid. I have not done a flat out restore though.

        dafyreD 1 Reply Last reply Reply Quote 0
        • anthonyhA
          anthonyh
          last edited by

          I think I found what may be the culprit!

          0_1510608321389_b64fd0e1-1a38-4895-87a0-51f20186a1b7-image.png

          mlnewsM 1 Reply Last reply Reply Quote 2
          • mlnewsM
            mlnews @anthonyh
            last edited by

            @anthonyh that could do it 🙂

            1 Reply Last reply Reply Quote 0
            • dafyreD
              dafyre
              last edited by

              ROFL. Not a problem. Things working as designed. Next!

              anthonyhA 1 Reply Last reply Reply Quote 1
              • dafyreD
                dafyre @anthonyh
                last edited by

                @anthonyh said in PowerShell - Script never completes. Is there a session timeout?:

                @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

                Could it be the transfer is actually still running?

                Have you tried to restore from any of the backups recently to make sure they work?

                I don't think the copy is hanging. I find the complete backup on the remote share the following morning and it appears to be in tact. If I verify the file, MS-SQL reports it as valid. I have not done a flat out restore though.

                Even though you have likely found the problem, it would probably be a good idea to test a restore of one of those backup files every now and again. 😄

                anthonyhA 1 Reply Last reply Reply Quote 0
                • anthonyhA
                  anthonyh @dafyre
                  last edited by

                  @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

                  @anthonyh said in PowerShell - Script never completes. Is there a session timeout?:

                  @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

                  Could it be the transfer is actually still running?

                  Have you tried to restore from any of the backups recently to make sure they work?

                  I don't think the copy is hanging. I find the complete backup on the remote share the following morning and it appears to be in tact. If I verify the file, MS-SQL reports it as valid. I have not done a flat out restore though.

                  Even though you have likely found the problem, it would probably be a good idea to test a restore of one of those backup files every now and again. 😄

                  I agree 100%. I plan to test for sure.

                  1 Reply Last reply Reply Quote 0
                  • anthonyhA
                    anthonyh @dafyre
                    last edited by

                    @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

                    ROFL. Not a problem. Things working as designed. Next!

                    For what it's worth, my post was intended to be framed from the standpoint of "what am I doing wrong??" rather than "what's wrong with the system?!". I figured I was missing something stupid.

                    dafyreD 1 Reply Last reply Reply Quote 1
                    • dafyreD
                      dafyre @anthonyh
                      last edited by

                      @anthonyh said in PowerShell - Script never completes. Is there a session timeout?:

                      @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

                      ROFL. Not a problem. Things working as designed. Next!

                      For what it's worth, my post was intended to be framed from the standpoint of "what am I doing wrong??" rather than "what's wrong with the system?!". I figured I was missing something stupid.

                      Never hurts to have extra eyes. I didn't even think about the potential for this to be a scheduled job... God, I have a case of the Mondays.

                      anthonyhA 1 Reply Last reply Reply Quote 0
                      • anthonyhA
                        anthonyh @dafyre
                        last edited by

                        @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

                        @anthonyh said in PowerShell - Script never completes. Is there a session timeout?:

                        @dafyre said in PowerShell - Script never completes. Is there a session timeout?:

                        ROFL. Not a problem. Things working as designed. Next!

                        For what it's worth, my post was intended to be framed from the standpoint of "what am I doing wrong??" rather than "what's wrong with the system?!". I figured I was missing something stupid.

                        Never hurts to have extra eyes. I didn't even think about the potential for this to be a scheduled job... God, I have a case of the Mondays.

                        Not your fault at all. I did not mention it in my OP. Whoops. Perhaps I'm the one with a case of the Mondays.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post