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.
  • Posts

    • WebChangeMonitor 26.06 by Razvan Serea Monitors allows you to quickly check a number of web pages and tracks changes based on the content of the web pages. Allows to monitor several protocols, including HTTP and HTTPS. Allows to view and record differences. Available for Win7/10, Linux and others. WebChangeMonitor features: Allows monitoring of web pages and informs about content changes Indication of states of currently monitored items in the tool and taskbar Reporting as sound and/or email as well as log file or HTML log Several configuration / filter options Support all protocols, e.g. http, https Multi-threaded, running in the background Bulk-import and bulk-export of items (from/to CSV) to monitor Export of results to CSV file for further processing Allows running command on items states and/or showing diff (changes) of content with preferred diff-tool ...and many more! Open Source (C++, wxWidgets) Cross platform for Windows (7/10), Linux, RPi and Mac (if self-compiled) WebChangeMonitor 26.06 release notes: Release 26.06 brings mostly s but updates the underlying core infrastructure. A major compiler is used for both x86/x64 and WoA64 architectures. This also means that all core libraries are re-compiled accordingly which required some changes in the build scripts. One of the core libraries (cURL) has been updated to address vulnerabilities and a nasty linker error that was causing the need for a dedicated patch which could now be eliminated. Download: WebChangeMonitor 64-bit | Setup 64-bit | ~10.0 MB (Open Source) Download: WebChangeMonitor 32-bit | Setup 32-bit View: WebChangeMonitor Website | Other Operating Systems | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • BATorrent 3.0.4 is out.
    • yea they change their app to high-system app so you can't disable with adb or within android, you gotta get root be able to do disable this high-system app now if you have locked down boot loader you screwed. samsung started locking down their store and their account app extremely annoying, account constantly nagging you to sign in... i disable all ai core apps and especially gemini since you can't uninstall anymore. i hope some day someone will present a bill force this companies quit locking down this damn phone especially the apps...
    • It's basically the only web browser project not controlled by a major corporation.
    • You missed out, Ico and Shadow of the Colossus were beautiful epic masterpieces, I never got to play The Last Guardian sadly so can't really comment on that one.
  • Recent Achievements

    • Dedicated
      Mark Spruce earned a badge
      Dedicated
    • Collaborator
      conkir earned a badge
      Collaborator
    • Rising Star
      olavinto went up a rank
      Rising Star
    • One Month Later
      lamborghiniv10 earned a badge
      One Month Later
    • Week One Done
      lamborghiniv10 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      482
    2. 2
      PsYcHoKiLLa
      256
    3. 3
      Steven P.
      74
    4. 4
      Skyfrog
      70
    5. 5
      +Edouard
      69
  • Tell a friend

    Love Neowin? Tell a friend!