Freebsd (Freenas 8) and robocopy gives Error 5 Time-Stamping Destination File WHy?

7,542

Solution 1

Try using /COPY:DT to only copy data and timestamp info, not file attributes. You should probably keep using the /FFT switch too.

Solution 2

I had this problem copying from a Windows Server 2008 R2 machine to a Windows Server 2003 domain controller through an RDP client network share (e.g. \\tsclient\D).

Using an older version of robocopy from the Windows Server 2003 Resource Kit (XP010) worked fine.

Share:
7,542

Related videos on Youtube

Jafin
Author by

Jafin

Updated on September 18, 2022

Comments

  • Jafin
    Jafin almost 2 years

    I have a NAS running FreeBSD/FreeNas 8.0.4 When I copy files from a windows system to it via SMB/CIFS normally (explorer/copy) it all goes fine. User can create/delete/update files

    When i attempt the same thing with Robocopy. I get either of 2 errors, depending on command.

    robocopy .\ \\freenas\temp *.* /FFT
    2011/06/15 21:17:58 ERROR 5 (0x00000005) Time-Stamping Destination File \\freenas\temp\test.txt
    Access is denied.
    
    robocopy .\ \\freenas\temp *.* /COPY:DA
    2011/06/15 21:18:08 ERROR 5 (0x00000005) Changing File Attributes \\freenas\temp\
    Access is denied.
    

    From the default config, I've set the following in smb.conf

    [share]
    map archive = yes
    
    [global]
    dos filetimes = yes
    

    Any other clues?

    • abstrask
      abstrask over 10 years
      For what it's worth, I have the same issue on a CIFS share on FreeNAS 9.1.1. Permissions are rwxrwx--- and my user is member of the group.
  • Jafin
    Jafin about 12 years
    Unfortunately I still get the changing file attributes error with both /Z and /ZB and /B.
  • Jafin
    Jafin about 12 years
    Still getting timestamp error. I've googled around and it just looks like some samba v timestamp issue??? But it's really hard to pinpoint exactly... Other say just use xcopy (which does work)
  • Pacerier
    Pacerier about 9 years
    How do you convert a copy of the older robocopy version?