Managing Backups
The backup commands provide tools for managing server backups in your cloud infrastructure. You can create manual backups, restore from backup slots, and upload backups to S3-compatible storage.
Alias: bkp
Commands
1. Listing Backups
Lists all backup profiles. Use the flags to filter by region or data center.
arvan iaas backup list
Alias: ls
Flags:
--region,-r: filter by region code (optional) Example:ir-central1--az,-a: filter by data center (optional) Example:ir-central1-a
Example:
$ arvan iaas backup list --az ir-central1-a
Output:
BACKUP NAME INSTANCE NAME VOLUME ID STATUS SLOTS AZ
data-backup my-server a1b2c3d4-5678-90ab-cdef-123456789012 enabled 3/10 ir-central1-a
app-backup app-server b2c3d4e5-6789-01bc-def0-234567890123 enabled 5/10 ir-central1-a
Total backup profiles: 2
2. Showing Backup Details
Shows detailed information about a backup's configuration.
arvan iaas backup show <backup-name>
Alias: sh
Arguments:
backup-name(required): the backup name
Example:
$ arvan iaas backup show my-backup
Output:
BACKUP DETAILS
--------------
Backup Name: my-backup
Volume ID: a1b2c3d4-5678-90ab-cdef-123456789012
Instance ID: x1y2z3w4-5678-90ab-cdef-123456789012
Instance Name: my-server
Status: enabled
Slots Used: 3/10
Next Backup: 2026-02-18 00:00:00
Auto S3: false
AZ: ir-central1-a
Created At: 2026-01-15 10:30:00
3. Enabling Backup
Enables automatic backup for a server. The backup is created in the same data center as the server. Each backup profile works like a job that regularly backs up the server and stores each backup as a slot.
You can't have multiple backup profiles for one server, but you can have multiple slots under one profile.
arvan iaas backup enable
Flags:
--name,-n: the backup name (optional)--instance,-i: the server ID (required)
Example:
$ arvan iaas backup enable --instance c11d6cb4-7a31-4192-8ed2-64c39f57d839 --name my-backup
Output:
Backup 'my-backup' enabled successfully for instance c11d6cb4-7a31-4192-8ed2-64c39f57d839 in ir-central1-a
Notes:
- The availability zone is detected automatically from the server.
- The backup is created in the same AZ as the server.
- If you don't specify a name, a default name is generated based on the server name.
4. Disabling Backup
Disables backup for a server, which stops future automatic backups.
Note that this also deletes all existing slots that belong to this profile.
arvan iaas backup disable <backup-name>
Flags:
--force,-f: skip confirmation
Example:
$ arvan iaas backup disable my-backup --force
Output:
Backup 'my-backup' disabled successfully
Notes:
- This command deletes all existing backup slots.
- This operation can't be undone.
5. Creating a Manual Backup
Creates a backup slot manually for an existing profile.
arvan iaas backup create <backup-profile-name>
Alias: cr
Example:
$ arvan iaas backup create my-backup
Output:
Manual backup slot created successfully for 'my-backup'
Notes:
- The backup profile must already exist (use
enablefirst). - The manual backup slot is created immediately.
6. Renaming a Backup
Renames a backup profile.
arvan iaas backup rename <backup-name> <new-name>
Example:
$ arvan iaas backup rename old-name new-name
Output:
Backup 'old-name' renamed to 'new-name' successfully.
7. Listing Backup Slots
Lists all slots that belong to a specific profile.
arvan iaas backup slot-list <backup-name>
Example:
$ arvan iaas backup slot-list my-backup
Output:
BACKUP ID SLOT NAME STATUS TYPE USED SIZE (GB) CREATED AT
f85dda1a-6b6d-42ca-a322-f631a7264f71 Slot 1 - Backup 1 available manual 0.00 2026-02-01 10:30:45
90ff7639-8f4d-4998-ad85-e4ad2e8d1db4 Slot 2 - Backup 2 available scheduled 0.00 2026-01-30 00:00:12
Total backup slots: 2
8. Deleting a Backup Slot
Deletes a specific slot using its ID (Backup ID), which you get from the output of slot-list.
arvan iaas backup slot-delete <slot-backup-id>
Example:
# First, get the BACKUP ID from slot-list
$ arvan iaas backup slot-list my-backup
BACKUP ID SLOT NAME STATUS TYPE
f85dda1a-6b6d-42ca-a322-f631a7264f71 Slot 1 - Backup 1 available manual
# Then delete the slot using the BACKUP ID
$ arvan iaas backup slot-delete f85dda1a-6b6d-42ca-a322-f631a7264f71 --force
Output:
Backup slot 'f85dda1a-6b6d-42ca-a322-f631a7264f71' deleted successfully
Notes:
- Always use the BACKUP ID from the output of the
slot-listcommand. - Deleting a slot is permanent and can't be undone.
9. Restoring a Backup
Restoring directly onto the current server isn't supported. Currently, to restore a slot, you need to enter the backup slot ID as the OS volume when creating a new server.
arvan iaas backup restore
Example:
$ arvan iaas backup restore
Output:
Direct restore to an instance is not supported.
Please create a new instance using the backup slot ID as the OS volume, and then delete the old instance if you no longer need it.
Example:
arvan iaas server create --name new-server --volume-size 50 --flavor <flavor-id> --os-volume <backup-slot-id>
Notes:
- Restoring directly onto an existing server isn't currently supported.
- To restore from a backup, create a new server with the backup slot ID as the OS volume.
- After you confirm the new server works, you can delete the old server.
10. Uploading a Backup to S3
Uploads a backup slot to S3-compatible storage.
arvan iaas backup s3-upload <slot-id>
Flags:
--region,-r: the S3 region code (required)--bucket,-b: the S3 bucket name (required)
Example:
$ arvan iaas backup s3-upload f85dda1a-6b6d-42ca-a322-f631a7264f71 --region ir-thr-si1 --bucket my-backups
Output:
Backup slot 'f85dda1a-6b6d-42ca-a322-f631a7264f71' uploaded successfully to S3 bucket 'my-backups' in region 'ir-thr-si1'
If another upload is in progress for the same backup profile, this command fails.
11. Listing S3 Providers
Lists all compatible S3 providers for storing/archiving backup slots.
arvan iaas backup s3-provider-list
Example:
$ arvan iaas backup s3-provider-list
Output:
ID NAME DEFAULT
arvancloud ArvanCloud Storage Yes
aws-s3 AWS S3 No
12. Showing S3 Provider Details
Shows detailed information, including the available regions and buckets, for a provider.
arvan iaas backup s3-provider-show <provider-id>
Example:
$ arvan iaas backup s3-provider-show arvancloud
Output:
S3 PROVIDER DETAILS
-------------------
ID: arvancloud
AVAILABLE REGIONS AND BUCKETS
------------------------------
REGION NAME CODE BUCKETS
Tehran ir-thr-si1 3 (my-backups, ...)
Tabriz ir-tbz-dc1 2 (backup-storage, ...)
Tehran (ir-thr-si1) Buckets:
BUCKET NAME
my-backups
production-backups
archive-storage
13. Getting Backup Counts
Gets the total number of backups across all regions and data centers.
arvan iaas backup counts
Example:
$ arvan iaas backup counts
Output:
BACKUP COUNTS
-------------
Total: 25
COUNTS BY AVAILABILITY ZONE
---------------------------
ir-central1-a 15
ir-central1-b 10
Common Scenarios
Enabling Backup and Creating a Manual Slot
# 1. Enable backup on an instance (AZ is auto-detected)
arvan iaas backup enable --instance c11d6cb4-7a31-4192-8ed2-64c39f57d839 --name my-app-backup
# 2. Create a manual backup slot immediately
arvan iaas backup create my-app-backup
# 3. List backup slots to verify
arvan iaas backup slot-list my-app-backup
Deleting a Backup Slot
# 1. List slots to get the backup ID
arvan iaas backup slot-list my-app-backup
# Output shows:
# BACKUP ID SLOT NAME STATUS
# f85dda1a-6b6d-42ca-a322-f631a7264f71 Slot 1 - Backup 1 available
# 2. Delete using the backup ID
arvan iaas backup slot-delete f85dda1a-6b6d-42ca-a322-f631a7264f71 --force
Uploading to S3
# 1. List S3 providers
arvan iaas backup s3-provider-list
# 2. View provider details and available regions
arvan iaas backup s3-provider-show arvancloud
# 3. Get the slot ID from backup slots
arvan iaas backup slot-list my-app-backup
# 4. Upload the slot to S3
arvan iaas backup s3-upload f85dda1a-6b6d-42ca-a322-f631a7264f71 --region ir-thr-si1 --bucket my-backups
Managing Multiple Backups
# List all backups
arvan iaas backup list
# View backup counts by region
arvan iaas backup counts
# Disable a backup when no longer needed
arvan iaas backup disable old-app-backup --force
Best Practices
- AZ auto-detection: the availability zone (AZ) is detected automatically from the server when you enable backup.
- Backup slots: each backup profile stores versions as slots.
- Backup profiles: only one backup profile is allowed per server, but multiple slots can be defined in that profile.
- Manual backups: you can always create manual slots with the
createcommand. - Slot deletion: always use the BACKUP ID from the
slot-listoutput to delete a slot. - Irreversible actions: deleting a slot or disabling backup can't be undone.
- Restore limitation: direct restore isn't supported, and you need to create a new server from the slot.
- S3 integration: uploading to S3 lets you keep versions outside the main environment for disaster recovery.
- Automation: use the
--forceflag to skip confirmation in automated scripts.