Afterbackup.bat

Here is an Afterbackup.bat file that will make a daily backup of ConfigMgr Backup, so that you have a full week of backups.

::: Created Garth Jones Jan 13 2011
::: —–
REM @echo off

setlocal enabledelayedexpansion

set target=\\FP.Enhansoft.com\D$\sccmbackup\%date:~0,3%

If not exist %target% goto datacopy
RD %target% /s /q
 
:datacopy
xcopy “D:\sccmbak\*” “%target%\” /E /-Y

Leave a Reply

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