Solved

robocopy error

Posted on 2013-11-21
10
2,662 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 14

Assisted Solution

by:Michael Dyer
Michael Dyer earned 250 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
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 3

Author Comment

by:Eric Bourland
ID: 39668135
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 250 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

726 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