Jerry L
asked on
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
SOLUTION: RoboCopy (as described above)
Comes with Windows 7
Use cmd shell
Command Line : robocopy <source> <destination> [options]
EXAMPLE :
robocopy "G:\F_Drive_Archive\_Marke ting Tools" "H:\F_Drive_Archive\_Marke ting Tools" /V /R:3 /W:1 /S /dcopy:t /XO /LOG:Robocopy_2015-08-10.l og /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: https://www.experts-exchange.com/questions/28277931/xcopy-alters-the-creation-date-of-destination-files-copied-but-not-'copy'.html
Comes with Windows 7
Use cmd shell
Command Line : robocopy <source> <destination> [options]
EXAMPLE :
robocopy "G:\F_Drive_Archive\_Marke
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: https://www.experts-exchange.com/questions/28277931/xcopy-alters-the-creation-date-of-destination-files-copied-but-not-'copy'.html
SafeCopy
http://www.elwinsoft.com/safecopy-free.html
and you can lok into this solution, it can help You.
https://www.experts-exchange.com/questions/26876160/how-to-retain-directory-timestamp-when-copying-between-drives.html