Add a Swift Command Line Interface (CLI) backup location
Add a Swift CLI backup location.
|
Backing up to Swift is an experimental feature. The Backup Service requires control over the data and structure of its destination locations. The backup destinations must be dedicated for use only by OpsCenter. Any additional directories or files in those destinations can prevent the Backup Service from properly conducting a Backup or Restore operation. |
-
Install a Swift CLI container to store your backup data.
-
Edit the
CLUSTER_NAME.conffile located at/etc/opscenter/clusters/for package installations, or atINSTALL_DIRECTORY/conf/clusters/for tarball installations. -
To enable Swift CLI for backup, add
use_swift_clitocluster_name.conf:[labs] use_swift_cli = True -
Optional: To set a delay before allowing the Openstack Swift backup to be verified, using the default delay, add
swift_cli_sync_status_delay_secondstocluster_name.conf:[labs] swift_cli_sync_status_delay_seconds = NThe delay default is 10 seconds. To change the delay, specify a number of seconds with
= N. -
Install the Swift client on each DSE node of the monitored DSE cluster:
pip install python-swiftclient==3.7.0 -
Access the Create (or Edit) Backup dialog.
-
In the Create or Edit Backup dialog, under Location, click +Add Location.
-
Select OpenStack Swift as the backup location.
-
Select the Credentials Source, and then provide the required credential information:
Credentials Source Credential Fields User-Supplied Credentials
-
Container Name
-
Sub Folder (optional)
-
Authentication Endpoint
-
User
-
Key
Detect Swift Environmental Variables
-
Container Name
-
Sub Folder (optional)
If any of credentials are incorrect or invalid, the location won’t validate.
-
-
Click Save Location.
The OpenStack Swift location is added to the Location pane of the Create or Edit Backup dialog.
Click the edit icon to edit a location and its retention policy if applicable.
Click the delete icon to delete a location. The
On Serverlocation cannot be deleted. -
Optional: For scheduled backups, indicate how long the snapshot data should be retained by selecting a retention policy. Retain All (default) saves the snapshot data indefinitely. Or, define a set period of time. After the snapshot data is older than the time set in Retention Policy, the snapshot data is deleted.
DataStax strongly recommends setting a retention policy to periodically remove backups. This practice helps to avoid long-term performance issues caused by an excessive number of backups.
-
Click Save Location.
The OpenStack Swift location is added to the Location pane of the Create or Edit Backup dialog.
-
Click Save Backup or Create Backup as applicable.