Create Bacula cloud storage#

To store Bacula backups, you need a configured Bacula storage. This is the destination where backup data is written.

After a fresh installation of Bacula, cloud storage is not configured by default. This section will guide you through setting up Bacula cloud storage using the Bacularis interface.

What is required?#

  • Bacularis version 4.3.0 or greater.

  • A cloud storage account to store backups

  • The Bacula cloud storage plugin installed in the Bacula Storage Daemon

  • A local disk storage path to store backup data before uploading it to the cloud

  • The Bacula Storage Daemon installed on the host that will handle the storage

  • If the Storage Daemon is located on a remote host (different from the host running the Bacularis web interface), then the Bacularis API must be installed and configured on that remote host.

How to do it?#

Preparation#

Before starting the configuration in Bacularis, you need to prepare a local storage path. This path is used as a cache, where backup data is stored before it is uploaded to the cloud by the cloud plugin.

To determine which system user and group the Bacula Storage Daemon runs under, use the following command:

ps -o user,group,comm -C bacula-sd

Example output:

USER    GROUP    COMMAND
bacula  tape     bacula-sd

Once you know the appropriate user and group, create the local storage directory and assign correct ownership. For example, using the path /var/lib/bacula-storage:

mkdir -m 750 /var/lib/bacula-storage
chown bacula:tape /var/lib/bacula-storage

Now the local storage directory is ready to be used by the Bacula Storage Daemon.

In the Bacularis web interface:

  • Go to the Storage page from the main menu.

  • Click the Add cloud storage button to launch the Cloud storage wizard.

Step 1 - General#

Enter a name for the new storage (you may also add an optional description).

If you have more than one Bacularis API host, choose the appropriate host where the Storage Daemon is installed in the API host field. (If only one API host is available, this field will be hidden.)

For the question What storage type would you like to create?, choose one of the following:

  • Single cloud device storage - a simple, single Bacula device.

  • Multi-device cloud storage (Autochanger) - a virtual autochanger with multiple drives. This option is more flexible than the single cloud device storage.

Step 2 - Storage#

If you selected Autochanger in the previous step, configure the number of:

  • Backup/restore drives

  • Reserved restore drives

Then, provide the path to the local disk cache in the field:

Where should storage store local backup data (local cache)?

Example: /var/lib/bacula-storage

Next, define the storage media type. This can be any unique string. It must be unique per cloud storage configuration, especially if each uses a different local path.

Step 3 - Cloud#

For the question What is your cloud type?, choose your cloud provider from the Driver dropdown.

Enter the connection parameters for your cloud account in the appropriate fields. These details allow the cloud plugin to authenticate and communicate with your cloud storage provider.

Choose when you want to send data to the cloud: immediately after backup, after completing each volume part or you run sending data manually.

Review the advanced options to check if your cloud provider requires any additional settings.

Step 4 - Summary#

Review your settings in the final summary step. If everything is correct, click to finalize the wizard.

You will be prompted to allow Bacularis to restart the Bacula Storage Daemon.

Important notes#

If you choose not to restart the Storage Daemon at the end of the wizard, the configuration will be created but won’t be active until the daemon is restarted.

You can restart the Storage Daemon immediately or later via the storage details page:

[Main menu] => [Page: Storage] => [Select storage in table] => [Button: Details]

Video guide#

Watch a step-by-step video tutorial demonstrating how to configure Bacula cloud storage using the Bacularis cloud storage wizard: