MSFN Forum: robocopy hides my directory as a "system" dir - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

robocopy hides my directory as a "system" dir Rate Topic: -----

#1 User is offline   graysky 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 12-February 04

Posted 28 November 2008 - 08:30 PM

I'm using robocopy to backup some partitions using the following commandline switches. When the backup finishes, the destination directory gets flagged as a system file such that I have to switch my folder options to "show protected system files" in order to see it. Can someone explain why this is happening and how I can re-flag the dir as a standard dir, not a protected system file?

robocopy d:\ H:\drive_D\ /s /mir /xd "d:\games" /dcopy:t /z /r:1 /w:1

This post has been edited by graysky: 28 November 2008 - 08:30 PM



#2 User is offline   Nerwin 

  • Geek.
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,820
  • Joined: 31-May 05
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 28 November 2008 - 08:41 PM

I never used this program before.

Maybe this could help?

http://forums.overcl....php?p=12824596

#3 User is offline   graysky 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 12-February 04

Posted 28 December 2008 - 05:54 AM

View PostNerwin, on Nov 28 2008, 10:41 PM, said:

I never used this program before.

Maybe this could help?

http://forums.overcl....php?p=12824596


Thanks for that. Guess copying the root of a filesystem is bad news. I just adjusted my batch file to have a single entry for each folder as a result. This way I don't have to mess with setting attribs after the copy.

example:
rem d
robocopy "d:\dir1" "H:\drive_d\dir1" /s /mir /dcopy:t /z /r:1 /w:1
robocopy "d:\dir2" "H:\drive_d\dir2" /s /mir /dcopy:t /z /r:1 /w:1
robocopy "d:\dir3" "H:\drive_d\dir3" /s /mir /dcopy:t /z /r:1 /w:1


The first dir is the source
The 2nd dir is where the source is getting backed-up

/s is for subdirectories (recursive)
/mir is for mirroring which will delete files on the backup end if the source changed since you backed them up - WARNING, read the manual before you use this or else you could LOSE data!
/dcopy:t switch keeps the directory's original date/time stamp. Read this wikipedia article for more.
/z is for resuming (again see the wikipedia article for notes on it)
/r:1 /w:1 sets the retry to 1 sec and 1 time (for example if it can't copy an in use file, it'll only cost you 1 sec and 1 try)

This post has been edited by graysky: 28 December 2008 - 07:40 AM


#4 User is offline   Nerwin 

  • Geek.
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,820
  • Joined: 31-May 05
  • OS:Windows 7 x86
  • Country: Country Flag

Posted 28 December 2008 - 08:57 AM

Cool, So must be everything is working fine now :D

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy