?
Solved

robocopy error

Posted on 2013-11-21
10
Medium Priority
?
3,005 Views
Last Modified: 2013-11-22
Using Windows 8.1 / 64-bit.

I made a robocopy batch file called runRobo.bat. When I run it, I get this error:

ERROR 1920: The file cannot be access by the system.

I choose Run As Administrator, and still get this same error.

The batch file code is below; what do you think I am missing here?

Thanks for any advice!

Eric


@echo off
:: variables
set drive=i:\
set folder=%date:~10,4%_%date:~4,2%_%date:~7,2%_%hour%_%time:~3,2%
set backupcmd=robocopy /E /W:2

echo ### Backing up directory...
%backupcmd% "c:\Users\Eric\SkyDrive" "%drive%\%folder%"
%backupcmd% "e:\webwork" "%drive%\%folder%"
%backupcmd% "e:\analog 6.0"" "%drive%\%folder%"
%backupcmd% "e:\books" "%drive%\%folder%"
%backupcmd% "e:\sleep" "%drive%\%folder%"

echo Backup Complete!
@pause

Open in new window

0
Comment
Question by:Eric Bourland
  • 5
  • 3
  • 2
10 Comments
 
LVL 14

Assisted Solution

by:Michael Dyer
Michael Dyer earned 1000 total points
ID: 39668104
On line 10 you have an extra quote sign after 6.0.  Remove that and you should be good.
0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 39668109
<grin> I fixed the extra quotation mark -- thank you, Equitrac!

I am still getting that same error, though. I wonder if this is a permissions problem?

### Backing up directory...

-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows

-------------------------------------------------------------------------------

  Started : Thursday, November 21, 2013 11:57:02 PM
   Source : c:\Users\Eric\SkyDrive\
     Dest : i:\2013_11_21__57\

    Files : *.*

  Options : *.* /S /E /DCOPY:DA /COPY:DAT /R:1000000 /W:2

------------------------------------------------------------------------------

          New Dir         51    c:\Users\Eric\SkyDrive\
            New File                 506        BACKUP PROGRAM.txt
2013/11/21 23:57:12 ERROR 1920 (0x00000780) Copying File c:\Users\Eric\SkyDrive\
BACKUP PROGRAM.txt
The file cannot be accessed by the system.
Waiting 2 seconds... Retrying...
            New File                 506        BACKUP PROGRAM.txt
2013/11/21 23:57:14 ERROR 1920 (0x00000780) Copying File c:\Users\Eric\SkyDrive\
BACKUP PROGRAM.txt
The file cannot be accessed by the system.
Waiting 2 seconds... Retrying...
            New File                 506        BACKUP PROGRAM.txt
2013/11/21 23:57:16 ERROR 1920 (0x00000780) Copying File c:\Users\Eric\SkyDrive\
BACKUP PROGRAM.txt
The file cannot be accessed by the system.
Waiting 2 seconds... Retrying...
            New File                 506        BACKUP PROGRAM.txt
2013/11/21 23:57:18 ERROR 1920 (0x00000780) Copying File c:\Users\Eric\SkyDrive\
BACKUP PROGRAM.txt
The file cannot be accessed by the system.
Waiting 2 seconds... Retrying...
            New File                 506        BACKUP PROGRAM.txt
2013/11/21 23:57:20 ERROR 1920 (0x00000780) Copying File c:\Users\Eric\SkyDrive\
BACKUP PROGRAM.txt
The file cannot be accessed by the system.
Waiting 2 seconds... Retrying...
0
 
LVL 14

Expert Comment

by:Michael Dyer
ID: 39668117
Sure seems like a rights issue - you could try adding /B to the backup command to see if it will run in backup mode.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:Eric Bourland
ID: 39668125
Tried adding /B but no luck: still getting that 1920 error.

I also deleted the volume of the backup drive, put a new volume and formatted in NTFS, and assigned drive letter I: .... thinking Windows 8.1 would like that better. But nope.

I wonder if the robocopy program cannot read my Skydrive folder on my hard drive.
0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 39668127
That is the problem. The robocopy command works great until it reaches folder:

c:\Users\Eric\SkyDrive\

Interesting. Researching this....
0
 
LVL 14

Expert Comment

by:Michael Dyer
ID: 39668141
Maybe try adding a line like this at the beginning

Copy c:\Users\Eric\SkyDrive\*.* c:\temp\skytemp

And then run the robocopy against the temp folder and see if that works

If so, add del c:\temp\skytemp\*.* at the end to clear out he temp folder when done.
0
 
LVL 43

Accepted Solution

by:
Steve Knight earned 1000 total points
ID: 39668182
I donMt use skydrive at the moment to test as I have dropbox in use but this link suggests that if you use the 'make available offline' option in skydrive then it genuinely syncs them offline rather than just pretending, I assume at the moment it is a stub of a file like when you get issues with junction points to follow.

http://social.technet.microsoft.com/Forums/en-US/6a5912f9-afed-413b-ab65-f0f880af4d49/robocopy-and-windows-81-pro-local-skydrive-folders-fail?forum=w8itprogeneral
0
 
LVL 3

Author Closing Comment

by:Eric Bourland
ID: 39669456
>>> the 'make available offline' option in skydrive

That was it. Thank you, dragon-it. Also thank you Equitrac_Michael for your time and expertise, and for correcting my script syntax. =)

I'll divide these points evenly, if that is OK with you both. Thank you both very much. This solves a big problem, and I learned some things. =)

Hope your day is going great.

Eric
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 39669589
No problem, I will no doubt come across the issue with a customer using Skydrive shortly so you saved me having to scratch my head then!   I presume until a specific file is downloaded locally and cached then it is just a pointer to be able to download the actual file on demand.

Steve
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
This article is about my experience upgrading my consulting machine to Windows 10 Version 1709 (The Fall 2017 Creator Update)
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question