![]() Robocopy "C:\Users\AOMEI Technology\Documents" "E:\synced files" /e /z (As there are spaces in the directory names, I add quotation marks around the source and destination path.) Type the following lines to create a batch OFF Search for Notepad from the search box in the taskbar, and click the top result to start the app.Ģ. Follow the steps below to use Robocopy to sync folders both ways:ġ. Thus, you don’t need to retype the same command every time. However, if you want to perform two-way file sync on a regular basis, it is suggested to create a bat file to run the robocopy command. To run Robocopy 2-way synchronization, you can type the corresponding command lines in a Command Prompt window directly. ▪ Learn more > How to use Robocopy to sync folders in two ways ▪ /minage :: specify the minimum file age (to exclude files newer than “n” days or date). ▪ /maxage :: specify the maximum file age (to exclude files older than “n” days or date). If the files in the source are newer than those in the destination, they won’t be copied. ▪ /xd : exclude directories that match the specified names and paths. ▪ /mt: create multi-threaded copies with “n” threads. “n” must be an integer between 1 and 128. ▪ /mir: mirror a directory tree and delete files and folders in the destination if they no longer exist in the source. ▪ /purge: delete destination files and directories that no longer exist in the source. ▪ /z: copy files in restartable mode which lets you resume a large transfer if it’s been interrupted. ▪ /e: copy subdirectories including empty directories. ▪ /s: copy subdirectories except empty directories. ![]() Here I’d like to list some helpful options: There are various options you can use with the robocopy command to meet different needs. The basic syntax of the robocopy command is as follows: It has been a built-in feature since Windows Vista and Windows Server 2008. Robocopy (Robust File Copy) is a command that is used to copy directories and files from one location to another. How to perform two-way sync via AOMEI Backupper.Easier way to perform two-way sync in Windows.How to use Robocopy to sync folders in two ways.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |