Setting TagNBag Properties

A number of parameters need to be set when you want to perform a backup.  For instance, if you're backing up to a file system location, you need to provide the path to the location.  These are all set by doing a Right Mouse Click (RMC) on the To back up virtual directory.  A context menu will pop up that has a Properties item.

properties

Selecting this item will bring up a Dialog box for setting the parameters.
properties dialog

 Backup Type


The most basic parameter for a backup target is the type.  This determines the type of location the backup will be going to, e.g. a file system location, a CD, or an internet storage location.  The type might also differentiate within these categories, e.g. determining if a backup will overwrite another backup, or create a new backup set (although this sort of differentiation might also be done with parameters).   For this reason, the dialog will always have a Change Type button to allow switching between different types of backup targets.

The Change Type button will bring up a dialog for choosing the target type.
Change Target Type

Target types are associated with a Target Assembly which handles the moving to the particular target type.  So the Change Type form allows you to select the appropriate assembly.

Target Properties

Once a target type is selected, it may have parameters that need setting.  For instance, the FileSystemBackupTarget requires a path to the file system location, and a name for the backup set.  The target assembly is responsible for providing the form for collecting whatever parameters it needs.  This form is displayed embedded in the Target Properties Form.

For the File System type backup, the most obvious parameter, as mentioned above, is the path to the folder that will contain the backup.  In addition, there is a Backup Set Name parameter that gives the name of a sub folder under the target folder that will contain the next set.  The name is given by the form Backup Name #n, where n is a number.  If there is already a backup set with the number n, it will be incremented until there's a number that it won't match.