[DXBase] Backup batch file
Ron Stordahl
[email protected]
2003年5月08日 16:06:52 -0500
Hank
I am beginning to understand this.
First, I didn't realize that Windows has a built in back up program.
But just checked in Win2K under Programs/Accessories/SystemTools and
there it was. There is a help file with it that goes thru all the
command line switches, which permit one to run it in a non-interactive
fashion.
I have checked WinME and backup is not ordinarily provided, however it
is on the WinME CD in the Add-ons subdirectory and you can install it,
which I just did. The help however does not provide any information
about command line switches, so I am going to assume that you cannot run
it in a non-interactive fashion, and thus it would be useless in the way
you describe. I am going to guess that Win98 has the same version.
Looks like for these OS's you would have to find an independent backup
program which allows command line switches and will execute
non-interactively. Back4WinXP is available on the internet, costs
25ドル.00 to register to use past 21 days, appears to provide command line
switches to run non-interactivly, but I have not tried it. Back4WinXP
also talks about detecting when a file has just been unassigned and then
taking action, so there may be more than one way to use it.
I don't have WinXP here, but called a friend who searched for
ntbackup.exe and it was there, so Ill assume that XP has the same backup
program installed as does Win2K.
Secondly I didn't realize that I could still use Batch files in Windows,
like I did in DOS, but low and behold they still work. Best yet you can
build them and then put them on the desk top as shortcuts and execute
them. So for the example you gave that batch file could be on the
desktop ready to be 'clicked'.
So in brief it looks like we have the tools to automatically backup just
the 'user' files in DXBase, in a way that will allow you to
store/retrieve a complete history of your data base files, limited only
by the storage space you are willing to use.
No guarantee when I will get to setting this up...if someone does so
first please post it here.
Ron, N5IN
Hank Kohl K8DD wrote:
> At 5/8/2003 01:00 PM -0400, Garth A. Hamilton - VE3HO wrote:
>>> If you create a batch files that open the program DXBase and have the
>> call to DXBase in the first line and then program you backup in the
>> lines following the call to DXBase, the batch file will make the call
>> to DXBase and then wait to get control back when DXBase closes and
>> then it will execute the additional lines of code and run your backup
>> as detailed in your batch file.
>>>> 73 Garth
>>>> For Windows 2000 you would use ntbackup.exe
> My batch file looks like this (without the /m switch):
>> d:\dxbase 2004\dxbase2004.exe
> ntbackup backup D:\dxbase2004 /j "Command Line Backup 4" /f
> "R:\DXB2004.bkf" /m incremental|differential|daily
>> The D:\dxbase2004 would be replaced with where ever your DXbase files
> are located.
> The "R:\DXB2004.bkf" can be replaced with where ever you want to
> put the backup file .... it could even be a CD-RW, in which case you
> might want to rotate discs on a 5 day (or week - whatever backup
> strategy you are going to use) cycle.
>> It takes me 4 min 28 sec to back up 198Mb of DXbase2004 to a network
> drive over a 10Mbs ethernet connection.
>> The command line would, of course, be different for other operating
> systems that have a backup utility built into them. I haven't
> written one for XP yet, but I'm sure it would look somewhat the same.
>> 73 Hank K8DD
>>