How do I mirror a directory?
8:54 AM
In order to mirror a directory in Windows,
you first have to scope out the right tool for the job. As such, you
should ask your self a few questions before starting your search:
- How much data do you need to replicate
- Number of directories and folders
- Number of files in the directory structure
- Size per file and size total
- What sort of environment is being used to send over the data?
- Local network copy
- From one data center to another
- Network latency if not within the same network
- SLA on how fast the data needs to be sent over
- How often does the data need to be replicated over
- One time migration
- Mirroring of the directory structure
- What protocol can you ship the data over with?
- CIFS
- FTP
- HTTP
- Do you need to maintain folder and file attributes
Tool Name
|
Description
|
Recommended for
|
Example
|
||
---|---|---|---|---|---|
copy.exe, xcopy.exe |
Built-in tool in the Windows OS |
Local folder and file copies |
Copying all folders and files give the path
excluding all directory names in the exclude.txt file and auto
confirming overwrites. You can also add a /l to do a directory list
with no copying.
NOTE - you can exclude folders if you want by specifying a file with the folders tagged as /foldername/ on a single line |
||
robocopy.exe |
Built-in tool in Windows 2008; opsbin tool for Windows 2003 machines |
Local or remote folder and file copies; can
run multiple sessions with or if Windows 2008 use the multithreaded
switch to enable more streams. No file level chunking is available
here. |
Copy contents with output going to both the
current window and into the log file c:\results.log while excluding the
C:\temp directory
|
||
richcopy.exe |
3rd party Microsoft tool that rivals robocopy.exe with a gui interface and runs multiple threads |
Local or remote folder and file copies; GUI
interface that can be used with Windows 2003 in a multithreaded
fashion. There is no file level chunking available here. |
|||
fastcopy.exe 32-bit | 64-bit |
Freeware tool with a nice gui that rivals robocopy.exe; Is not a multithreaded application |
Local or remote folder and file copies; alternative to robocopy.exe but runs as a single thread |
Sync a directory and write logging to D:\sync.log:
|
||
bitsadmin.exe |
Add-on tool in the support tools pack for
Windows 2003 and 2008 that runs multiple threads and intelligently
splits individual files for upload/download |
Local or remote file copies; Allows for
both CIFS and HTTP based copies but requires in the case of HTTP the
source to be enabled with the BITS server extensions |
Downloading from an HTTP Server:
|
0 comments