Script to SYNC Citrix Provisioning Server vDisk Stores

Multiple Citrix Provisioning (PVS) Servers provide redundancy and load balancing–but there is no automatic replication of images.  I find the easiest way is to use RoboCopy and sync PVS Server Stores.   The basic script I use is:

Explanation of Command Switches

  1. /MIR     Mirror a directory tree (equivalent to /E plus /PURGE
  2. /XO      Exclude Older files
  3. /XF       Exclude Files matching given names/paths/wildcards  (in this case .lok files)
  4. /XD      Exclude Directories matching given names/paths  (in this case, exclude the WriteCache directory)

 

Leave a Reply

Your email address will not be published. Required fields are marked *