Link to home
Start Free TrialLog in
Avatar of Decarn
Decarn

asked on

How to check file and folder permission after server migration

Hi Folks,

We are migrating our file server from Microsoft server2000 to EMC DART server. Although EMC DART server is a customized linux OS, we can still access to files in the new file server via mapping in the windows explorer.

As I have thousands of files, folders and user permissions, is there a tool or method that I can use to verify that all the files and permission have been copied over successfully?

We are currently using showacls.exe and diruse.exe but it is too manual and time consuming. Any ideas?
Avatar of MidnightOne
MidnightOne
Flag of United States of America image

Head to http://www.somarsoft.com and grab a copy of DumpACL. Run the "Dump permissions for all shared directories" against both servers and compare the lists by eyeball.
Avatar of Decarn
Decarn

ASKER

Hi Midnight,

Thanks for the suggestion. Although I will prefer to use a Microsoft tool.
Avatar of Decarn

ASKER

Hi Folks,

Is there any tool to compare that the files are exactly the same after migration? I am looking at BeyondCompare but it is not a free tool.
Avatar of bbao
as your migration destination is a Linux host, i am not sure it does support the same kind of permissions as that NTFS permissions on your old W2K server.

however, you can use the following utility to copy and compare the source and destination files.

http://www.xxcopy.com/

the utility not only does common COPY jobs, but also provides more functionalities for backup and archive. as it works on specific directories and their subdirectories, so you may invoke just one command to copy and verify all files.

it runs on command-line only on Windows, and may work on networked drives which are mapped from your Linux box.

i list all backup and archive related switches of xxcopy in the code area.

hope it helps,
bbao
  -----  The following switches are useful for backup and archive -----

        /BI  Backs up incrementally, different (by time/size) files only.
        /BA  Backs up incrementally (absolute) (more complete version of /BI)
        /BB  Backs up brand new files only (does not overwrite existing ones).
        /BN  Backs up newer files only      (includes brand new files).
        /Bo  Backs up older files only      (includes brand new files).
        /BX  Backs up different-date files  (includes brand new files).
        /BZ  Same as /BZX.
       /BZE  Backs up equal-size  files  (includes brand new files).
       /BZL  Backs up larger-size files  (includes brand new files).
       /BZS  Backs up smaller-size files (includes brand new files).
       /BZX  Backs up different-size files  (includes brand new files).
        /BE  Backs up exactly the same files(includes brand new files).
        /BS  Selects exactly the same files (this is useful with /RS).
        /BU  Standard Backup switch (same as /KS/H/E/R/Q/Y/BI/ZE/oD0).
        /B0  Undo any of /BI, /BB, /BN, /Bo, /BX, or /BZ switches.
         /U  Updates the files that already exist in destination.

             Note: A "brand new" file refers to a file which exists in the
                   source directory but not in the destination directory
                   (Micrososoft's Robocopy call it a "lonely file").

       /CD0  Does not compare file data byte-by-byte (default).
       /CDM  Selects files whose data match in byte-by-byte comparison.
       /CDU  Selects files whose data unmatch and brand new files.
       /CDX  selects files whose data match byte-by-byte and brand new files.

        /SP  Spans the copy job over multiple destination (new volume).

             Note: /SP cannot be used with switches which reference the
                   destination for file selection --- that is, the /Bxx
                   (backup) switches, and /U will be disabled by /SP.
                   That is, the spanning of the destination volume by /SP
                   assumes the backup operation is a full backup without
                   referencing the files already on the destination.

Open in new window

Avatar of Decarn

ASKER

Hi bbao,

Thanks for your comments. The file permissions will be the same even after copied to the linux system because it will still be using NTFS file system. The copying will be done by the vendor.

I will use the dumpACL as suggested by MidnightOne to check the permissions. What I need is another tool to check that the number of files, folders and the content is correct. E.g. compare C drive in server A to C drive in server B to ensure that everything is the same.
ASKER CERTIFIED SOLUTION
Avatar of bbao
bbao
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Decarn

ASKER

Was looking for an alternative to xcopy  but thanks for all your solutions.
just a reminder mate, the solution is XXCOPY, not the built-in XCOPY. there is one more X there... :)