Skip to content

Restore Backup Playbook


This Playbook is designed to restore backups that were createdby our backup playbook.

Using the Playooks

Running of this playbook is no different to any other. However there are a few requirements that must be met first:

  • The user running the playbook must be a member of the backup group on the remote host.

  • Postgres actions require psql and pg_config to be installed and python modules psycopg2.

    Tip

    install with apt install postgresql-client-<version> postgresql-common on a Debian system and pip install psycopg2-binary for the python modules

  • MariaDB / MySQL actions require mysql, mariadb-client-<version> to be installed and python modules PyMySQL

    Tip

    mysql can be installed with apt install mariadb-client-core-<version> mariadb-client-<version> on a Debian system and pip install PyMySQL for the python modules.

  • Kubernetes containers that are having their files backed-up, require tar to be instlled in the contianer.

    Tip

    If tar is not installed within the container, add a sidecar container that contains tar. debian:bookworm-slim is one such container and use bash -c sleep 9999999999999999999 as the container command so it doesn't stop.

Restoration tasks

Just like out backup playbook, this playbook is broken down into sub-tasks, that is by Application. This covers application type Kubernetes Container.

About:

This page forms part of our Project Ansible Playbooks.

Page Metadata
Version: ToDo: place files short git commit here
Date Created: 2023-10-30
Date Edited: 2024-01-15

Contribution:

Would You like to contribute to our Ansible Playbooks project? You can assist in the following ways:

 

ToDo: Add the page list of contributors