Backup4all uses for each action a small application that runs independently from the main application. They can be used to create batch files.
The command line parameters for repair action are described bellow. The repair action is composed by a test action followed (or not - it depends if you want to repair only the catalog) by a backup action.
Backup jobs
Syntax
bTest [[/T] job_name /RP /RPWB] [-Priority[{1|2|3|4}]
Formatting legend
Italic - Information that must be supplied by the user
Bold - Elements that the user must type exactly as shown
/ - Switches are preceded by slash
[] - Elements between square brackets are optional
| - Vertical line separates possible choices
{} - Items between braces are a set of choices from which the user must choose only one
- /t - tests the named backup job to find the problems in backup.
- /RP - repairs the backup catalog only. All files and folders in backup execution will be tested. Those not found in destination will be also removed from the backup catalog so they will be backed up on the next backup execution.
- /RPWB - repairs the backup in destination. All files and folders added in the last backup execution will be tested. Those not found in destination will be backed up again in order to reflect the backup catalog.
If only the catalog needs to be repaired, use only the /RP switch.
For the priority level you can select a value between 1-4, as 1 is the lowest priority and 4 is the highest priority.
Examples:
To execute a repair for My Pictures backup job
bTest /t "My Pictures" /RP /RPWB - Priority 2
To execute only a catalog repair for My Pictures backup job
bTest /t "My Pictures" /RP - Priority 2
Tags
Syntax
bTagTest tag_ name [ /RP /RPWB ] [-Priority{1|2|3|4}]
- /RP - execute the repair for the backup catalogs only. All files and folders added in the last backup execution will be tested. Those not found in destination will be also removed from the backup catalog so they will be backed up on the next backup execution.
- /RPWB - execute the repair for the backups in destination. All files and folders added in the last backup execution will be tested. Those not found in destination will be backed up again in order to reflect the backup catalog.
For the priority level you can select a value between 1-4, as 1 is the lowest priority and 4 is the highest priority.
Examples:
To execute a repair for Samples tag
bTagTest "Samples" /RP /RPWB - Priority 2
To execute a repair for Projects tag, only the backup catalogs:
bTagTest "Projects" /RP - Priority 2
Backup4all returns exit codes after each task execution (backup, independent test, repair, restore or cleanup).
As a general case, if the action was successful, the exit code is 0, otherwise is different.
Here are the possible exit codes:
- 0 : action was successful
- 1 : action has not started, parameter errors, syntax errors, other errors
- 2 : action finished with errors
- 3 : action was finished with warnings
- 4 : independent test was finished with errors
- 5 : independent test was finished with warnings