How to back up an SNC Cloud Platform instance
Find out how to back up an SNC Cloud Platform instance to Object Storage
Objective
You can use a tool such as Restic to automate backups of your instance data to Object Storage. The backups can be used to restore your data in the event of a problem.
Requirements
- An instance
- An Access Key generated for Object Storage
- Restic installed
- S3cmd installed and configured with the Access Key
Instructions
The Restic backup tool is used to describe one possible method for performing backups. You are free to choose the solution that suits you best.
Creating a bucket to store the backups
Enter the following command:
Initialising the backup repository
Start by choosing a password to encrypt your backups. In this guide, GPG is used for this purpose:
Make a note of this password in a safe place, along with your S31 credentials. Next, the Restic configuration will be placed in environment variables. This includes sensitive information, such as your S3 secret and the repository password. As a result, make sure that the following commands do not appear in your shell history file. Adjust the contents of the environment variables according to your bucket name, the region, and your user's API credentials.
Once the environment is configured, the Restic command can be called to initialise the repository:
Restic is now ready to be used with S3. Try creating a backup:
A snapshot has been created.
Check the contents of the bucket:
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 click on this link to get a quote and request a personalised analysis of your project from our Professional Services experts.
Join our community of users.
1: S3 is a trademark belonging to Amazon Technologies, Inc. OVHcloud's services are not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.