Skip to main content

CEPH OnDemand Backup

Note

This is not official documentation for AutomationSuite

We can take an on-demand ceph objectstore backup via ceph-on-demand-backup

[root@server0 ~]# wget -O ~/objectstore-migration.sh https://download.uipath.com/automation-suite/objectstore-migration.sh
--2023-02-01 15:18:23-- https://download.uipath.com/automation-suite/objectstore-migration.sh
Resolving download.uipath.com (download.uipath.com)... 104.19.252.9, 104.19.251.9, 2606:4700::6813:fb09, ...
Connecting to download.uipath.com (download.uipath.com)|104.19.252.9|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27661 (27K) [application/x-sh]
Saving to: ‘/root/objectstore-migration.sh’

/root/objectstore-migration.sh 100%[=========================================================================================================================================>] 27.01K --.-KB/s in 0s

2023-02-01 15:18:23 (65.8 MB/s) - ‘/root/objectstore-migration.sh’ saved [27661/27661]

[root@server0 ~]#
[root@server0 ~]# object_size=$(kubectl -n rook-ceph exec deploy/rook-ceph-tools -- ceph status --format json | jq -r '.pgmap.data_bytes')
[root@server0 ~]# echo "You need '$(numfmt --to=iec-i $object_size)' storage space"
You need '915Mi' storage space
[root@server0 ~]# export CEPH_BACKUP_PATH=/datadisk/backup
[root@server0 ~]# mkdir -p $CEPH_BACKUP_PATH
[root@server0 ~]# export CEPH_OPERATION=backup
[root@server0 ~]# chmod +x objectstore-migration.sh
[root@server0 ~]# ./objectstore-migration.sh
configmap/ceph-objectstore-ondemand-backup-restore-cm created
serviceaccount/ceph-objectstore-ondemand-backup-restore-sa created
role.rbac.authorization.k8s.io/ceph-objectstore-ondemand-backup-restore-role created
rolebinding.rbac.authorization.k8s.io/ceph-objectstore-ondemand-backup-restore-rolebinding created
job.batch/ceph-objectstore-ondemand-backup-job created
job.batch/ceph-objectstore-ondemand-backup-job condition met
[root@server0 ~]#