Copy to WS 2016 with preserving permissions and timestamps


Recommended Posts

I need to copy data and move network shares from windows Server 2012 to Windows Server 2016. I need to copy all the types of permissions to the new server and to preserve the timestamps as it .

Is there is a way to copy files while it in-use ?

Note: I am using Robocopy 

  • k.jonathan changed the title to Copy to WS 2016 with preserving permissions and timestamps
On 12/08/2021 at 11:17, k.jonathan said:

I need to copy data and move network shares from windows Server 2012 to Windows Server 2016. I need to copy all the types of permissions to the new server and to preserve the timestamps as it .

Is there is a way to copy files while it in-use ?

Note: I am using Robocopy 

This appears to have good advice with examples https://community.spiceworks.com/topic/278298-move-shared-folders-and-retain-file-and-share-permissions-with-robocopy

 

From the link:

 

@echo off

SET SORC="\\server\share"
SET DEST="Z:\WHERE YOU WANT FILES TO GO"
SET LOG="Z:\THE LOG FILE.log"

ROBOCOPY %SORC% %DEST% /MIR /SEC /R:1 /W:1 /NP /LOG:%LOG%
@if errorlevel 16 echo ***ERROR *** & goto END
@if errorlevel 8  echo **FAILED COPY ** & goto END
@if errorlevel 4  echo *MISMATCHES *      & goto END
@if errorlevel 2  echo EXTRA FILES       & goto END
@if errorlevel 1  echo --Copy Successful--  & goto END
@if errorlevel 0  echo --Copy Successful--  & goto END
goto END

:END

pause

 

  • the /SEC switch retains NTFS perms.
  • SORC & DEST can be either DRIVE:\PATH or \\SERVER\SHARE\PATH 
  • I would recommend that you do not MOVE the data but copy it, just in case the sky falls in and you need to go back.
  • Like 3

If you want a GUI tool for managing permissions, try the freeware NTFS Permissions Tools: https://m.majorgeeks.com/files/details/ntfs_permissions_tools.html That way you can use some copy tool which copies in-use files using shadow copy or some other technology and then copy-paste the permissions using NPT. It can also backup and restore permissions to a file from a button on the status bar.

Edited by MS Bob 10

I wish I had thought about this too, as I have moved content between clean installs and old > new harddisks and computer > server (or NAS) and lost the timestamps.

 

Some of the media that I have moved between PCs from the late 90s to the present have timestamps of the most recent PC build.. annoying.

 

SNAG-0003.png

The video should also be dated 2008.

  • Like 2
On 12/08/2021 at 12:27, Steven P. said:

I wish I had thought about this too, as I have moved content between clean installs and old > new harddisks and computer > server (or NAS) and lost the timestamps.

 

Some of the media that I have moved between PCs from the late 90s to the present have timestamps of the most recent PC build.. annoying.

 

@Steven P.   ,you are right , this annoying  and the good thing is that I found some helpful tips on the link you mentioned from Spiceworks ,  I think I will follow and try some steps 

On 12/08/2021 at 12:19, MS Bob 10 said:

If you want a GUI tool for managing permissions, try the freeware NTFS Permissions Tools: https://m.majorgeeks.com/files/details/ntfs_permissions_tools.html That way you can use some copy tool which copies in-use files using shadow copy or some other technology and then copy-paste the permissions using NPT. It can also backup and restore permissions to a file from a button on the status bar.

@MS Bob 10  ,This is another helpful direction to use a GUI tool , some tools that can excute all my mentioned request are in my consideration like Teracopy and Gs Richcopy360 but both are commercial and our main aim it to do it free , so I think I will search and try the tools you mention , I think it is free , isn't it ?

@MS Bob 10 Although NTFS Permissions Tools works fine, the other  requests still needed, so we did a full search for Teracopy, Gs Richcopy360, and some other similar tools and we finally found all that we need in Gs Richcopy360 with low cost ,  it copied all the permissions, timestamps, open files and we have now capability to schedule jobs 

Thanks @MS Bob 10 & @Steven P. , My problem solved 

  • Like 3
  • 3 months later...
On 19/08/2021 at 14:46, k.jonathan said:

we finally found all that we need in Gs Richcopy360 with low cost ,  it copied all the permissions, timestamps, open files and we have now capability to schedule jobs 

we have a project starts next week , to transfer our shares to Isilon and I am in my way to try with Teracopy , my question is

can GS syncs our shares to Isilon with keeping the permissions ? to keep in my consideration too

  • 11 months later...

I am so sorry for replying late, my main issue was to move network shares from windows Server 2012 to Windows Server 2016 with preserving permissions and timestamps and Gs Richcopy360 is excellent in this case.

For Isilon, I have no experience with it, but I have just done a search to you, and I found in the dell forums that Gs Richcopy360 is an accepted tool there to copy all the permission types to Isilon.
Maybe you would contact them to be sure

When migrating data I simply do the following

robocopy /d:copyt /mir \\sourcedir d:\destdir

that will preserve timestamps on files, directories and pretty sure NTFS permissions as well.
Robocopy has been built into Windows for a long time, no need for 3rd party utilities.

edit: it is /dcopy:t

On 06/11/2022 at 16:12, stumper66 said:

When migrating data I simply do the following

robocopy /d:copyt /mir \\sourcedir d:\destdir

that will preserve timestamps on files, directories and pretty sure NTFS permissions as well.
Robocopy has been built into Windows for a long time, no need for 3rd party utilities.

edit: it is /dcopy:t

This is what MS documents said but when you come to the really applying by using these switches to keep permission and timestamps while moving from windows server to another, I think you will face a headache of fail.please search on superusers and spiceworks forums, you will get why I was searching for an effective solution here 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.