9/20/2023 0 Comments Bvckup 2 safeThis is a value of 0 for the ini override. "Continue to run" will cause the program to merely log command's exit code and proceed with the backup unconditionally. "Expected return value" is what we expect the script to return on its normal completion. This pair of settings controls if the program should check the return code of the script and what it should do if the code is NOT what's expected. This might be useful for dispatching alerts, for example.įor example, "mand_pre_timeout 1 min". The timeout can be set to "0 sec", in which case the program will not wait for the command at all. ĭefines how long the program will wait for the pre/post command to complete. In earlier program versions details can be configured using the ini-based override mechanism. ![]() "post-backup" - for the post- command details. Type "pre-backup" in the Search field for pre- command details and Starting with release 82 pre/post command details can be configured on the "Advanced options" list in the backup settings, accessible via "More Options" > "Pi" button at the bottom left corner of the window. That's because the shell window will be opened on a desktop of a service user account and will not be visible. Type "exit" to close the window and let the backup proceed.Ĭommands are spawn by the engine, so running "cmd /k" in a service mode will simply cause the backup to stall for an hour. This will simply open a command line window and run "set" command that dumps the environment variables. There's over 80 different variables and a good way to get a feel of how this all works is to set both commands to See for additional information on email alerts. The only difference is that the latter prefixes all variable names with BVCKUP_. The variable set used for email alerts is almost exactly as the set used for external commands. īVCKUP_errors - the number of errors encountered by the backupīVCKUP_stats_files_created - self-explanatoryīVCKUP_stats_files_updated - self-explanatoryīVCKUP_stats_files_deleted - self-explanatoryīVCKUP_stats_files_moved - self-explanatoryīVCKUP_stats_bytes_read - how much data was read from the diskīVCKUP_stats_bytes_written - how much was written outīVCKUP_time_started - start time (see below)īVCKUP_time_elapsed - elapsed time in human readable format, e.g “4 hours 16 minutes” or “13 seconds” Some variables are valid only for a post-backup command as they capture the _results_ of a backup run, e.g. The "failed" backup run is the one that did not manage to get to the actual backup phase and failed during the preparation (scanning/planning/etc) phase. Variable names start with BVCKUP_ and they cover Environment, Program details, Backup configuration and Backup status.īVCKUP_run - the run number of the backupīVCKUP_status - the state of the backup and it is set to "Initializing" for pre-backup command, and to one of "Cancelled", "Completed", "Failed" for the post-backup command. Or something else that can be executed by invoking shell rather than by spawning a process (see below).īy default, the program will wait for both commands to complete before proceeding with the backup, but timing out after 1 hour.Īll aspects of this behavior are configurable - it's possible to change the timeout, make the program launch the command and continue with the backup immediately, cancel the backup if the command doesn't exit with a specific code, etc.ĭetails of the backup state and configuration are passed to the commands with a set of environment variables that are set up by the program. They can be used to cancel backups if certain condition is not met, to mount volumes before the backup, to rearrange things after a backup, to feed events and alerts into existing management systems, etc. Pre/post-backup commands allow customizing both the logic and the flow of every backup. ![]() These can be configured in the More Options section of Backup Settings window. It is possible to execute arbitrary commands at the very start and at the very end of a backup run.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |