The Backup Subcommand |
< Previous section | Table of Contents | Index | Next section >
The Backup subcommand backs up your MainBoss database in the same way described in Backing Up Your MainBoss Database. The format of the command is
mboss Backup /MainBossDatabase:folder /MZH:filename
where /MainBossDatabase:folder specifies the folder that contains your MainBoss database. If you omit this option, MainBoss assumes that the current directory contains your database. /MZH:filename specifies the name of the MZH file that MainBoss should create to hold the backup data.
Instead of a filename, you can specify a folder name. In this case, MainBoss creates a backup file in the given folder. The name of the file is CCYYMMDD.MZH (where CCYYMMDD is the current date).
The Backup subcommand also recognizes the /Verbose option. If this option is specified, MainBoss displays progress messages as it backs up the database; otherwise, MainBoss simply backs up the database without displaying any messages (provided no errors occur).
As a model for performing regular backups, suppose that your MainBoss database is stored in the folder C:\MainBoss and you want to write backups to another computer on your local network. Suppose that you address the backup computer as drive H: and you want to store backup files in the folder H:\mbsaves. In this case, you could use the Windows 2000 task scheduler to run
mboss Backup /MBD:C:\MainBoss /MZH:H:\mbsaves
Since the /MZH option specifies a folder rather than a file name, MainBoss creates a new file in the folder every time the database is backed up. (Note that all these backup files will use up disk space.)
For more on using MainBoss in command line mode, see The MainBoss Command Line.
< Previous section | Table of Contents | Index | Next section >