Windows Server
Robocopy en sık kullanılan komutlar
Robocopy en sık kullanılan komutlar, açıklamaları ile birlikte aşağıdaki örneklerdedir.
Ayrıca Aşağıdaki makaleden robocoy ile ilgili yazımı okuyabilirsiniz
Basic File Copying:
- Copy all files and folders:
12robocopy C:\source D:\destination /E
- Copy only files (no folders):
12robocopy C:\source D:\destination /COPY:DAT
- Mirror a directory (keep source and destination identical):
12robocopy C:\source D:\destination /MIR
Advanced Options:
- Copy only newer files:
12robocopy C:\source D:\destination /XO
- Exclude specific files or folders:
12robocopy C:\source D:\destination /XD ExcludeFolder
- Include empty subdirectories:
12robocopy C:\source D:\destination /E /S
- Copy file permissions:
12robocopy C:\source D:\destination /COPYALL
- Preserve timestamps:
12robocopy C:\source D:\destination /DCOPY:T
- Resume interrupted copies:
12robocopy C:\source D:\destination /Z
- Log the copy operation:
12robocopy C:\source D:\destination /LOG:C:\robocopy.log
Additional Considerations:
- Retrying failed copies:
1robocopy C:\source D:\destination /R:5