Simple replication guide for R1soft Server backup manager and IBM Cloud Object Storage
s3cmd
. The process will depend on your server OS. For Debian/Ubuntu the process should just be apt-get install s3cmd
. For Redhat/Centos you will need to first add the Epel Repository and then run yum install s3cmd
..s3cfg
file.wget -O "$HOME/.s3cfg" https://raw.githubusercontent.com/greyhoundforty/COSTooling/master/s3cfg
cos_access_key
with your Cloud Object Storage Access Keycos_endpoint
with the COS endpoint you want to use. For example for the US-Geo region you can use s3-api.us-geo.objectstorage.softlayer.net
cos_secret_key
with your Cloud Object Storage Secret Keymkdir /backup
/usr/sbin/r1soft/bin/scripts/
directory. Create a file called icos.sh
and paste in the following#!/usr/bin/env
now=$(date "+%F-%H")
$(which tar) -czvf "$HOME/${now}.backup.tar.gz" /backup
$(which s3cmd) -c /root/.s3cfg put "$HOME/${now}.backup.tar.gz" s3://YOUR_REPLICATION_BUCKET
Replace YOUR_REPLICATION_BUCKET with the name of the Cloud Object Storage container you want to store the replicated volumes in.
chmod +x icos.sh
/backup
and under Replication Action choose Execute Script
. Choose icos.sh
from the Replication Script dropdown and then click Save.You can use the s3cmd
utility to pull the replicated volumes back to the server.
s3cmd get s3://YOUR_REPLICATION_BUCKET/replicated_volume.tar.gz