-
- Novice
- Posts: 6
- Liked: never
- Joined: Nov 16, 2017 7:23 am
- Contact:
Post-job script terminated with exit code 8
Hello,
After a backup job, we execute a PostScript job that starts a batch file. This batch file should copy the last full backup to a USB drive.
This works fine even if I execute the script by hand. However, if the script is called via Veeam, I get the error message "Post-job script terminated with exit code 8".
Unfortunately, I couldn't find a more detailed description of what this code means.
Can anyone help?
Thank you very much.
After a backup job, we execute a PostScript job that starts a batch file. This batch file should copy the last full backup to a USB drive.
This works fine even if I execute the script by hand. However, if the script is called via Veeam, I get the error message "Post-job script terminated with exit code 8".
Unfortunately, I couldn't find a more detailed description of what this code means.
Can anyone help?
Thank you very much.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Post-job script terminated with exit code 8
Hi,
My first thought is that that you've hit the timeout (900 seconds by default). How long does it take to copy the file using your batch?
Thanks
My first thought is that that you've hit the timeout (900 seconds by default). How long does it take to copy the file using your batch?
Thanks
-
- Novice
- Posts: 6
- Liked: never
- Joined: Nov 16, 2017 7:23 am
- Contact:
Re: Post-job script terminated with exit code 8
Hi
I thought so too. But the error comes right after a second.
I have also set the timeout for the copy job to 24 hours.
I thought so too. But the error comes right after a second.
I have also set the timeout for the copy job to 24 hours.
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: Post-job script terminated with exit code 8
Would you please post the code that you have in your batch?
Thanks
Thanks
-
- Novice
- Posts: 6
- Liked: never
- Joined: Nov 16, 2017 7:23 am
- Contact:
Re: Post-job script terminated with exit code 8
Just a simple copy job with RoboCopy
But not even the first line is executed. The backup folder is not deleted
Code: Select all
rd "E:\Backup" /S /Q
md "E:\Backup"
robocopy "G:\Backup" "E:\Backup" *.vbk /r:1 /w:1 /maxage:6 /log+:backup2usb.log
-
- Veeam Software
- Posts: 649
- Liked: 170 times
- Joined: Dec 10, 2012 8:44 am
- Full Name: Nikita Efes
- Contact:
Re: Post-job script terminated with exit code 8
Post-job script is executed in the context of the account under which Veeam Backup Service runs.
By default that is localsystem user. To me it looks like service account does not see volume E, so rd fails.
You can try to run your script with that user (for example by using psexec) and see output there.
By default that is localsystem user. To me it looks like service account does not see volume E, so rd fails.
You can try to run your script with that user (for example by using psexec) and see output there.
Who is online
Users browsing this forum: Google [Bot] and 115 guests