Files
3engines_doc/docs/openstackcli/How-to-backup-an-instance-and-download-it-to-the-desktop-on-connectVM-Cloud.html.md
2025-08-16 08:07:54 +05:30

107 lines
4.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

How to Backup an Instance and Download it to the Desktop on connectVM Cloud connectVM Hosting[🔗](#how-to-backup-an-instance-and-download-it-to-the-desktop-on-brand-name-connectVM-hosting "Permalink to this headline")
=========================================================================================================================================================================================================================
First, you will need to setup the connectVM CLI environment on the computer to which you want to download your instance. Depending on the operating system you are using, follow one of the links below:
[How to install connectVMClient for Linux on connectVM Cloud](How-to-install-connectVMClient-for-Linux-on-connectVM-Cloud.html.md)
[How to install connectVMClient GitBash for Windows on connectVM Cloud](How-to-install-connectVMClient-GitBash-or-Cygwin-for-Windows-on-connectVM-Cloud.html.md)
Assume that you are
> * logged into your connectVM Cloud hosting account with Horizon interface <https://console.connectvm.com/> and that
> * you have created an instance called *vm-john-01*.
![backupinst1.png](../_images/backupinst1.png)
List Instances in Your Project[🔗](#list-instances-in-your-project "Permalink to this headline")
-----------------------------------------------------------------------------------------------
List instances in your project using the following CLI command:
```
user@ubuntu:~$ connectVM server list
```
This will be the result:
| | | | | | |
| --- | --- | --- | --- | --- | --- |
| ID | Name | Status | Networks | Image | Flavor |
| 72170eb7-cee4-41a3-beea-c7d208446130 | vm-john-01 | ACTIVE | test\_network=192.168.2.172, 64.225.128.53 | Ubuntu 20.04 LTS | eo1.medium |
Create a Backup[🔗](#create-a-backup "Permalink to this headline")
-----------------------------------------------------------------
Now you can create a backup from command line interface (CLI) in the terminal (replace **72170eb7-cee4-41a3-beea-c7d208446130** with the ID of your instance):
```
user@ubuntu:~$ connectVM server backup create --name backup-01 72170eb7-cee4-41a3-beea-c7d208446130
```
Note
You can also add the **rotate<count>** parameter to the above command if you want to have control over the number of stored backups:
```
user@ubuntu:~$ connectVM server backup create --name backup-01 --rotate 2 72170eb7-cee4-41a3-beea-c7d208446130
```
You can see the backup “backup-01” in <https://console.connectvm.com//project/images>
![backupinst2.png](../_images/backupinst2.png)
or with CLI command:
```
user@ubuntu:~$ connectVM image list --private
```
The result would be:
```
+--------------------------------------+-----------+--------+
| ID | Name | Status |
+--------------------------------------+-----------+--------+
| 747d720d-a6f4-4554-bf56-16183e5fb7fa | backup-01 | active |
+--------------------------------------+-----------+--------+
```
Download the Backup File[🔗](#download-the-backup-file "Permalink to this headline")
-----------------------------------------------------------------------------------
Disk image is a raw copy of the hard drive of your virtual machine. You can download it using the following command (replace **72170eb7-cee4-41a3-beea-c7d208446130** with the ID of your disk image):
```
user@ubuntu:~$ connectVM image save --file backup-on-the-desktop 747d720d-a6f4-4554-bf56-16183e5fb7fa
```
Upload the Backed Up File[🔗](#upload-the-backed-up-file "Permalink to this headline")
-------------------------------------------------------------------------------------
After that, you can upload backup of your file using the Horizon dashboard:
Go to **Project → Compute → Images**.
![backupinst3.png](../_images/backupinst3.png)
Click on **“Create Image”**.
![backupinst4.png](../_images/backupinst4.png)
On this panel you must insert image name, choose backup file and backup format. Next click on “Create Image”.
![backupinst5.png](../_images/backupinst5.png)
You can also use CLI commands to upload the backup file:
```
user@ubuntu:~$ connectVM image create --file path/to/backup <backup_name>
```