Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Is there a tool or command to copy / move, file and folders and maintain all their attributes?

Posted on 2008-06-11
8
180 Views
Last Modified: 2010-04-18
I am reconfiguring are VM virtual server and San architecture and need reconfigure all attached drives. Currently all my attached data drives are setup in their own volumes and are attached using Microsoft iSCSI initiator.  Im changing that up to use an HBA and need recreate all the data drives. I can use Netbackup to restore the data to the new drives but this will take some time and put me out of my allotted down time. Long question short I need a tool and or command that will copy the data from one location to another while maintaining all file/ folder attributes.  This includes owner, data, time, shares, and everything else I am forgetting.  
0
Comment
Question by:RepublicFinancial
  • 4
  • 3
8 Comments
 
LVL 6

Expert Comment

by:JapyDooge
ID: 21760122
XCOPY /K /E
/E           Copies directories and subdirectories, including empty ones.
             Same as /S /E. May be used to modify /T.
/K           Copies attributes. Normal Xcopy will reset read-only attributes.

Open in new window

0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 21760375
We use robocopy -

http://en.wikipedia.org/wiki/Robocopy

Take a look and see what you think! :)
0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 21760396
Sorry, I meant to add that I would recommend it, as it has a fair bit more functionality than the windows copy and xcopy commands...

But it may be more than you need? Only you will know!

Pete
0
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 

Author Comment

by:RepublicFinancial
ID: 21762485
Xcopy and Robocopy get me halfway there.  I need to be able to maintain the attributes of the Folders too.  Is there a command in either of those tools that will keep the folders attirbutes.  IE Date modified?
0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 21763695
Did you read the article?

Quote - "Robocopy is notable for capabilities above and beyond the built-in Windows copy and xcopy commands, including the following:

Ability to correctly copy attributes, owner information, alternate data streams, auditing information, and timestamps by default, without the need for numerous oft-forgotten command line switches."

Or am I misunderstanding what it is you need? :)

Pete
0
 

Author Comment

by:RepublicFinancial
ID: 21763811
Pete,
I might be missing a something!? there might be a switch I have not used.  Both products keep the date stamps and all the attributes at the file level but not at the folder level.  All the folders have a date stamp from the time and day that I run the command.  
0
 
LVL 19

Expert Comment

by:PeteJThomas
ID: 21767081
Hmmm... Did you try it with the /copyall switch? I can't find anything that specifies that it doesn't do this for folders, but /copyall MIGHT help?

Also, there's this in the link I sent -

"Known Flaws

Robocopy will not copy folder timestamps from the source folder. Instead, it will use the current date and time when creating new folders. To match the timestamps to the original, another file utility must be used. This flaw has been addressed in the Windows Vista version of Robocopy (switch /DCOPY:T)."

Do you have Vista installed anywhere?

Give it a try if you haven't, and let me know! :)

Pete
0
 

Accepted Solution

by:
RepublicFinancial earned 0 total points
ID: 21813085
To get what I needed I purchased an application.  Script Logic Secure Copy.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

828 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