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
backupgroup on the remote host. -
Postgres actions require
psqlandpg_configto be installed and python modulespsycopg2.Tip
install with
apt install postgresql-client-<version> postgresql-commonon a Debian system andpip install psycopg2-binaryfor the python modules -
MariaDB / MySQL actions require
mysql,mariadb-client-<version>to be installed and python modulesPyMySQLTip
mysqlcan be installed withapt install mariadb-client-core-<version> mariadb-client-<version>on a Debian system andpip install PyMySQLfor 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-slimis one such container and usebash -c sleep 9999999999999999999as 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 hereDate Created: 2023-10-30
Date Edited: 2025-10-03
Contribution:
Would You like to contribute to our Ansible Playbooks project? You can assist in the following ways:
- Edit This Page If there is a mistake or a way you can improve it.
- Add a Page to the Manual if you would like to add an item to our manual
- Raise an Issue if there is something about this page you would like to improve, and git is unfamiliar to you.
ToDo: Add the page list of contributors