robocopy复制文件

Robocopy or Robust File and Folder Copy application is very popular amongst Windows system administrators. Robocopy will copy the local or given file to the remote or destination location.

Robocopy或“可靠的文件和文件夹复制”应用程序在Windows系统管理员中非常流行。 Robocopy会将本地或给定文件复制到远程或目标位置。

robocopy功能 (robocopy Features)

The command robocopy provides very useful features for files copying over network. Below we will list some of them.

robocopy命令为通过网络复制文件提供了非常有用的功能。 下面我们将列出其中一些。

Resume Interrupted Copy when the network or remote host is down during a copy the copy operation can resume where it left.

Resume Interrupted Copy当网络或远程主机在复制过程中关闭时,复制操作可以从其离开的地方继续进行。

Preserve File Attributes and timestamp of the copied file where owner and audit information is also preserved.

Preserve File Attributes and timestamp复制文件的Preserve File Attributes and timestamp ,其中还保留所有者和审核信息。

Ability To Update Copied File Attributes and Timestamps of the copied files and folders which will set to the latest date and time.

Ability To Update Copied File Attributes and Timestamps已复制文件和文件夹的Ability To Update Copied File Attributes and Timestamps ,这些Ability To Update Copied File Attributes and Timestamps将设置为最新日期和时间。

Administrator Owned File Copy is supported with the option /B.

/B选项支持Administrator Owned File Copy

Mirror Mode is provided to sync or mirror given files and folder or directory updated files will be updated and deleted files will be deleted on the target.

提供了“ Mirror Mode以同步或镜像给定的文件,并且将更新目标上的文件夹或目录更新的文件,并删除已删除的文件。

Skip Allready Existing Files by checking size and timestamp information and comparing it to the source and target.

通过检查大小和时间戳信息并将其与源和目标进行比较,从而Skip Allready Existing Files

Progress Bar will shown current copy operation graphically.

Progress Bar将以图形方式显示当前的复制操作。

Multi-threaded copying which will allow copy, mirror multiple files and directories at the same time which will decrease the complete copy operation time.

Multi-threaded copying允许同时复制,镜像多个文件和目录,这将减少完整的复制操作时间。

robocopy命令语法 (robocopy Command Syntax)

The general syntax of robocopy command is like below.

robocopy命令的一般语法如下所示。

robocopy SOURCE DESTINATION FILE OPTIONS
  • SOURCE is the source file or directory we want to copySOURCE是我们要复制的源文件或目录
  • DESTINATION is the destination file or directory we want to copyDESTINATION是我们要复制的目标文件或目录
  • OPTIONS are different features or behaviors we want to use like recursive, verbose, extension filter, etc.选项是我们要使用的不同功能或行为,例如递归,详细,扩展过滤器等。

复制指定的文件夹 (Copy Specified Folder)

The most basic operation with robocopy is copying sources folders to the destination. In this example, we will copy the directory named mytest to the destination folder yourtest

robocopy最基本操作是将源文件夹复制到目标位置。 在此示例中,我们将名为mytest的目录复制到目标文件夹yourtest

> robocopy mytest yourtest

Copy Folder
复制资料夹

After copy operation, some statistics are provided by robocopy

复制操作后, robocopy提供了一些统计信息

  • Start shows start time of copy operation

    Start显示复印操作的开始时间

  • Source shows source directory

    Source显示源目录

  • Dest shows destination directory

    Dest显示目的地目录

  • Files shows file filter

    Files显示文件过滤器

  • Options shows given options

    Options显示给定的选项

  • Total shows total files and folders count

    Total显示文件和文件夹总数

  • Copied shows copied files and folders count

    Copied显示复制的文件和文件夹数

  • Skipped shows not copied files and folders

    Skipped显示未复制的文件和文件夹

.u846dc29679107132fac575f4827bf362 , .u846dc29679107132fac575f4827bf362 .postImageUrl , .u846dc29679107132fac575f4827bf362 .centered-text-area { min-height: 80px; position: relative; } .u846dc29679107132fac575f4827bf362 , .u846dc29679107132fac575f4827bf362:hover , .u846dc29679107132fac575f4827bf362:visited , .u846dc29679107132fac575f4827bf362:active { border:0!important; } .u846dc29679107132fac575f4827bf362 .clearfix:after { content: ""; display: table; clear: both; } .u846dc29679107132fac575f4827bf362 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u846dc29679107132fac575f4827bf362:active , .u846dc29679107132fac575f4827bf362:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u846dc29679107132fac575f4827bf362 .centered-text-area { width: 100%; position: relative; } .u846dc29679107132fac575f4827bf362 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u846dc29679107132fac575f4827bf362 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u846dc29679107132fac575f4827bf362 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u846dc29679107132fac575f4827bf362:hover .ctaButton { background-color: #E67E22!important; } .u846dc29679107132fac575f4827bf362 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u846dc29679107132fac575f4827bf362 .u846dc29679107132fac575f4827bf362-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u846dc29679107132fac575f4827bf362:after { content: ""; display: block; clear: both; }

LEARN MORE  About Plugins Of Firefox

.u846dc29679107132fac575f4827bf362 , .u846dc29679107132fac575f4827bf362 .postImageUrl , .u846dc29679107132fac575f4827bf362 .centered-text-area { min-height: 80px; position: relative; } .u846dc29679107132fac575f4827bf362 , .u846dc29679107132fac575f4827bf362:hover , .u846dc29679107132fac575f4827bf362:visited , .u846dc29679107132fac575f4827bf362:active { border:0!important; } .u846dc29679107132fac575f4827bf362 .clearfix:after { content: ""; display: table; clear: both; } .u846dc29679107132fac575f4827bf362 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u846dc29679107132fac575f4827bf362:active , .u846dc29679107132fac575f4827bf362:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u846dc29679107132fac575f4827bf362 .centered-text-area { width: 100%; position: relative; } .u846dc29679107132fac575f4827bf362 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u846dc29679107132fac575f4827bf362 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u846dc29679107132fac575f4827bf362 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u846dc29679107132fac575f4827bf362:hover .ctaButton { background-color: #E67E22!important; } .u846dc29679107132fac575f4827bf362 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u846dc29679107132fac575f4827bf362 .u846dc29679107132fac575f4827bf362-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u846dc29679107132fac575f4827bf362:after { content: ""; display: block; clear: both; }

了解有关Firefox插件的更多信息

从本地系统复制到远程系统(Copy From Local System To Remote System)

We can also copy a file and folders to the remote system. We will provide a remote system hostname or IP address before the destination path. We can use \\BACKUPSERVER or \\10.5.2.30 to specify the remote system.

我们还可以将文件和文件夹复制到远程系统。 我们将在目标路径之前提供一个远程系统主机名或IP地址。 我们可以使用\\ BACKUPSERVER或\\ 10.5.2.30来指定远程系统。

In this example, we will copy the source directory named mytest to the remote system with IP address 192.168.122.46 under the path Users\ismail with the named yourtest .

在此示例中,我们将名为mytest的源目录复制到IP地址为192.168.122.46的远程系统上,并位于路径Users\ismail ,且名为yourtest

> robocopy mytest \\192.168.122.46\Users\ismail\yourtest

Copy To Remote System
复制到远程系统

仅复制给定的文件类型或扩展名(Copy Only Given File Types or Extensions)

robocopy provides some filtering features while copying files. We can specify the filenames and extensions we want to copy. This will skip other file names and extensions. We will provide the file name or extension after the destination folder.

robocopy在复制文件时提供了一些过滤功能。 我们可以指定要复制的文件名和扩展名。 这将跳过其他文件名和扩展名。 我们将在目标文件夹之后提供文件名或扩展名。

In this example, we only want to copy *.txt extension files.

在此示例中,我们只想复制*.txt扩展名文件。

> robocopy mytest yourtest *.txt

Copy Only Given File Types or Extensions
仅复制给定的文件类型或扩展名

We can see from the output that only one file is copied but there was more than one file. Copied file name and byte count is also printed.

从输出中我们可以看到仅复制了一个文件,但是有多个文件。 复制的文件名和字节数也会打印出来。

复制子文件夹 (Copy SubFolders)

By default, only first level directories are copied to the destination. If we need to copy all level and subdirectories folders we should enable /S.

默认情况下,仅将第一级目录复制到目标。 如果需要复制所有级别和子目录文件夹,则应启用/S

> robocopy mytest yourtest /S

Copy SubFolders
复制子文件夹

列出文件(List Files)

There is a very useful feature for robocopy where source files are not copied and just listed. This feature can be useful if we want to check existing files and folders. We can use /L option to print the list of files and directories.

robocopy有一个非常有用的功能,其中的源文件不会被复制,而是被列出。 如果我们要检查现有文件和文件夹,则此功能很有用。 我们可以使用/L选项来打印文件和目录的列表。

> robocopy mytest yourtest /L

List Files
列出文件

As we can see from the output that all files and folders are skipped and not copied.

从输出中可以看到,所有文件和文件夹都被跳过而不复制。

.u1c55a25fa8453e7d65d0f8d7bf9e33b3 , .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .postImageUrl , .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .centered-text-area { min-height: 80px; position: relative; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:hover , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:visited , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:active { border:0!important; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .clearfix:after { content: ""; display: table; clear: both; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u1c55a25fa8453e7d65d0f8d7bf9e33b3:active , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .centered-text-area { width: 100%; position: relative; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3:hover .ctaButton { background-color: #E67E22!important; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .u1c55a25fa8453e7d65d0f8d7bf9e33b3-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3:after { content: ""; display: block; clear: both; }

LEARN MORE  How To Install WinSCP Into Windows Operating Systems?

.u1c55a25fa8453e7d65d0f8d7bf9e33b3 , .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .postImageUrl , .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .centered-text-area { min-height: 80px; position: relative; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:hover , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:visited , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:active { border:0!important; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .clearfix:after { content: ""; display: table; clear: both; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u1c55a25fa8453e7d65d0f8d7bf9e33b3:active , .u1c55a25fa8453e7d65d0f8d7bf9e33b3:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .centered-text-area { width: 100%; position: relative; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3:hover .ctaButton { background-color: #E67E22!important; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3 .u1c55a25fa8453e7d65d0f8d7bf9e33b3-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u1c55a25fa8453e7d65d0f8d7bf9e33b3:after { content: ""; display: block; clear: both; }

了解更多如何将WinSCP安装到Windows操作系统?

递归列出文件 (List Files Recursively)

While robocopy is mainly used to copy files from remote to local or local to remove we can use /L and /S options in order to list remote files. We can merge two options list and recursive to list all level files and folders.

尽管robocopy主要用于将文件从远程复制到本地或本地删除,但我们可以使用/L/S选项列出远程文件。 我们可以合并两个选项列表和递归列表所有级别的文件和文件夹。

> robocopy mytest yourtest /L /S

复制小于给定大小的文件 (Copy Files Lower Than Given Size)

While copying files we can specify the size of files we want to copy. In this example we will copy files those sizes are lower than 1K .  We will use the /MAX option for this.

复制文件时,我们可以指定要复制的文件大小。 在此示例中,我们将复制那些大小小于1K 。 我们将使用/MAX选项。

> robocopy mytest yourtest /S /MAX:1000

Copy Files Lower Than Given Size
复制小于给定大小的文件

As we can see from the results some of the files are copied but some of them are not copied because of the size restriction.

从结果中我们可以看到,由于大小限制,某些文件被复制了,但有些文件没有被复制。

复制大于给定大小的文件 (Copy Files Higher Than Given Size)

The reverse of the previous option is /MIN option . This will only copy files higher than the given size. In this example, we will copy files higher than 1K which is 1000 kilobytes.

上一个选项的相反是/MIN选项。 这只会复制大于给定大小的文件。 在此示例中,我们将复制大于1K(即1000 KB)的文件。

> robocopy mytest yourtest /S /MIN:1000

Copy Files Higher Than Given Size
复制大于给定大小的文件

移动文件(Move Files)

The default behavior of robocopy is copying files. Sometimes we may need to move files. This can be done with robocopy too. We will provide /MOV option in order to move files and folders.

robocopy的默认行为是复制文件。 有时我们可能需要移动文件。 这也可以用robocopy完成。 我们将提供/MOV选项以移动文件和文件夹。

> robocopy mytest yourtest /S /MOVE

记录作业 (Logging Operations)

While doing copy and move operations we can also need some logs, especially in bulk data operations. We can write a log about specified operations with /LOG option. We can also specify the log file name y adding at the end of /LOG option. In this example, we will write robocopy operation log to log file named backup.log . This will prevent regular output

在执行复制和移动操作时,我们还需要一些日志,尤其是在批量数据操作中。 我们可以使用/LOG选项编写有关指定操作的/LOG 。 我们还可以指定在/LOG选项末尾添加的日志文件名y。 在此示例中,我们将robocopy操作日志写入名为backup.log日志文件。 这将阻止常规输出

> robocopy mytest yourtest /S /LOG:backup.log

The log file can be listed with type command in MS-DOS command line like below.

可以在MS-DOS命令行中使用type命令列出日志文件,如下所示。

> type backup.log

Log
记录

复制给定的文件属性(Copy Given File Properties)

Files and folders may have different properties. These properties can be used for different purposes like the listing owner, audit information, timestamps, etc. We can copy these attributes too with the robocopy command. Here are the attributes we can specify for the copy. We will also use /copy: option by adding the property we want to copy.

文件和文件夹可能具有不同的属性。 这些属性可用于列表所有者,审核信息,时间戳等不同目的。我们也可以使用robocopy命令复制这些属性。 这是我们可以为副本指定的属性。 我们还将通过添加要复制的属性来使用/copy:选项。

  • D is used to copy data properties

    D用于复制数据属性

  • A used for attributes

    A用于属性

  • T for time stamps

    T为时间戳

  • S is used for NTFS access control list simply ACL

    S用于NTFS访问控制列表,仅用于ACL

  • O is used for the owner information

    O用于所有者信息

  • U is used for Auditing information

    U用于审核信息

.u0a14fbf4e7b489aae9c2db06a2471f55 , .u0a14fbf4e7b489aae9c2db06a2471f55 .postImageUrl , .u0a14fbf4e7b489aae9c2db06a2471f55 .centered-text-area { min-height: 80px; position: relative; } .u0a14fbf4e7b489aae9c2db06a2471f55 , .u0a14fbf4e7b489aae9c2db06a2471f55:hover , .u0a14fbf4e7b489aae9c2db06a2471f55:visited , .u0a14fbf4e7b489aae9c2db06a2471f55:active { border:0!important; } .u0a14fbf4e7b489aae9c2db06a2471f55 .clearfix:after { content: ""; display: table; clear: both; } .u0a14fbf4e7b489aae9c2db06a2471f55 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u0a14fbf4e7b489aae9c2db06a2471f55:active , .u0a14fbf4e7b489aae9c2db06a2471f55:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u0a14fbf4e7b489aae9c2db06a2471f55 .centered-text-area { width: 100%; position: relative; } .u0a14fbf4e7b489aae9c2db06a2471f55 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u0a14fbf4e7b489aae9c2db06a2471f55 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u0a14fbf4e7b489aae9c2db06a2471f55 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u0a14fbf4e7b489aae9c2db06a2471f55:hover .ctaButton { background-color: #E67E22!important; } .u0a14fbf4e7b489aae9c2db06a2471f55 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u0a14fbf4e7b489aae9c2db06a2471f55 .u0a14fbf4e7b489aae9c2db06a2471f55-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u0a14fbf4e7b489aae9c2db06a2471f55:after { content: ""; display: block; clear: both; }

LEARN MORE  How To Use Psexec Tools To Run Commands and Get Shell Remote Windows Systems?

.u0a14fbf4e7b489aae9c2db06a2471f55 , .u0a14fbf4e7b489aae9c2db06a2471f55 .postImageUrl , .u0a14fbf4e7b489aae9c2db06a2471f55 .centered-text-area { min-height: 80px; position: relative; } .u0a14fbf4e7b489aae9c2db06a2471f55 , .u0a14fbf4e7b489aae9c2db06a2471f55:hover , .u0a14fbf4e7b489aae9c2db06a2471f55:visited , .u0a14fbf4e7b489aae9c2db06a2471f55:active { border:0!important; } .u0a14fbf4e7b489aae9c2db06a2471f55 .clearfix:after { content: ""; display: table; clear: both; } .u0a14fbf4e7b489aae9c2db06a2471f55 { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #ECF0F1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -o-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17); } .u0a14fbf4e7b489aae9c2db06a2471f55:active , .u0a14fbf4e7b489aae9c2db06a2471f55:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #D35400; } .u0a14fbf4e7b489aae9c2db06a2471f55 .centered-text-area { width: 100%; position: relative; } .u0a14fbf4e7b489aae9c2db06a2471f55 .ctaText { border-bottom: 0 solid #fff; color: #3498DB; font-size: 16px; font-weight: bold; margin: 0; padding: 0; text-decoration: underline; } .u0a14fbf4e7b489aae9c2db06a2471f55 .postTitle { color: #27AE60; font-size: 16px; font-weight: 600; margin: 0; padding: 0; width: 100%; } .u0a14fbf4e7b489aae9c2db06a2471f55 .ctaButton { background-color: #e6e6e6!important; color: #3498DB; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; moz-border-radius: 3px; text-align: center; text-decoration: none; text-shadow: none; width: 80px; min-height: 80px; background: url(https://www.poftut.com/wp-content/plugins/intelly-related-posts/assets/images/simple-arrow.png)no-repeat; position: absolute; right: 0; top: 0; } .u0a14fbf4e7b489aae9c2db06a2471f55:hover .ctaButton { background-color: #E67E22!important; } .u0a14fbf4e7b489aae9c2db06a2471f55 .centered-text { display: table; height: 80px; padding-left: 18px; top: 0; } .u0a14fbf4e7b489aae9c2db06a2471f55 .u0a14fbf4e7b489aae9c2db06a2471f55-content { display: table-cell; margin: 0; padding: 0; padding-right: 108px; position: relative; vertical-align: middle; width: 100%; } .u0a14fbf4e7b489aae9c2db06a2471f55:after { content: ""; display: block; clear: both; }

了解更多信息如何使用Psexec工具运行命令并获取Shell远程Windows系统?

In this example, we will copy time stamp attributes or properties with the following command.

在此示例中,我们将使用以下命令复制时间戳记属性或属性。

> robocopy mytest yourtest /copy:T

使用/ copyall复制所有属性 (Copy All Attributes with /copyall)

We can also copy files with all properties of attributes with the /copyall parameter like below. This is equal to the /copy:DATSOU.

我们还可以使用/copyall参数复制具有属性的所有属性的文件,如下所示。 这等于/copy:DATSOU

> robocopy mytest yourtest /copyall

删除或删除源中不再存在的目标文件和目录 (Delete or Remove Destination Files and Directories That No Longer Exist In The Source)

If we are trying to make an identical copy of the local files and directories to the remote we need to purge or remove remote files and directories that no longer exist in the source. We can use /purge option for this.

如果我们尝试将本地文件和目录复制到远程目录,则需要清除或删除源文件中不再存在的远程文件和目录。 我们可以使用/purge选项。

> robocopy mytest yourtest  /purge

翻译自: https://www.poftut.com/windows-robocopy-command-tutorial-examples-copy-files-safe-way/

robocopy复制文件

robocopy复制文件_Windows Robocopy命令教程以及以安全方式复制文件的示例相关推荐

  1. ren指令重命名文件夹_Windows Ren命令教程,其中包含重命名文件和文件夹的示例...

    ren指令重命名文件夹 Windows ren command is used to rename files and folder. ren command provides command lin ...

  2. dir 列出文件清单_Windows Dir命令教程,以列出文件和文件信息的示例

    dir 列出文件清单 Dir command is one of the most used Windows commands. Dir is used mainly to list files an ...

  3. 易语言复制C指针,易语言教程API模块制作cmd复制文件

    使用cmd命令封装易语言复制文件. cmd_复制文件 1. 使用cmd命令复制文件 COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source ...

  4. linux读取手机文件,linux at命令和batch从输入或指定文件读取命令

    linux at命令和batch从输入或指定文件读取命令 2009-12-31 11:43:57   出处:https://www.yqdown.com linux at命令和 batch 从准则 输 ...

  5. 历史文件夹_Win10备份文件教程:备份到OneDrive,文件历史记录

    在如今电子文档和数码照片为主流的时代,我们最担心的就是数据丢失了,所以备份是个好习惯.但工作繁忙,根本没有闲暇时间专门去备份个人文件,并且手动备份也很繁琐,经常出现重复备份或漏备份的问题.那么这时候你 ...

  6. tracert命令_Windows Tracert命令教程

    tracert命令 Windows operating system provides some basic tools to troubleshoot the network. tracert is ...

  7. bcdedit删除引导_Bcdedit命令教程以及用于编辑Windows引导配置的示例

    bcdedit删除引导 bcdedit is a command line tool used to manage Boot Configuration Data (BCD). This tool c ...

  8. 批处理命令html文件合并,cmd命令行无损合并批处理TS视频文件

    有时,当我们从Internet下载一些视频文件时,我们发现某些视频格式为.ts格式,并且被分成N个以上的小文件. 特别是,某些视频以.ts格式(MPEG2-TS流)播放. 因此,如果要下载此视频,则需 ...

  9. winscp下载很慢_winscp使用教程 两台电脑间传文件,winscp使用教程 两台电脑间传文件,软件介绍...

    ftp是一种文件传输协议,可以实现在两台或者多台电脑之间传文件,在选择一款ftp软件的时候,应该看中的是安全性和传输速度,有时候的传输的文件是比较重要的,传输速度也很有必要,毕竟是传文件没有的文件太大 ...

  10. sftp服务器同步文件到本地,服务器之间通过sftp的方式同步文件,并入库到本地数据的表中...

    需求:A服务器会定时生成一个CSV文件,B服务器从A服务器下载下来,并存入到B服务器的oracle数据库的某表中. 分析:1.数据同步上传和下载可以使用ftp的方式,当然也有其他方式. 2.数据存到本 ...

最新文章

  1. C - 食物链 POJ - 1182
  2. 我国自主研发手机操作系统 960 OS 发布
  3. 彻底理解大数据 HDFS 分布式文件系统,这篇就够了
  4. 利用 force index优化sql语句性能
  5. 架构漫谈读后感之软件架构师如何工作
  6. 小D学blend-----优美简洁的mp3播放器
  7. 图解分析一个dNet进销存软件
  8. 前端学习(1568):封装一个面包屑导航
  9. mitmproxy抓包 | Python疑难测试场景mock实战(四)
  10. 年轻一代 winner 的程序人生,改变世界的起点藏在身边
  11. 无限分级函数 简单 引用绑值
  12. RDP报表工具:六大优势铸造核心竞争力
  13. SQL增删改查语句笔记一
  14. fsearch:适用于linux的快速查找软件(类似everything)安装教程
  15. 硬件设计18之什么是VGA?
  16. 最受欢迎的中国 50 技术博客评选结果
  17. 4GL+T100程序设计开发常用方法、技巧总结
  18. Scrapy 2.6 Items 数据项定义、加载、传输使用指南
  19. java SE小练习
  20. 你真的会用C语言的fscanf_s吗

热门文章

  1. 赚不到钱的5大原因!
  2. POI设置背景色采坑记录
  3. visifire3.6.8 去水印方法
  4. Windows上优质精选的最佳应用程序及工具列表(附下载链接)
  5. matlab常用代码程序
  6. 小甲鱼python课后习题【1,2,3,4,5】
  7. linux 远程shell,linux 远程shell 实现
  8. 无盘服务器什么意思,无盘网络是什么
  9. java quartz job_java quartz job 执行时间配置
  10. 变分模态分解(VMD)运算步骤及源码解读