anleitungen:windows:robocopy:beispiel_1
Robocopy
Kopiert Dateien und löscht Dateien die älter sind als angegeben
set quelle=d:\Data\quelle set ziel=d:\Data\ziel set trash=d:\Data\trash set copylog=d:\Data\bin\CopyLog.cfg date /T > %copylog% time /T >> %copylog% set tage=7 rem kopiere aus Quellverzeichnis ins Zielverzeichnis robocopy %quelle% %ziel% /J /W:10 /R:10 /V /TS /FP /LOG+:%copylog% /TEE rem schiebe die Backups die älter sind als tage in den Trash robocopy %ziel% %trash% /CREATE /MOV /MINAGE:%tage% /W:10 /R:10 /V /TS /FP /LOG+:%copylog% /TEE rem Leere den Mülleimer del %muelleimer%\*.* /Q /S >> %copylog%
anleitungen/windows/robocopy/beispiel_1.txt · Zuletzt geändert: von olivier
