RestoreAll.cmd - Simple scripts for Backup in Windows using MSDOS
Ok, we have just restore the newest version of the file we need form all backup sets, but it was not the one we were looking for. In this case we need to validate maybe the previous version.
This script restores all available files. Actually the script is the same as RestoreNewest, but with an extra directory in the RAR command.
if "!process!"=="1" (
"%rarPath%\rar.exe" x -o+ "%backupDir%\%%i\%%x" "%processfile%" %restoreDir%\%%i\ >> %restoreDir%\Restore.log
)
The usage is:
D:\>RestoreAll.cmd local*
Where local* is the file name we are looking for. The file can contain wildcards.
Comments