Windows 10: robocopy to NAS affecting target directory such that it is Hidden on macOS

Discus and support robocopy to NAS affecting target directory such that it is Hidden on macOS in Windows 10 Gaming to solve the problem; Have a WIndows 10 and a MacOS Monterey 12.6 system connected through an ethernet switch to a Synology DSM7 NAS box. I'm using robocopy in a .cmd script... Discussion in 'Windows 10 Gaming' started by ric982, Nov 7, 2022.

  1. ric982 Win User

    robocopy to NAS affecting target directory such that it is Hidden on macOS


    Have a WIndows 10 and a MacOS Monterey 12.6 system connected through an ethernet switch to a Synology DSM7 NAS box. I'm using robocopy in a .cmd script that I schedule nightly to backup windows volumes other than C: to the NAS. I can see the files are being backuped up OK looking on the NAS.The directory on the NAS is like: \\NetBackup\Intel1\Volumes\D in the case of my D volume on Intel1On the Mac, I have the share mounted and the path to the directory there is: /Volumes/NetBackup/Intel1/Volumes/I can show hidden files in this directory in Finder and I see that directory D is th

    :)
     
    ric982, Nov 7, 2022
    #1

  2. Robocopy: copy drive root directory creates hidden backup folder

    Windows 10 Home 21H2 19044.1526, 64-bit

    Robocopy 10.0.19041.1266

    Run Robocopy via .bat file, Run as Administrator.



    Hello:



    When I use Robocopy to copy the root directory of a drive (Drobocopy to NAS affecting target directory such that it is Hidden on macOS :) to a folder (non-root directory) on an external drive, the resulting destination folder is Hidden. I believe that's because the root drive has System and Hidden attributes.

    How can I prevent System and Hidden attributes from being applied to the destination folder?



    My testing (I removed options for multi-threads, retries, logging, etc., to make it easier for you folks to read.):



    SET options=/MIR /A-:RSHA /XA:SH /XJ /XD "$RECYCLE.BIN" "System Volume Information" /XF DESKTOP.INI

    ROBOCOPY "D:" "Y:\Backups\Test" %options%



    /A-:RSHA does not work to prevent the destination folder from being hidden, though I read that it should work.

    So, I added /COPYrobocopy to NAS affecting target directory such that it is Hidden on macOS :DT /DCOPYrobocopy to NAS affecting target directory such that it is Hidden on macOS :DT to options so as not to backup properties and attributes:



    SET options=/COPYrobocopy to NAS affecting target directory such that it is Hidden on macOS :DT /DCOPYrobocopy to NAS affecting target directory such that it is Hidden on macOS :DT /MIR /A-:RSHA /XA:SH /XJ /XD "$RECYCLE.BIN" "System Volume Information" /XF DESKTOP.INI

    ROBOCOPY "D:" "Y:\Backups\Test" %options%



    /COPYrobocopy to NAS affecting target directory such that it is Hidden on macOS :DT /DCOPYrobocopy to NAS affecting target directory such that it is Hidden on macOS :DT did not help, as destination backup folder is still created as hidden.



    If I run ATTRIB command after the backup, as in:

    attrib -s -h "Y:\Backups\Test"

    this does unhide the hidden directory, but I would prefer to find a way to prevent Robocopy from hiding the backup in the first place.



    How can I prevent System and Hidden attributes from being applied to the destination folder?
     
    franklin-xy, Nov 7, 2022
    #2
  3. Copy NTFS permissions to a NAS with Robocopy

    Hello,

    I'm actually using Robocopy to copy a "home" folder with NTFS permissions to a NAS Synology. All theses equipment are on the domain, that will be named XXXXX in this post.

    The permissions on the "home" folder are explicit, and not inherited from the parent folder. Also note that the SYNOLOGY NAS have the Windows Permissions activated.

    The goal is to create a backup of this "home" folder to the NAS with the permissions.

    Here is the Robocopy script that i'm using :

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

    set rep_log=C:\Script\log

    set rep_sync_DATA=\\SRV1\e$\home\

    set rep_sync_NAS=\\NAS-SYNOLOGY01\test01\backup\home\

    robocopy %rep_sync_DATA% %rep_sync_NAS% /MIR /SEC /ZB /NP /XF thumbs.db /R:2 /W:5 /log:%rep_log%\Synchronisation_backup_nas.txt

    -----------

    The Robocopy script works well, and the files are well copied. EXCEPT one. On my "home" source folder, we can find on the permission list the XXXXXX\Administrators group. (explicit permission)

    But, unfortunately, once the folder is copied to the NAS, it change the XXXXX\Administrators group to NAS-SYSNOLOG01\Administrators. This folder take the local domain of the NAS instead of my AD domain.

    Please note that this "domain change" is only applied to this group, and the others lambda groups are not impacted by this strange change. (example XXXXXX\Sales group on source folder will be copied as XXXXXX\Sales to the destination)

    The same script works perfectly if the destination is a USB HDD for example. It only happens if I want to copy to the NAS.

    Any idea to fix this issue ? I faced this issue twice, with SYNOLOGY and with NETAPP technology. Whatever soft I tried to copy (robocopy or others), the result is the same...

    Thanks for your potential help robocopy to NAS affecting target directory such that it is Hidden on macOS :)

    Sébastien
     
    Sébastien_980, Nov 7, 2022
    #3
  4. robocopy to NAS affecting target directory such that it is Hidden on macOS

    Robocopy copies folders not in Documents to my backup Documents folder on 2nd drive.

    Two things:

    • You must surroound your folder names with double quotes:

      robocopy "C:\Users\my name\Documents . . ." "D:\Dropbox\my name\Documents
      . . ."
    • Robocopy often hides target folders, causing users to think they are missing. Look for hidden folders.
     
    Frederik Long, Nov 7, 2022
    #4
Thema:

robocopy to NAS affecting target directory such that it is Hidden on macOS

Loading...
  1. robocopy to NAS affecting target directory such that it is Hidden on macOS - Similar Threads - robocopy NAS affecting

  2. Robocopy renames the target directory to the same directory once done running

    in Windows 10 Gaming
    Robocopy renames the target directory to the same directory once done running: Hi,Trying to copy all folders to another directory on same disk and partitionrobocopy c:\Users\bob\Document c\users\Bob\1-BobBackup /sthis runs when complete, the 1-BobBackup is renamed "Document" resulting in 2 "Document " folders making it confusing which is source and...
  3. Robocopy renames the target directory to the same directory once done running

    in Windows 10 Software and Apps
    Robocopy renames the target directory to the same directory once done running: Hi,Trying to copy all folders to another directory on same disk and partitionrobocopy c:\Users\bob\Document c\users\Bob\1-BobBackup /sthis runs when complete, the 1-BobBackup is renamed "Document" resulting in 2 "Document " folders making it confusing which is source and...
  4. robocopy to NAS affecting target directory such that it is Hidden on macOS

    in Windows 10 Network and Sharing
    robocopy to NAS affecting target directory such that it is Hidden on macOS: Have a WIndows 10 and a MacOS Monterey 12.6 system connected through an ethernet switch to a Synology DSM7 NAS box. I'm using robocopy in a .cmd script that I schedule nightly to backup windows volumes other than C: to the NAS. I can see the files are being backuped up OK...
  5. robocopy to NAS affecting target directory such that it is Hidden on macOS

    in Windows 10 Software and Apps
    robocopy to NAS affecting target directory such that it is Hidden on macOS: Have a WIndows 10 and a MacOS Monterey 12.6 system connected through an ethernet switch to a Synology DSM7 NAS box. I'm using robocopy in a .cmd script that I schedule nightly to backup windows volumes other than C: to the NAS. I can see the files are being backuped up OK...
  6. robocopy to nas mss

    in Windows 10 Network and Sharing
    robocopy to nas mss: Windows 10 Pro in workgroupam trying to run cmd line to move filesGet system error 58 has occurredwhat is correct way to also add password for share?net use r: \\192.168.1.111\files /user:192.168.1.111\adminafter have R:, would like to run robocopy to move files from R: to S:...
  7. robocopy to nas mss

    in Windows 10 Gaming
    robocopy to nas mss: Windows 10 Pro in workgroupam trying to run cmd line to move filesGet system error 58 has occurredwhat is correct way to also add password for share?net use r: \\192.168.1.111\files /user:192.168.1.111\adminafter have R:, would like to run robocopy to move files from R: to S:...
  8. robocopy to nas mss

    in Windows 10 Software and Apps
    robocopy to nas mss: Windows 10 Pro in workgroupam trying to run cmd line to move filesGet system error 58 has occurredwhat is correct way to also add password for share?net use r: \\192.168.1.111\files /user:192.168.1.111\adminafter have R:, would like to run robocopy to move files from R: to S:...
  9. Robocopy: copy drive root directory creates hidden backup folder

    in Windows 10 Software and Apps
    Robocopy: copy drive root directory creates hidden backup folder: Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is...
  10. Robocopy: copy drive root directory results in hidden backup folder

    in Windows 10 Network and Sharing
    Robocopy: copy drive root directory results in hidden backup folder: Windows 10 Home 21H2 19044.1526, 64-bit Robocopy 10.0.19041.1266 Run Robocopy via .bat file, Run as Administrator. Hello: When I use Robocopy to copy the root directory of a drive D: to a folder non-root directory on an external drive, the resulting destination folder is...