Skip to content

Instantly share code, notes, and snippets.

@FurkanGozukara
Created April 4, 2023 17:00
Show Gist options
  • Save FurkanGozukara/be3d7c869fcb2cd5a0e9250a6ff12d3b to your computer and use it in GitHub Desktop.
Save FurkanGozukara/be3d7c869fcb2cd5a0e9250a6ff12d3b to your computer and use it in GitHub Desktop.
How to copy entire disk into another disk via Windows utility RoboCopy command
channel url : https://www.youtube.com/@SECourses
video tutorial : Seagate Exos ST8000NM000A Review - Performance Tests of SanDisk Ultra 3D NVMe & KINGSTON SNV2S2000G
https://youtu.be/xc9-4lYfhzk
robocopy D:\ E:\ /Copyall /S /E /dcopy:T /b /R:3 /W:1 /Log:C:\robocopy-log3.txt /NP
This command is using the Robocopy (Robust File Copy) utility to copy all files and directories from the source directory "D:" to the destination directory "E:" while preserving all file attributes and timestamps. Here's a breakdown of the different options used in this command:
robocopy: This is the command to invoke the Robocopy utility.
D:\: This is the source directory from which files and directories will be copied.
E:\: This is the destination directory where files and directories will be copied.
/Copyall: This option copies all file information, including data, attributes, timestamps, security, and owner information.
/S: This option copies subdirectories, but not empty ones.
/E: This option copies subdirectories, including empty ones.
/dcopy:T: This option copies the directory timestamps, but not the file timestamps.
/b: This option copies files in Backup mode. This means that Robocopy will bypass file security restrictions and copy files that would otherwise be skipped due to lack of permissions.
/R:3: This option sets the number of times Robocopy will retry a failed copy operation. In this case, Robocopy will retry three times before giving up.
/W:1: This option sets the time, in seconds, that Robocopy will wait between retries.
/Log:C:\robocopy-log2.txt: This option specifies the path and filename of the log file that will be created to track the progress and results of the copy operation.
/NP: This option prevents the progress of the copy operation from being displayed in the command prompt. This is useful when running the command in a batch file or script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment