Ansible Pilot

Backup Ansible Automation Platform

How to backup the fullAnsible Automation Platform, the Automation Controller, Private Automation Hub, Event-Driven Controller, and the database with only one command.

August 4, 2023
Access the Complete Video Course and Learn Quick Ansible by 200+ Practical Lessons


In the dynamic realm of IT management, having a robust backup and restoration strategy is akin to having a safety net under the tightrope of operations. The Ansible Automation Platform, integral to efficient system administration, offers an integrated backup and restoration mechanism to ensure our digital landscape remains secure, resilient, and ready for unforeseen challenges. In this article, we delve into the intricacies of this vital feature, exploring its setup, execution, and best practices.

In the ever-evolving IT infrastructure landscape, safeguarding our systems with effective backup and restoration strategies is paramount. Automation Controller acknowledges this necessity and seamlessly integrates a comprehensive backup and restoration system into its platform setup playbook. Whether to mitigate unforeseen incidents or ensure a smooth migration to new environments, this functionality serves as our digital insurance policy.

Before embarking on our backup and restoration odyssey, we must acquaint ourselves with a few key pointers. First and foremost, when restoring, ensure that we’re returning to the same version from which the backup was taken. This ensures compatibility and stability throughout the process. Moreover, it’s advisable to utilize the latest minor version of a release for backup and restoration, enhancing the efficiency and reliability of the procedure. It’s worth noting that backup and restoration operations are tied to the version of PostgreSQL supported by our current platform version. Be sure to check the System Requirements documentation for compatibility details.

The Best Resources For Ansible


Video Course

Printed Book


Step-by-Step Guide

The Ansible Automation Platform installer includes the backup and restore capability via the command. It is the heart of the backup and restoration process. This versatile script takes center stage, accepting a range of arguments that orchestrate the backup and restoration actions. Here are the two pivotal arguments:

# ./ -b
# ./ -r

The time needed for the backup and restoration process depends on the amount of data stored in our Ansible Automation Platform. By default, backup files materialize in the same directory as the script. Successful execution of the backup creates a tarball with the date of execution:

581M automation-platform-backup-2023–08–03–14:39:23.tar.gz The utility also creates a soft link named “automation-platform-backup-latest” pointing out to the latest backup file in the current directory. However, flexibility is at our fingertips. Using EXTRA_VARS, we can tailor the destination of our backups to align with our preferences.

# ./ -e ‘backup_dest=/path/to/backup_dir/’ -b

Moreover, restoration paths can be sculpted similarly. When restoring, we can specify a non-default path for where we restore the backup file.

# ./ -e ‘restore_backup_file=/path/to/nondefault/backup.tar.gz’ -r

As we explore the realm of backup and restoration, the orchestration is handled by a trio of playbooks. These virtuoso scripts encompass:

As we prepare for the exhilarating voyage of backup and restoration, a few considerations illuminate our path:

The backup and restoration process harmoniously aligns with the abovementioned principles for clustered environments. Whether restoring an existing cluster or embarking on a new one, the essence remains the same — safeguarding our digital IT fleet.

When sailing the clustered seas, a few additional notes become were guiding stars:

As we steer our ship through the clustered tides, the restoration process remains our steadfast ally, enabling us to chart new courses and secure our digital dominion.


In the ever-evolving landscape of IT management, mastering the art of backup and restoration is a journey every adept administrator embarks upon. Automation Controller stands by our side, providing the tools and guidance to navigate this crucial endeavor. So, hoist our sails, invoke, and embark on a voyage of digital resilience and preparedness. Were systems’ safety and longevity await our skilled hands and the power of the Automation Controller’s backup and restoration prowess.

Disclaimer: This article is based on information available as of 2023. Please refer to the latest documentation for any updates or changes.

Subscribe to the YouTube channel, Medium, and Website, X (formerly Twitter) to not miss the next episode of the Ansible Pilot.


Learn the Ansible automation technology with some real-life examples in my

My book Ansible By Examples: 200+ Automation Examples For Linux and Windows System Administrator and DevOps

BUY the Complete PDF BOOK to easily Copy and Paste the 250+ Ansible code

Want to keep this project going? Please donate

Access the Complete Video Course and Learn Quick Ansible by 200+ Practical Lessons
Follow me

Subscribe not to miss any new releases