ROBOCOPY problem - From Samba share

Soldato
Joined
13 Jun 2009
Posts
4,248
Location
My own head
Curious to know if anyone here can resolve my issue.

Have a download server, and I'm using ROBOCOPY to automatically pull completed downloads onto my storage server. I then want the SOURCE to be deleted so I'm not holding double copies.

Using the following string currently:

ROBOCOPY H:\TV D:\MediaStore\TV /COPYALL /Z /S /MOVE /TS /FP /np /log+:Sync_log.txt

It is copying files across, but NOT removing source and I get the following error which I assume is the error in deleting content.

ERROR 1314 (0x00000522) Copying NTFS Security to Destination Directory e:\data\folder\filename A required privilege is not held by the client.

H:\TV is a network share bound to a drive using:

net use h: \\RSERVER\Downloads\completed /user:root mypassword /persistent:no

I would expect using root level permissions should give me full reign... apparently not the case.]

I can go directly into the H:\ share and delete files without an issue... Anyone know how to resolve this?
 
What security context is your Robocopy job running from? Is it being executed manually by you when logged in as a user? Or run via a batch or script? Kicked off via a scheduled task?
 
What security context is your Robocopy job running from? Is it being executed manually by you when logged in as a user? Or run via a batch or script? Kicked off via a scheduled task?

It's executed @ user level (administrator) and runs on a loop through batch script. (I did try schedule task but saw it wasn't respecting the logon - placed logs in sys32 etc)

Worth noting this is a Windows 2008 R2 machine.
 
Last edited:
Back
Top Bottom