On Tue 15-Jul-03 7:07pm -0400, Greg Strong wrote:

> Tuesday, July 15, 2003, Bill McCarthy wrote:

>> So don't specify a new archive and p0q0 is equivalent to p1q1.

> NO, not when you consider what my INTENT on the backup was. See
> mid:[EMAIL PROTECTED]

My test the other day must have been wrong.  After reading your post I
tried it again and can confirm that using the -up0q0 option does
indeed remove files from the archive when are no longer present on
disk.  This is frequently desirable, so I've added an alias for update
with deletion (7ud) along with with my update (7u) alias:

    alias 7u=c:\util\7-Zip\7zn u -ms=off
    alias 7ud=c:\util\7-Zip\7zn u -ms=off -up0q0

Here's my backup file (tbbu.btm) for 4nt:

:: I've not shown the part which checks to see if The Bat! is running
:: or if the data state is for the Beta.  In either case, a dialog is
:: displayed and the batch file terminates without doing anything.
::
:: Note: Common.7z contains my templates and those QTs not invoked
:: with <ctrl><space>
::
:: The only 4nt stuff is the use of a timer, >>& (appends the
:: redirected stdin and stderr in the order they would appear on the
:: display) and unset (same as set var=).

timer /3 on > nul

set bu=f:\TheBatBU

:: First the registry

echo Backing up the RIT registry tree > %bu\out
regedit /e %bu\RIT.reg HKEY_CURRENT_USER\Software\RIT >>& %bu\out

:: Now the Program Directory

pushd c:\progra~1\thebat~1
7ud -r %bu\TBprog * >>& %bu\out

:: Finally the Mail Stores

cd \data\TheBat
7ud %bu\Common * -x!Mail -x!Beta >>& %bu\out
cd Mail
7ud -r %bu\Gild * >>& %bu\out
cd ..\Beta
7ud -r %bu\Beta * >>& %bu\out

popd

:: Show the elapsed time

timer /3 >>& %bu\out

:: And now display the results in my editor

v %bu\out
unset bu

-- 
Best regards,
Bill


________________________________________________
Current version is 1.62r | "Using TBUDL" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to