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

    • Kdenlive 26.04.2 by Razvan Serea Kdenlive is an acronym for KDE Non-Linear Video Editor. It works on GNU/Linux, Windows and BSD. Through the MLT framework, Kdenlive integrates many plugin effects for video and sound processing or creation. Furthermore Kdenlive brings a powerful titling tool, a DVD authoring (menus) solution, and can then be used as a complete studio for video creation. Kdenlive supports all of the formats supported by FFmpeg or libav (such as QuickTime, AVI, WMV, MPEG, and Flash Video, among others), and also supports 4:3 and 16:9 aspect ratios for both PAL, NTSC and various HD standards, including HDV and AVCHD. Video can also be exported to DV devices, or written to a DVD with chapters and a simple menu. Video editing features: Multi-track editing with a timeline and supports an unlimited number of video and audio tracks. A built-in title editor and tools to create, move, crop and delete video clips, audio clips, text clips and image clips. Ability to add custom effects and transitions. A wide range of effects and transitions. Audio signal processing capabilities include normalization, phase and pitch shifting, limiting, volume adjustment, reverb and equalization filters as well as others. Visual effects include options for masking, blue-screen, distortions, rotations, colour tools, blurring, obscuring and others. Configurable keyboard shortcuts and interface layouts. Rendering is done using a separate non-blocking process so it can be stopped, paused and restarted. Kdenlive also provides a script called the Kdenlive Builder Wizard (KBW) that compiles the latest developer version of the software and its main dependencies from source, to allow users to try to test new features and report problems on the bug tracker. Project files are stored in XML format. An archiving feature allows exporting a project among all assets into a single folder or compressed archive. Built-in audio mixer Kdenlive 26.04.2 changelog: Remove not needed actions from render info, fix rough size calculation for rendering. Fix clip sometimes not inserted in timeline when moving vertically in bin drag. Fix transcoding from clip properties. Cleanup render profile audio quality. Use percent based value for audio quality, and adjust the range accordingly per codec. Fixes bug #520750 Enforce even numbers for render width/height. Fixes bug #520737 Fix nightly flatpak - disable rnnoise until implemented. Fix missing initialization. Edit mediacapture.cpp. Fix document unnecessarily marked as modified on opening, triggering a backup request. Fix incorrect detection of missing and remote clips causing unwanted backups. Fixes issue #2194 Fix tests. Fix tmp files copied to wrong location when setting project folder. Fixes bug #467740 Fix color clips not selected on creation. Use QFileInfo instead of QUrl/QDir to try fixing Windows shared drives. Fixes bug #451413 Fix timeline preview incorrectly invalidated when a track with effect duration changed. Fixes bug #514541 Fix missing var. Display paths in native format in render widget. Fixes bug #520428 Simple splash: fix pressing return always triggered the same button. Minor update to simple splash. Fix unwanted clips added to timeline and cleanup. Fixes issue #2190 Minor layout improvements to welcome screen, add Quit and Open shortcuts. Fix broken welcome dialog layout in tiling compositors. (craft) Limit the number of CPU cores used during a Windows build with mingw as some .cpp files are memory intensive to build. (kde-ci) Limit the number of CPU cores used during a build as some .cpp files are memory intensive to build. (kde-ci) Cleanup old entries. Another fix for animation crash. Fix uninitialized function - crash on create animation. Another attempt to fix MacOS permissions. MacOS: fix bundle release version. Fix MacOS plist path. Fix MacOS build. Explicitely link against Qt::Core. Download: Kdenlive 26.04.2 | 128.0 MB (Open Source) Download: Standalone Executable View: Kdenlive Home page Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Here's how to watch the Xbox Games Showcase today and what to expect by Pulasthi Ariyasinghe The June games showcase week has been a packed one, with everything from major presentations like Sony and Summer Game Fest to indie-focused reveals coming in almost every day. Now, it's almost time for another big one, with Microsoft bringing its Xbox Games Showcase back later today. This is a double feature too, with a Gears of War E-Day deep dive also being attached to it. For anyone wanting to tune in online, the 2026 Xbox Games Showcase is kicking off at 10 AM PT | 1 PM ET | 6 PM BST | 7 PM CEST later today, June 7. The event will be available to watch on the official Xbox YouTube (4K 60FPS), Twitch, Facebook, Steam, Amazon Live, and other portals. Separate livestreams for American Sign Language and Audio Description will also be available. "This year marks 25 years of XBOX, and this Showcase is poised to be a true celebration, offering world premieres, new gameplay, fresh updates, and more for a swathe of projects we cannot wait to share," said Microsoft about this presentation. With a new CEO behind it that is pulling off some interesting moves, Xbox may have some surprises to reveal today. New looks at first-party games like Halo Campaign Evolved from Halo studios, Fable from Playground Games, InXile Entertainment's Clockwork Revolution, Mojang's Minecraft Dungeons II, and Call of Duty: Modern Warfare 4 from Infinity Ward are to be expected here. We may finally get to see the new Blade from Arcane Studios in action and a new Persona game from Atlus at the showcase too. Surprise announcements may also arrive from other Microsoft-owned studios like Bethesda, MachineGames, Ninja Theory, Obsidian, Rare, World's Edge, or Blizzard. Considering how every new release nowadays is staying away from November and December to avoid Grand Theft Auto VI's release, any launch dates Microsoft announces will probably skip those months as well. Once the Xbox Games Showcase ends, Microsoft will immediately kick off the Gears of War: E-Day Direct. This deep dive into the upcoming prequel from The Coalition should attach gameplay footage and perhaps a release window to the highly anticipated project.
    • People in the '50s and '60s had the same attitude, and we're still here over a half century later.
    • So after some fiddling I was able to get it to run at a pretty stable 30FPS. I'm slightly surprised about how much fiddling I had to do to get there though given what I thought was reasonable hardware: Processors: 16 × AMD Ryzen 7 7840HS w/ Radeon 780M Graphics Memory: 16 GiB of RAM Graphics Processor 1: AMD Radeon 780M Graphics Graphics Processor 2: AMD Radeon RX 7700S I think I could do it better if I use Linux rather than Windows, Windows RAM usage is stupid without stripping the system down. But once I got it working in a reasonable state, it was so awesome! I felt like a new Bond! If anyone has any advice to get things going a bit smoother FPS-wise, I'd appreciate it.
    • Something is rotten in the state of Denmark Australia
  • 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
      +Edouard
      70
    5. 5
      FloatingFatMan
      69
  • Tell a friend

    Love Neowin? Tell a friend!