How to back up a Bare Metal Pod SecNumCloud instance
Objective
You can use a tool such as Restic to automate backups of your instances to Object Storage. Backups can be used to restore your data in the event of an issue.
Requirements
- An instance
- An Object Storage Access Key
- Restic installed
- S3cmd installed and configured with the Access Key
Instructions
The Restic backup tool is used to describe one possible backup method. You are free to choose whichever solution suits you.
Create a bucket to store backups
Run the following command:
Initialise the backup repository
Start by choosing a password to encrypt your backups. This guide uses GPG for this purpose:
Note this password in a safe location, along with your S31 credentials. Next, configure Restic via environment variables. This includes sensitive information, such as your S3 secret and the repository password. Therefore, ensure that the following commands do not appear in your shell history file. Adjust the environment variables according to your bucket name, region and API credentials.
Once the environment is configured, run the Restic command to initialise the repository:
Restic is now ready to use with S3. Try creating a backup:
A snapshot has been created.
Check the bucket contents:
A backup has been created and stored in the S3 bucket.
Go further
If you need training or technical assistance to implement our solutions, contact your sales representative or go to the Professional Services page to get a quote and request a custom analysis of your project from our Professional Services team experts.
Join our community of users.
1: S3 is a trademark of Amazon Technologies, Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.