Preserve File Attributes, Creation Date, When Copying - Win 7, Zip Files

OS: Microsoft Windows 7 64-bit

Since I cannot find a file copy utility that does this, I am resorting to using Zip files. I have tried this using WinZip, 7Zip, and WinRAR, but the Folder date attributes are not being preserved.

QUESTION
Using 7-zip, RAR, or other zip utility (free or paid), please tell me how to preserve the original file and Folder attributes when copying files to a new drive over the local network.
WizeOwlAsked:
Who is Participating?
 
-James-Connect With a Mentor Commented:
Have you tried using Robocopy?  I had to move files between two 2008 R2 fileservers recently and used the following command.  Note that the options are important to preserve dates and attributes.  I'm pretty certain that Win7 supports the same options in robocopy but test with a small directory first to ensure that everything is working fine. Go to a command line ... start button - run box and type cmd.

Once at a command line type the command below (If you're going to test enter the command into a text file and copy / paste it into the command line so that you don't have to type it each time.)

robocopy source destination /E /ZB /DCOPY:T /COPYALL /R:5 /W:10 /B /V /TEE /LOG:robocopy.log

Command copies everything from source (specified as drive path ... eg. c:\Test) to a destination (if its another server use \\Servername\Fileshare) and make sure the source system has write privs to the destination.  It writes the status of the copy to the console and also to a log file.

For a full listing of options google Robocopy or visit
http://ss64.com/nt/robocopy.html

Hope this helps.
0
 
BiniekCommented:
I suggest to You to try the tool

SafeCopy

http://www.elwinsoft.com/safecopy-free.html


and you can lok into this solution, it can help You.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_26876160.html
0
 
WizeOwlAuthor Commented:
SOLUTION: RoboCopy (as described above)
Comes with Windows 7
Use cmd shell

Command Line :  robocopy <source> <destination> [options]

EXAMPLE :
robocopy "G:\F_Drive_Archive\_Marketing Tools" "H:\F_Drive_Archive\_Marketing Tools" /V /R:3 /W:1 /S /dcopy:t /XO /LOG:Robocopy_2015-08-10.log /NP /L

      Source Options
                        /S                         : Copy Subfolders, exclude Empty
                        /E                         : Copy Subfolders, including Empty Subfolders
                        /COPY:flags       : default is /COPY:DAT
                                    (flags       : D=Data, A=Attributes, T=Timestamps - for files
                                                  S=Security=NTFS ACLs, O=Owner info, U=aUditing info)
                        /COPYALL             : /COPY:DATSOU (Takes Longer, don't use)
                        /DCOPY:t             : Directory - Copy Timestamps
                        /R:n                   : Number of Retries on failed copies - default is 1 million.
                        /W:n                   : Wait time between retries - default is 30 seconds.
                        /REG                   : Save /R:n and /W:n in the Registry as default settings.
                        /XO                    : Exclude Older - If Destination file exists, same date or newer, don't overwrite
                        
      Destination Options
                        /MIR       : MIRror a directory tree - equivalent to /PURGE /E (Use /XO instead of Purge)
                        /PURGE       : Delete dest files/folders that no longer exist in source
                        
      Log File Options
                        /L                   : List only - don’t copy, timestamp, or delete any files
                        /NP             : No Progress - don’t display % copied
                        /LOG:file       : Output status to LOG file (overwrite existing log)
                        /LOG+:file       : Output status to LOG file (append to existing log)
                        /TS             : Include Source file Time Stamps in the output
                        /NFL             : No File List - don’t log file names
                        /V                   : Produce Verbose output log, showing skipped files
/B (backup mode) will allow Robocopy to override file and folder permission settings (ACLs).

e.g., ERROR 5 (0x00000005) Changing File Attributes ... Access is denied
This error usually means that File/Folder permissions or Share permissions on either the source or the destination are preventing the copy. Either change the permissions or run the command in backup mode with /B.

See: http://ss64.com/nt/robocopy.html

See also this thread: http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_28277931.html
0
All Courses

From novice to tech pro — start learning today.