Help topics, tutorials and reviewsHow to replace Windows XP ntbackup.exe application by a plain text list of files to be copied, and a simple batch file?Also how to build up a simple and transparent backup script using batch (bat) files.What we need is:
It would be great also to have black and white lists created from .bks file produced by ntbackup.exe. And I have all of this.
_copyex.cmd follows:
@if "%1"=="" goto help @if "%2"=="" goto help @if "%3"=="" goto help @set target=%3 @set xcopysw=/d /EXCLUDE:%2 /E /V /C /I /G /H /R /K /Y @rem /O /X /Q @echo White list: "%1"; Black list: "%2"; Target: "%target%" @for /f "eol=; delims=" %%i in (%1) do xcopy "%%~dpnxi" "%target%%%~pnxi" %xcopysw% :help @echo "usage: _copyex.cmd <white-list> <black-list> <target-path>" @goto end :end This article is not finished. If you found it helpful, and would like to view/download the rest of the scripts and stuff - please email me at support@ucware.com.
May 15, 2009. |