Backup scripts (how to configure, why to use, advantages…)

In this article, you will find information about backup scripts.

Types

There are three types of backup scripts:

  1. Pre-backup - the script is executed before the backup starts. There is an extra option to wait with backup start until the script is finished, for example, that setting is obligatory for the SQL databases backup.

  2. Post-snapshot - the script is executed after the backup snapshots are created.

  3. Post-backup - the script is executed after the backup ends. For example, such a script can be used to shut down the backed-up machine.

Enabling backup scripts

In the Create backup plan view go to Advanced settings by clicking the gear icon. On the right are Backup scripts

Choose the script type to enable. You can choose multiple types at once.

Choose the script dedicated to the OS type.

Types of pre-defined scripts

There are a few types of backup pre-defined available

  • Shutdown - To shut down the machine.

  • SQL Server database backup - To protect the Microsoft SQL Server database. (Available for Windows OS only)

See also:

pageMicrosoft SQL database backup
  • MySQL database backup - To protect the MySQL database.

See also:

pageHow to restore MySQL database from backup?
  • PostgreSQL backup - To protect the PostgreSQL database.

See also:

pagePostgreSQL database backup
  • Oracle database backup - To protect the Oracle database environment.

The Oracle database backup is available only for Linux operating systems!

See also:

pageOracle database backup

  • Enter path - To run a custom script. Type the path to your own, custom script and perform it using Xopero ONE. Warning! If you have attached more than one device in your backup plan, the script must be located in the same path on all the devices, on which you want to run the script.

In the end, if you have chosen the script, set the checkbox "Wait for the script, to continue the task". Thanks to it, the task will wait to the moment, when the script has finished. You can also set the waiting interval and fail the task if the script has failed.

Advantages

Using the backup scripts can help to automate backups of resources that cannot be natively backed up by XoperoONE. Xopero ONE allows to use such features as incremental and differential copies, deduplication, elastic scheduling the backup and detailed monitoring the copies.

Last updated