Files
3engines_doc/docs/openstackcli/Use-script-to-create-daily-weekly-and-monthly-rotating-backups-of-virtual-machines-using-on-3Engines-Cloud.html.md
2025-07-04 09:34:25 +05:30

40 lines
2.7 KiB
Markdown
Raw 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.

Use script to create daily weekly and monthly rotating backups of virtual machines on 3Engines Cloud[🔗](#use-script-to-create-daily-weekly-and-monthly-rotating-backups-of-virtual-machines-on-brand-name "Permalink to this headline")
=========================================================================================================================================================================================================================================
**Rotating backups** in 3Engines refer to a backup strategy where older backups are automatically deleted after a predefined number of backups are created. This ensures that storage does not grow indefinitely while still maintaining a set number of recent backups for disaster recovery.
backup create vs. image create[🔗](#backup-create-vs-image-create "Permalink to this headline")
----------------------------------------------------------------------------------------------
There are two ways of creating backups under 3Engines, using one of these two commands:
**3Engines server backup create** and **3Engines server image create**
Here is how they compare:
Table 4 Comparison of Backup and Image Creation Commands[🔗](#id1 "Permalink to this table")
| Feature | `3Engines server backup create` | `3Engines server image create` |
| --- | --- | --- |
| Association with VM | Associated using **backup** image property | Associated using backup name |
| Rotation support | Rotation with `--backup-type` and incremental backups | No built-in rotation support |
| Classification in Horizon | Marked as **image** | Marked as **snapshot** |
| Horizon **Select Boot Source** | Choose **Instance Snapshot** | Choose **Image** |
| Purpose | Primarily used for backups, can be rotated and managed | Creates a single VM snapshot without rotation |
| Multiple rotating schedules | No, only one | Yes (daily, weekly, monthly etc.) |
| Incremental backup support | Yes, supports incremental backups | No, always creates a full snapshot |
| Best usage scenario | Automated backup strategies with rotation | Capturing the current state of a VM for cloning or rollback |
| Can be scripted? | Yes | Yes |
In this article, you will learn how to create multiple series of rotating backups with a script which uses multiple **3EnginesClient** commands to achieve this goal.
Prerequisites[🔗](#prerequisites "Permalink to this headline")
-------------------------------------------------------------
No. 1 **Account**
You need a 3Engines Cloud hosting account with access to the Horizon interface: <https://horizon.3Engines.com>
No. 2 **VM which will be backed up**
You need a virtual machine which will be backed up. If you dont have one, you can create it by following one of these articles: