Forrest logo
back to the robocopy tool

robocopy:tldr:7c99c

robocopy: Allow resuming if network connection is lost and limit retries to 5 and wait time to 15 sec.
$ robocopy ${path\to\source_directory} ${path\to\destination_directory} /Z /R:5 /W:15
try on your machine

The command you provided is using Robocopy, which is a command-line tool in Windows used for file and folder copying.

Here is a breakdown of the command and its options:

  • robocopy is the command itself, indicating that we want to use the Robocopy tool.
  • ${path\to\source_directory} is the path to the source directory that you want to copy.
  • ${path\to\destination_directory} is the path to the destination directory where you want to copy the files.
  • /Z is an option that indicates to perform a restartable mode. If the connection gets interrupted, it will resume the copy from where it left off instead of starting from the beginning.
  • /R:5 is an option that sets the number of retry attempts on failed copies to 5. If a copy fails, Robocopy will retry it 5 times.
  • /W:15 is an option that sets the wait time between retries to 15 seconds. If a copy fails and Robocopy retries, it will wait for 15 seconds before attempting the next retry.

So, in summary, this command is using Robocopy to copy files and folders from the source directory to the destination directory. It will perform the copy in a restartable mode, with 5 retry attempts and a 15-second wait time between retries.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the robocopy tool