How to back up an SNC Cloud Platform Object Storage bucket
Find out how to back up an SNC Cloud Platform Object Storage bucket to a remote Object Storage
Objective
You can use a tool such as Rclone to automate backups of your bucket data to a remote Object Storage. The backups can be used to restore your data in the event of a problem.
Requirements
- An Object Storage bucket
- Access Keys generated for the source and destination Object Storages
- Rclone installed
- S3cmd installed and configured with the Access Keys
Instructions
The Rclone backup tool is used here to describe one possible method for performing backups. Users are free to choose the solution that suits them.
Create a bucket to store the backups
Enter the following command:
To be able to retrieve different versions of a file sent to this bucket, you can enable object versioning for this bucket.
Configure the Rclone source and destination
Create a ~/.config/rclone/rclone.conf configuration file:
Configure the source-s3 and the target-s3, ideally across two SNC Cloud Platform regions.
Once the environment is configured, the following rclone command can be used to validate the configuration before a backup:
Schedule a recurring task
Once the command has been tested, you can schedule a recurring task.
1. Create the systemd service unit:
2. Create the systemd timer unit:
3. Reload the systemd configuration and enable the timer:
4. Check the configuration:
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.