Hi all
I would like stop (escape) backup task in case of pre-treatment failure. For intense if a directory is not available or does'nt exist
I'm using powershell, win 11 and Cobian reflector 2.5
On more thing
It's possible to insert it's own logs in Cobian journal
Thanks
Stop cobian backup in case of pretreament error
Re: Stop cobian backup in case of pretreament error
In the powershell script just return some number != 0.
About the log, not possible in this version yet.
About the log, not possible in this version yet.
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: Stop cobian backup in case of pretreament error
Thanks for you quick answer.
I don't understand why my backup starts even if my pre-script return 99.
Pacou
I don't understand why my backup starts even if my pre-script return 99.
Pacou
-
- Posts: 10
- Joined: 22 Feb 2024, 12:41
Re: Stop cobian backup in case of pretreament error
Have you attempted implementing a script in PowerShell to detect pre-treatment errors, such as directory unavailability, and halt the Cobian backup task accordingly?pacou wrote: ↑17 Mar 2024, 17:03 Hi all
I would like stop (escape) backup task in case of pre-treatment failure. For intense if a directory is not available or does'nt exist
I'm using powershell, win 11 and Cobian reflector 2.5
On more thing
It's possible to insert it's own logs in Cobian journal
Thanks
Re: Stop cobian backup in case of pretreament error
Options-Engine-Analyze exit code must be selected.
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator
Re: Stop cobian backup in case of pretreament error
I got it
PowerShell.exe -command "c:\Users\pacou\Downloads\Pre-event.ps1"; exit $LASTEXITCODE
PowerShell.exe -command "c:\Users\pacou\Downloads\Pre-event.ps1"; exit $LASTEXITCODE
Re: Stop cobian backup in case of pretreament error
--
Luis Cobian
Cobian Backup's creator
Luis Cobian
Cobian Backup's creator