Sie sind auf Seite 1von 1

Rename-item "\\server_name\robocopy files\daily backup\daily" ("{0:yyyyMMdd}" -f (get-date)) Move-Item "\\server_name\robocopy files\daily backup\$('{0:yyyyMMdd}' -f (get-da te))" "\\server_name\robocopy files\daily" robocopy

\\EVserver1\d$\vaultstore1 \\EVserver2\d$\vaultstore1 /s /e /sec /mir /np /log+:c:\support\log\vaultstore1.txt 1. Schedule Run Batch file Robocopy everyday at 6:00PM.

2. Define RUN Hours From 6:00PM to 6:00AM in Robocopy. Just allow robocopy to co py files during this period. ROBOCOPY \\Source \\Destination /E /DCOPY:T /COPY:DAT /XA:SH /MIR /R:1 /W:1 /RH: 1800-0600 /V /TS /FP /NP /LOG:MirrorLog.txt /TEE 3. Schedule Run another batch file - taskkill /F /IM robocopy.exe to terminate t he program.

Das könnte Ihnen auch gefallen