Skip to main content

Running Batch After Backup-Job causes "Fehler 1" (Error 1)

Thread needs solution

Hi

What does "Fehler 1" mean? Fact is, Batch is running without error when either testing with Test-Button (see Screenshot) within Acronis Options, Tab "Erweitert" on Screen "Benutzerbefehle spezifizieren und konfigurieren" or just executing in DOS-Task (cmd). Batch (N = Synology NAS, DS916+ / E = ext. Harddrive):

xcopy "N:\Acronis\Outlook" "E:\Acronis\Outlook" /S /E /C /H /R /Y /D
if errorlevel 4 goto lowmemory
if errorlevel 2 goto abort
if errorlevel 0 goto exit
:lowmemory
echo Insufficient memory to copy files or
echo invalid drive or command-line syntax.
goto exit
:abort
echo You pressed CTRL+C to end the copy operation.
goto exit
:exit

Looking forward to hear why Acronis gives "Fehler 1".

Tks + Rgds

0 Users found this helpful

I assume you are running this as a Post-command. Am I correct? Sometimes commands seem to work when you test them but fail as a pre- or post-command. It can behave differently depending on whether the file is a .cmd or a .bat file. Try changing it to see if that helps.

Secondly, as I look at your file, I have to ask what happens if the error code is not 4, 2 or 0. It looks like it may go through the lowmemory path.

 

Yeah,  tryi it as .bat instead of .cmd

Also there is a known issue when using xcopy or Robocopy to NAS when keeping the original file security and attributes. The NAS can't accept the same security and atttibutes and the command will fail as a result.

I'm not  sure  which switch stops that in Xcopy. In Robocopy it is necessary to turn of dcopy as outlined here.

http://www.luisrocha.net/2008/12/robocopy-error-error-5-0x00000005.html?m=1

@ both of You! You are absolutely right! I just wonder, why - especially if this is already known - the "Answer given by Acronis" is so weak!

As a matter of fact, the Job was running through after having been started by its own, when having named the "Batch" (!!!) with "cmd" at the End of the Batch-Name. And if so, I furthermore wonder, why Acronis  does not this make running smoothly, and especially not gives en Error-Code as "Fehler 1". And not additional Information! I think - sorry - this is weak.

But anyway, thanks to your feedback, my problem is solved. Thanks again to both of you! ;-)

PS: Preview of this Entry does not work either, again. It did not work when writing my first message ;-(

Attachment Size
508322-171001.png 1.52 KB

Glad you got it running right.