Aller au contenu principal

Pre.bat not working on some machines??

Thread needs solution

Hi All,

I have various servers covered by Acronis backups. My backup strategy is to have a full backup of the servers over the weekend during quiet times and incrementals at night during the week. I then use the Acronis pre.bat file that rotates backups so we can keep 3 weeks worth of backups.

However I'm finding that the pre.bat doesn't work on all the servers, in fact it doesn't really provide any error messages or anything it just doesn't do it's job even though the backup happens as it should. I've tried executing the pre.bat manually from the command line and again this didn't provide any error messages.

Syntax I'm using is

c:\pre.bat "\\server\share\backup folder\backup file name" 6 3

I've also tried without quotes.

What am I doing wrong?

0 Users found this helpful

Hello Dave,

Welcome to the forum and thank you for posting. I will definitely assist you with this issue.

I would like to clarify something please, are you using the batch file from this KB article, it is the second one from the list called: You can download sample batch files - Batch file for managing backup sets saved to a network share without password protection.

It is possible the network share is not accessible to all users. You can also try the following workaround, try mapping the network share as a logical drive and use that mapped path in the bat file.

Looking forward to your reply and if you have additional questions, please let me know.

Thank you.

I solved the problem it was incorrect syntax

I was using
c:\pre.bat "\\server\share\backup folder\backup file name" 6 3

when I didn't need the backup file name at the end, it should have been

c:\pre.bat "\\server\share\backup folder" 6 3