-1

And the following are the extra requirements.

  1. Duplicate all the attributes, for example, the encryption and compression, as well.
  2. Security settings
  3. (Optionally copy Sharing)
  • dfs-r OR robocopy.exe/compact.exe/cipher.exe script OR powershell script? – ErikE Oct 2 '15 at 17:41
  • These utilities don't copy attributes and permissions? – sjzls Oct 2 '15 at 17:43
  • Is cloning the underlying disk an option? – Per von Zweigbergk Oct 2 '15 at 18:03
  • 2
    Robocopy can copy attributes and security. - technet.microsoft.com/en-us/library/cc733145.aspx – joeqwerty Oct 2 '15 at 18:11
  • 4
    Why not write the whole scenario complete with relevant details and all requirements into the question, you won't have to keep expanding it and we can help you with better answers and suggestions from the get go. – ErikE Oct 2 '15 at 18:59
1

As @joeqwerty pointed out, you can use Robocopy

robocopy [source] [destination] /COPYALL /DCOPY:T /MIR

/COPYALL will give you all your attributes.

/MIR will give you your directory structure.

| improve this answer | |
  • The command got error of ERROR : Invalid Parameter #4 : "/DCOPY:T". – sjzls Oct 5 '15 at 21:45
  • /xf * is still needed to avoid to copy files. – sjzls Oct 5 '15 at 21:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.