Solved

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

Posted on 2014-02-04
3
2,353 Views
Last Modified: 2015-08-11
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.
0
Comment
Question by:WizeOwl
3 Comments
 
LVL 6

Expert Comment

by:Biniek
ID: 39833907
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
 

Accepted Solution

by:
-James- earned 405 total points
ID: 39833937
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
 

Author Comment

by:WizeOwl
ID: 39838172
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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Lets start to have a small explanation what is VAAI(vStorage API for Array Integration ) and what are the benefits using it. VAAI is an API framework in VMware that enable some Storage tasks. It first presented in ESXi 4.1, but only after 5.x sup…
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now