Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Robocopy Helps.. copying data skip NTFS permission  (Read 14339 times)

0 Members and 1 Guest are viewing this topic.

ccs1981

  • Guest
Robocopy Helps.. copying data skip NTFS permission
« on: March 17, 2011, 07:02:13 AM »
Dear all,

i am facing a problem to write the coding robocopy.
i want do a fully backup from 1 storage server to another server. however i want to skip copying NTFS permission for every sharing folder.
it is because, i share the folder with local group user.

i merge the backup server as Z drive;
below is my robocopy coding:

robocopy D:\HV_Design z:\HV_Design /copyall /E /R:O /w:5 /r:5 /PURGE

i use copy/all, therefore the NTFS permission also copy together. how to skip the folder security permission? i only want to backup the folder content only.

please help. appreciate to get your reply soon.

thanks.

Best Regards,

Fleexy



    Intermediate

  • OW NEXT TIME I SHOULD TURN IT OFF BEFORE SERVICING
  • Thanked: 2
    • Yes
    • Yes
  • Experience: Experienced
  • OS: Windows XP
Re: Robocopy Helps.. copying data skip NTFS permission
« Reply #1 on: March 21, 2011, 06:33:19 PM »
I recommend XCOPY instead of this "robocopy"...

Code: [Select]
xcopy D:\HV_Design\*.* Z:\HV_Design /S /T /E /Y
I love .NET!

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: Robocopy Helps.. copying data skip NTFS permission
« Reply #2 on: March 21, 2011, 06:40:04 PM »
I recommend XCOPY instead of this "robocopy"...
ROBOCOPY is an enhanced XCOPY that comes with Vista and windows 7.


For XCopy,  /S,/T, and /E are mutually exclusive.


As for ROBOCOPY, it doesn't copy security permissions for any files (including folders" by default... /copyall however specifies you do want to copy all that.
From ROBOCOPY /?:
Code: [Select]
  /COPY:copyflag[s] :: what to COPY for files (default is /COPY:DAT).
                       (copyflags : D=Data, A=Attributes, T=Timestamps).
                       (S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
I was trying to dereference Null Pointers before it was cool.