-
- Expert
- Posts: 231
- Liked: 18 times
- Joined: Dec 07, 2009 5:09 pm
- Full Name: Chris
- Contact:
Time limit on Post Job Activity script?
Hello,
I have a PS script that runs after a job. It copies the VBM and VBK to a 2nd location. The VBM file copies without a problem so I know the script is running and I know the permissions are correct. The problem is that the VBK file does not make it to the new location and it appears that the running PS script is being cancelled during the file copy. It would take about an hour and a half for the copy to complete under normal circumstances.
Any thoughts on this?
I have a PS script that runs after a job. It copies the VBM and VBK to a 2nd location. The VBM file copies without a problem so I know the script is running and I know the permissions are correct. The problem is that the VBK file does not make it to the new location and it appears that the running PS script is being cancelled during the file copy. It would take about an hour and a half for the copy to complete under normal circumstances.
Any thoughts on this?
-- Chris
-
- Chief Product Officer
- Posts: 31816
- Liked: 7302 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: Time limit on Post Job Activity script?
Hi Chris, cancelling long running script is news to me, however if this is really the case, why not start your copy script in the separate process (using start command in the "primary" batch file that the job launches). Thanks!
-
- Expert
- Posts: 231
- Liked: 18 times
- Joined: Dec 07, 2009 5:09 pm
- Full Name: Chris
- Contact:
Re: Time limit on Post Job Activity script?
I created a small job and used the same script (modified to copy the test job's files) and it worked fine.
-- Chris
-
- Expert
- Posts: 231
- Liked: 18 times
- Joined: Dec 07, 2009 5:09 pm
- Full Name: Chris
- Contact:
Re: Time limit on Post Job Activity script?
Because of ignorance. My script currently runs with the following command:Gostev wrote:why not start your copy script in the separate process (using start command in the "primary" batch file that the job launches)
Code: Select all
c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -noninteractive -file "c:\psscripts\Copy_Tier1_Files_For_BackupExec.ps1"
-- Chris
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Time limit on Post Job Activity script?
Hi, Chris, I'm wondering what type of commands used in order to copy the files. The assumption is that may be the commands itself have predefined timeout or something similar. Also, why not to use backup copy job, instead of custom scripts? Thanks.
-
- Expert
- Posts: 231
- Liked: 18 times
- Joined: Dec 07, 2009 5:09 pm
- Full Name: Chris
- Contact:
Re: Time limit on Post Job Activity script?
Just your basic Windows copy.v.Eremin wrote:I'm wondering what type of commands used in order to copy the files. The assumption is that may be the commands itself have predefined timeout or something similar.
Great question and it's caused me to rethink what I'm doing. It's a bit of a long story but originally it was because the two VBKs I am copying were going to different places because of available storage at the target(s).Also, why not to use backup copy job, instead of custom scripts? Thanks.
Now that I'm rethinking what I'm doing I think I'll be able to get away with combining both jobs into a single copy job even while having 2 restore points and still be able to fit them both on a single target.
-- Chris
-
- Product Manager
- Posts: 20415
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Time limit on Post Job Activity script?
The backup copy option seems to be preferred here. This way, you will be able to get rid of custom scripts. Also, you will have convenient restore point tracking system, as restore points created by backup copy jobs will be reflected under corresponding node.
Thanks.
Thanks.
Who is online
Users browsing this forum: Bing [Bot] and 90 guests