Sie sind nicht angemeldet.
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
:@ECHO OFF SETLOCAL SET _source=F:\ SET _dest=\\SERVER\H$\ SET _what=/E /ETA /XO /PURGE :: /E :: Copies all subdirectories (including empty ones). :: /ETA :: Shows estimated time of completion for copied files. :: /XO :: Excludes Older files. :: /PURGE :: !!!VORSICHT!!! Deletes destination files and directories that no longer exist in the source !!!VORSICHT!!! SET _options=/R:0 /W:0 /LOG:backup.log /TEE :: /R:n :: number of Retries :: /W:n :: Wait time between retries :: /LOG :: Output log file :: /TEE :: Displays output in the console window, in addition to directing it to the log file specified by /LOG or /LOG+. ROBOCOPY %_source% %_dest% %_what% %_options% |
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
:@ECHO OFF SETLOCAL SET _source=C:\ SET _dest=E:\ SET _what=/MIR :: /MIR :: Mirrors a directory tree (equivalent to running both /E and /PURGE). SET _options=/R:0 /W:0 /LOG:backup.log /TEE :: /R:n :: number of Retries :: /W:n :: Wait time between retries :: /LOG :: Output log file :: /TEE :: Displays output in the console window, in addition to directing it to the log file specified by /LOG or /LOG+. ROBOCOPY %_source% %_dest% %_what% %_options% |
-