Access is denied running script for a Rotating backup scheme

Have questions about Backup4all, or having problems using it? Ask here for help.
Post Reply
angelo_lopes
Posts: 15
Joined: Mon Nov 28, 2016 3:02 pm

Access is denied running script for a Rotating backup scheme

Post by angelo_lopes »

Hi

I am getting a "Backup aborted. Reason: Before Action returned exit code 1" (???) message
running a Rotating backup scheme configured following the tutorial.

I have Windows 10 Pro full upgraded 64-bit, and my account belongs to Administrators group. Home computer, only account enabled. Running the batch without elevation I see Access is denied.
http://www.lopesdasilva.com/Diino/outro ... nt.bat.png
[img]http://www.lopesdasilva.com/Diino/outro ... nt.bat.png[/img]

With elevation I see The file or directory is not a reparse point
http://www.lopesdasilva.com/Diino/outro ... _admin.png
[img]http://www.lopesdasilva.com/Diino/outro ... _admin.png[/img]

I gave full access to C:\DiskMount folder. I must be overlooking something, but can't find what it is. Can you please help me?
Thanks

Regards, Angelo

Adrian (Softland)
Posts: 1914
Joined: Wed Dec 16, 2009 12:46 pm

Re: Access is denied running script for a Rotating backup scheme

Post by Adrian (Softland) »

Hi,

You can specify the exit code at the end of your batch file:
EXIT [/B] [exitCode]

Example: exit /B 0

angelo_lopes
Posts: 15
Joined: Mon Nov 28, 2016 3:02 pm

Re: Access is denied running script for a Rotating backup scheme

Post by angelo_lopes »

Hi, Support

Thanks for your reply though I did not understand what you mean by "[i]You can specify the exit code at the end of your batch file[/i]".
I tried exit /B 0 on the last line of my script, and when I run the batch either on a normal command prompt or Administrator command prompt just for testing, the batch simply shows exit /B 0 after displaying messages like:
The file or directory is not a reparse point.
The directory is not empty.
The parameter is incorrect.

Again, I get the access denied message, and when scheduling Backup4all to run on shutdown I am not running Backup4all as administrator...

Only me? I do not believe I am the only guy on this planet running Backup4all on shutdown :)

Adrian (Softland)
Posts: 1914
Joined: Wed Dec 16, 2009 12:46 pm

Re: Access is denied running script for a Rotating backup scheme

Post by Adrian (Softland) »

Hi,

Is the batch file correctly written?

angelo_lopes
Posts: 15
Joined: Mon Nov 28, 2016 3:02 pm

Re: Access is denied running script for a Rotating backup scheme

Post by angelo_lopes »

Hi,

Well, I think so. Here it goes:


---------------------
REM unmount first
mountvol C:\DiskMount /D

REM try mount first drive BIG WD (it will mount label G); fails if disk is not online
mountvol C:\DiskMount \\?\Volume{e8900649-0000-0000-007e-000000000000}\

REM try mount second drive SMALL WD MyBook (it will mount label G); fails if disk is not online
mountvol C:\DiskMount \\?\Volume{00021365-0000-0000-007e-000000000000}\

pause
exit /B 0
pause
---------------------

Adrian (Softland)
Posts: 1914
Joined: Wed Dec 16, 2009 12:46 pm

Re: Access is denied running script for a Rotating backup scheme

Post by Adrian (Softland) »

Hi,

Instead of "exit /B 0" try to use:
ping localhost -n 1 >null
exit 0

angelo_lopes
Posts: 15
Joined: Mon Nov 28, 2016 3:02 pm

Re: Access is denied running script for a Rotating backup scheme

Post by angelo_lopes »

Hi

I tried it and it did the trick.
I am sad :( because I have no idea and even lurking the net I couldn't find it what these lines do, though
ping localhost -n 1 >null
exit 0

That said, I have two disks on my computer. One 250 GB SSD and one 250 GB HDD. Only personal stuff. No Games, no multimedia editing.
C:\ is the SSD for OS and programs, E:\ HDD is for data. All data profile folders are redirected do this second disk, and this is what I want to backup.

Log shows:
[10-Dec-16 9:08:54] Shadow copy created for drives C:,E:
Backup aborted. Reason:
Not enough free space in backup destination.
Next scheduled backup: Not scheduled
Backup aborted after 1:29 minute(s) at 10-Dec-16 9:08:54 with 1 error(s), 0 warning(s)

I found Backup4all rotating backup scheme reading your faqs, but since my two USB disk that I rotate every Thursday always receive the same drive letter, I am going to open another post with some questions regarding rotating USB disks without mounting them do disk folders.

Thank you for your cooperation :)

Post Reply