Submit and view feedback for This product This page. View all page feedback. In this article. Specifies the file or files to be copied. Specifies the options to use with the robocopy command, including copy , file , retry , logging , and job options.
Copies files in restartable mode. In restartable mode, should a file copy be interrupted, Robocopy can pick up where it left off rather than re-copying the entire file. Copies files in backup mode. Backup mode allows Robocopy to override file and folder permission settings ACLs. This allows you to copy files you might otherwise not have access to, assuming it's being run under an account with sufficient privileges.
Specifies which file properties to copy. Specifies what to copy in directories. Deletes destination files and directories that no longer exist in the source. The SeBackupPrivilege and SeRestorePrivilege user rights are normally assigned to users in the Backup Operators and Administrators groups but sometimes they can get removed.
Backup module eliminates that risk and temporarily grants the user executing robocopy those rights. The large majority of the options available to you are to exclude files and directories many different ways. You can use a wildcard to filter on files matching a specific file name string or extension. Y0u can also provide multiple sets of file name matches by separating them with a space as shown below.
Robocopy allows you to filter items not just by file but by directory name too. Below you will find all of the robocopy options that will exclude files and folders based on various timestamp attributes. You have seen that dozens of options are available to you. Thankfully, you have a better option than memorizing and ensuring all of these options are spot on every time.
Robocopy job files are text files containing one option per line. Once created, you can then either use robocopy to modify them or a simple text editor. A typical job file created with robocopy has an RCJ extension and looks like the below snippet. You can see that you can provide comments in the job file using :: which is most of what this file has. Also, note that even if an existing job file already exists, robocopy will always overwrite the existing one.
Backup or version control your job files! Let me know if you were able to get this to be included. Robocopy reads all of the parameters inside of the job file.
It then executes just as if you provided the options directly on the command-line. However, it would be better explained as creating a job file without running a job. Since job files are just text files, you could edit them with your favorite text editor or you could have robocopy do it for you. You can add the new option like below:. You can even combine the use of job files too.
When specifying multiple job files in the same run, all of the options used in that run will be combined together.
For example, perhaps you have a large list of files to exclude from your backupfiles copy job. Open up a text editor, and add the following to create an exclude.
Robocopy combines all options into one. Robocopy allows you to pass values from the command-line to jobs when they are run. For a simple example, create a job file with no source or destination using the syntax below. By default, robocopy only processes one file at a time. The maximum is I suggest starting at 32 to see how your computer and network handle things and adjust the threads accordingly.
This is great if you have a maintenance window or a time when everyone has gone home for the day. For example, to invoke robocopy but only allow it to run between the hours of 5PM and 9AM as defined by the system clock, run:.
You must ensure that both times are in a hour format and are exactly four digits long. The window must be greater than two minutes. Improve this answer. Quinton Black Quinton Black 2 2 silver badges 9 9 bronze badges.
Use one of the os. Ben Ben This put me on the right path but I had to comma separate the options, e. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. Not an IT pro? Windows Client. Sign in. United States English. Ask a question.
Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. Windows 7 Miscellaneous. Use this forum to discuss miscellaneous issues that cannot be covered in any other Windows 7 forum. Sign in to vote.
0コメント