Manual Backup Deletion and Retention


Problem: You want to manually delete many backups at once

Solution: use the A3 enforceRetain command

A2 users, please follow the instructions in detail here.


To delete backups or vaults in bulk on the A3 you can use the following command on the A3 console CLI. Please note- this command must be invoked within the running docker container:

sudo docker-compose exec --user alike alike /usr/local/sbin/enforceRetain [siteId] [uuid] [retainNum]

The arguments to the command are:

siteId: 0 for your ADS (onsite backups) or 1 for your ODS (offsite vaults).

uuid: The uuid of the target VM from the hypervisor

retainNum: The number of backups/vaults your wish to keep. Deleted versions will start from the oldest.


For example:

sudo docker-compose exec --user alike alike /usr/local/sbin/enforceRetain 1 dce1203f-c751-1111-229c-01d1c355102c 5

This will retain 5 backups offsite (ODS) for VM with uuid dce1203f-c751-1111-229c-01d1c355102c. All vaults older than the most recent 5 will be purged.


If instead, you wish to delete all backups for the example VM on your ADS, you can run the following:

sudo docker-compose exec --user alike alike /usr/local/sbin/enforceRetain 0 dce1203f-c751-1111-229c-01d1c355102c 0