A systems administrator is creating a custom batch script using the Windows `robocopy` command-line utility to mirror a sensitive department directory (`C:\FinanceData`) to a network backup target (`\\BackupServer\FinanceBackups`). The administrator must ensure that empty subdirectories are included in the transfer and that all NTFS security ACLs, file ownership, and auditing information are fully preserved. Which TWO of the following `robocopy` switches must be included in the command to fulfill these requirements?
- /ECevap
- /COPYALLCevap
- C/S
- D-a
Cevap
The correct options are '/E' (to copy subdirectories including empty ones) and '/COPYALL' (to preserve all NTFS ACLs, ownership, and auditing information).
The '/E' switch forces robocopy to recursively copy all subdirectories, explicitly including empty ones. The '/COPYALL' switch copies all file information (Data, Attributes, Timestamps, NTFS ACLs, Owner, and Auditing info). Combining these two options ensures complete directory structure and security attribute replication.
Adım Adım Çözüm
Anahtar Kavram
Microsoft Windows Command-Line Backup Tools (Robocopy Switches)