Robocopy error: ERROR 0x00000005
I use Robocopy to backup
my data with the following command.
robocopy [source folder] [target folder] /COPY:DAT
But many times I face these kind of errors.
2012/06/28 11:48:37 ERROR 5 (0x00000005) Copying File
C:\finance.xls
Access is denied.
...
Waiting 30 seconds
2012/06/28 11:48:37 ERROR
5 (0x00000005) Changing File Attributes C:\Stocks.xls
Access is
denied.
...
Waiting
30 seconds
The reasons for this error are many and the fixes depends on the reasons:
1.Check the destination disk is full.
2.This error usually means that File/Folder permissions or Share permissions on either the source or the destination are preventing the copy.
3.Try to turn off the copyflag A i.e. attribute . Robocopy uses the
/COPY:DAT by default, which means to copy data, attributes and timestamp. You
should turn off attribute copying by explicit setting /COPY:DT.
On the other hand, by design, the original Robocopy version is not able to replicate security attributes of files which have had their security permissions changed after an initial mirroring. Thanks.
ReplyDeleteRegards,
Burton Lamoureux
Thanks Burton for the update!!! Would be looking further for new comments and your participation in TeamXchange as an Subject Matter Expert!!!!!!!!!!!
ReplyDelete