How to Automate Backups with Alibaba Cloud Object Storage Service

Prerequisites

Step 0 — Add a New User (Optional)

Step 1 — Create OSS Bucket

Step 2 — Create Access Key

Step 3 — Setup Minio Client

cd ~
wget https://dl.minio.io/client/mc/release/linux-amd64/mc

Step 4 — Configure Minio Client for Usage with Alibaba Cloud OSS

Step 5 — Create a Backup Script

#!/usr/bin/env bashSOURCE=$1
DESTINATION=$2
mc cp --json --recursive $SOURCE $DESTINATION

Step 4 — Schedule Regular Script Execution with Crontab

no crontab for nick - using an empty oneSelect an editor.  To change later, run 'select-editor'.
1. /bin/ed
2. /bin/nano <---- easiest
3. /usr/bin/vim.basic
4. /usr/bin/vim.tiny
Choose 1-4 [2]:
mkdir ~/backup-demo
echo test1 > ~/backup-demo/test1.txt

Further Considerations

  • It makes sense to compress your backups if you need to backup a large amount of data.
  • You should make sure to monitor any automated backups. This will enable you to fix any problems as they come up and make sure your data is backed up regularly.
  • A backup that cannot be restored is useless. You should make sure your backups and backup procedures work as expected by testing them regularly.

Conclusion

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

REST API URI design with Order management example.

Why is Python so Popular

Things you need to know before hiring a Python Developer

The Integration of AMAP Algorithm Engineering: Best Practices and Thoughts

Plasma FHIR Introduction

Making a Flutter Todo App from Scratch Part 3

Dealing With (Falsely) Failed Automated Cases

The “DevOps Engineer” problem

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

How to achieve application failover with AWS’s Auto Scaling Groups (Based on the updated GUI of…

How to store multiple Organization's CloudTrail Logs into an S3 Bucket of a separate account

Elasticsearch snapshot backup/restore to S3

S3 Access Points