Skip to content

Privacera Manager Backup and Restore

The Privacera Manager installation contains the custom configuration, generated keys and certificates, and Terraform state. To ensure that you can recover from any failure, it is important to back up the Privacera Manager installation.

Backup

Run the following commands to back up the Privacera Manager installation:

Bash
# cd to your home directory or any other directory where you want to store the backup file
cd ~
PM_BACKUP_FILE=privacera-manager-$(date +%Y-%m-%d).tar.gz

# Backup the Privacera Manager installation using sudo as some files are owned by root
sudo \
tar czf $PM_BACKUP_FILE \
-C ~/privacera .

# Store the $PM_BACKUP_FILE to a safe and secure location as it has sensitive information

Restore

To restore the Privacera Manager installation from a backup, follow these steps. Ensure that you are logged in as the same user who took the backup and has the necessary permissions to restore the files. Ensure that you are on a new host which is configured as per Prerequisites section.

Run the following commands to restore the Privacera Manager installation:

Bash
1
2
3
4
mkdir -p ~/privacera

# cd to the directory where the backup file is stored
tar xzf $PM_BACKUP_FILE -C ~/privacera

Comments