You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 28
Next »
If you like to delete a database snapshot you created or a safety copy of a database snapshot created in proceeding of a database restore operation.
Table of contents
General usage instructions
The general usage instructions for the cloud managment tool suite r3 can be found here.
Step-by-step guide
Show help context
~$ r3 db destroy -h
# Response
Destroy Restore-Snapshots/Database Servers of this Environment.
optional arguments:
-h, --help show this help message and exit
--loglevel {INFO,ERROR}
Define Loglevel for Execution (default: INFO)
--db-id DB_ID Destroy Restore-Database Server.
--snapshot-id SNAPSHOT_ID
Destroy Restore-Snapshot.
How to delete a database backup
- Obtain the identifier of the snapshot e.g. by listing the available snapshots using r3 db list --snapshots command
Provide the identifier to the command line r3 db destroy --snapshot-id as shown in the example.
~$ r3 db destroy --snapshot-id restore-snapshot-2017-10-23-10-35
# Response
This is a destructive operation. It may cause data loss!
Environment: test Project: backend Company: root360
+-----------------------------------+----------------------+---------+-----------------+
| SnapshotIdentifier | DataBaseIdentifier | Status | PercentProgress |
+-----------------------------------+----------------------+---------+-----------------+
| restore-snapshot-2017-10-23-10-35 | rr15mnrj9rcaecp | deleted | 100 |
+-----------------------------------+----------------------+---------+-----------------+
Related articles
-
Page:
-
Page:
-
Page:
-
Page:
-
Page: