Friday, 20 November 2020

Fastest Data Copy Command in Windows

 

Fastest Data Copy Command in Windows



Tool Name: - Robocopy

 

Syntax

Robocopy <source> <Destination> <File ><Options>

Example command:

Robocopy d:\test1 d:\test2 /MIR /SEC /E




Robocopy 'c:\test1' 'd:\test2' /S /E /MT:32 /NFL /NDL /NJH /NJS






Copy Options

Options           Description

/mir                  Mirrors a directory tree (equivalent to /e plus /purge). Using this option with the /e option and a destination directory overwrites the destination directory security settings.

/sec                 Copies files with security (equivalent to /copy:DATS).

/e                     Copies subdirectories. This option automatically includes empty directories.

/s                     Copies subdirectories. This option automatically excludes empty directories.

/z                     Copies files in restartable mode.

/b                     Copies files in Backup mode.

/zb                   Uses restartable mode. If access is denied, this option uses Backup mode.

/purge             Deletes destination files and directories that no longer exist in the source. Using this option with the /e option and a destination directory, allows the destination directory security settings to not be overwritten.

/MT                      Robocopy copies files and folders in multi-threaded operation by default, with 8 threads in one go. If you want, you can increase its value using /MT switch.

No comments:

Post a Comment