### ### # Backup a network share of Certificate of Analysis(es) (CoA) folder on to a # local external drive. In the event of a network failure a USB connected # printer in conjunction with the files located in the $destination_folder # should allow creation of new CoA until network access is restored. ### ### ### ### # The path of the networked CoA directory. # TODO: Define the COA source as a network path instead of a mapped drive. # Since the drive mapping could vary by workstation. ### ### $coa_src_dir = "G:/Lab/COA" ### ### # The path of the backup directory. # TODO: Verify that the destination path is the correct device. Each # filesystem has a UUID which is assigned when it is formatted. We # should not proceed with a backup unless the are sure that we are # writing to the filesystem with the correct UUID. Simply having a USB # device plugged in when a workstation is booted could be enough to # change drive letters. # ### ### $coa_dst_dir = "E:/COA_offline_backup" ### ### # Specify where a log of the backup should be placed. This backup is intended # to be run daily from windows scheduler so logging is more useful when making # sure that modifications to the script are working as intended. ### ### # $coa_log_path = "E:/COA_offline_backup.log" $coa_log_path = $NULL robocopy `       $coa_src_dir `       $coa_dst_dir `       /e `       /mir `       /copy:DATSO `       /IoRate:2M `       /log:c:\Users\user\coa_offline_backup.log