Skip to content

Backup and Restore

Creating a backup

Ensure you have met all requirements before proceeding.

Start the Ansible playbook for backup creation:

1
2
3
source ~/.professional_venv/bin/activate && \
ansible-playbook start.yaml -t create-backup && \
deactivate

You will be prompted for your SSH and sudo passwords for authenticating the target node.

SSH password:
BECOME password[defaults to SSH password]:

Tip

If authenticating via private SSH key is possible, you can leave the value of SSH password blank. If there is no password requirement for sudo commands, you can leave the value of BECOME password blank as well.

The Ansible playbook will stop all services related to IRIS+ Professional, create a backup, and then restart the services.

Listing available backups

Ensure you have met all requirements before proceeding.

Start the Ansible playbook for backup creation:

1
2
3
source ~/.professional_venv/bin/activate && \
ansible-playbook start.yaml -t list-backups && \
deactivate

You will be prompted for your SSH and sudo passwords for authenticating the target node.

SSH password:
BECOME password[defaults to SSH password]:

Tip

If authenticating via private SSH key is possible, you can leave the value of SSH password blank. If there is no password requirement for sudo commands, you can leave the value of BECOME password blank as well.

Restoring a backup

Ensure you have met all requirements before proceeding.

The restoration process will result in data loss.

Start the Ansible playbook for restoring:

1
2
3
source ~/.professional_venv/bin/activate && \
ansible-playbook start.yaml -t restore && \
deactivate

The restore process will revert to the most recent backup by default. If you want to restore from a specific backup, you can provide the full path to the desired backup file.

1
2
3
source ~/.professional_venv/bin/activate && \
ansible-playbook start.yaml -t restore -e "backup_source_file=/path/to/backup/file" && \
deactivate

The restore process will first create a backup of the current setup before starting the restore. If you want to skip this backup, you can use the skip-backup tag:

1
2
3
source ~/.professional_venv/bin/activate && \
ansible-playbook start.yaml -t restore,skip-backup -e "backup_source_file=/path/to/backup/file" && \
deactivate

You will be prompted for your SSH and sudo passwords for authenticating the target node.

SSH password:
BECOME password[defaults to SSH password]:

Tip

If authenticating via private SSH key is possible, you can leave the value of SSH password blank. If there is no password requirement for sudo commands, you can leave the value of BECOME password blank as well.

During the restore process, the Ansible playbook will stop all related services, creates a backup, then restarts all services.