The valid values for this option are:Ĭreates a directory tree and zero-length files only.Ĭreates destination files by using 8.3 character-length FAT file names only. Removes the specified attributes from copied files. Moves files and directories, and deletes them from the source after they're copied.Īdds the specified attributes to copied files. Moves files, and deletes them from the source after they're copied. Using this option with the /e option and a destination directory, overwrites the destination directory security settings. Mirrors a directory tree (equivalent to /e plus /purge). Using this option with the /e option and a destination directory, allows the destination directory security settings to not be overwritten. The default value for this option is DA (data and attributes).Ĭopies files with security (equivalent to /copy:DATS).Ĭopies all file information (equivalent to /copy:DATSOU).Ĭopies no file information (useful with /purge).įixes file security on all files, even skipped ones.įixes file times on all files, even skipped ones.ĭeletes destination files and directories that no longer exist in the source. The X flag is ignored if either /B or /ZB is used. The default value for the /COPY option is DAT (data, attributes, and time stamps). If file access is denied, switches to backup mode.Ĭopies using unbuffered I/O (recommended for large files).Ĭopies all encrypted files in EFS RAW mode. In backup mode, robocopy overrides file and folder permission settings (ACLs), which might otherwise block access.Ĭopies files in restartable mode. In restartable mode, should a file copy be interrupted, robocopy can pick up where it left off rather than recopying the entire file.Ĭopies files in backup mode. This option automatically includes empty directories.Ĭopies only the top n levels of the source directory tree.Ĭopies files in restartable mode. This option automatically excludes empty directories.Ĭopies subdirectories. Specifies the options to use with the robocopy command, including copy, file, retry, logging, and job options.Ĭopies subdirectories. If you don't specify this parameter, *.* is used as the default value. Wildcard characters ( * or ?) are supported. Specifies the file or files to be copied. Specifies the path to the destination directory. Specifies the path to the source directory. If any data is copied from the root of a device, the destination directory will adopt the "hidden" attribute during the copy process.