Change backup storage destination
For the complete documentation index see: llms.txt
All documentation pages available in markdown.
This page describes how to move an Aerospike Backup Service (ABS) routine to a new storage destination without losing its incremental backup history.
ABS does not copy backup files when you change a routine’s storage name.
After the change, ABS sees only the backups that already exist in the new destination.
Incremental backups depend on the metadata.yaml files in that destination.
The examples use BASE_URL for the ABS listen address, for example http://localhost:8080.
Change the storage destination for a routine
To change the storage destination, edit the destination in the configuration file and reload the configuration.
On Linux, the configuration file is /etc/aerospike-backup-service/aerospike-backup-service.yml by default.
-
Run a full backup before you change storage destinations, and wait for it to finish. See Trigger an on-demand backup.
-
Pause the routine:
Terminal window curl -X PUT "$BASE_URL/v1/config/routines/ROUTINE_NAME/disable"The
disableendpoint also cancels a running backup of the routine, including the full backup from step 1 if it has not finished. To pause the routine in the YAML file instead, setdisabled: trueon the routine and run theapplycall from step 5 now. Do not comment outinterval-cron, because it is required. -
Choose one of the following:
- Migrate existing data: Manually copy the routine’s
backup/directory, includingmetadata.yaml, to the new storage location. If the routine also has incremental backups, copy theincremental/directory too, so ABS finds the full incremental history. - New backup: Copy nothing. After step 6, run a full backup so incremental backups have a baseline in the new location.
- Migrate existing data: Manually copy the routine’s
-
Change the routine’s
storagevalue in the configuration file. If you chose a new backup, check that the destination does not already contain ametadata.yamlfile underbackup/orincremental/from earlier use. -
Reload configuration:
Terminal window curl -X POST "$BASE_URL/v1/config/apply"Restarting ABS also reloads the file. On Linux, restart ABS with
systemctl restart aerospike-backup-service. See Service management. -
Resume scheduling:
Terminal window curl -X PUT "$BASE_URL/v1/config/routines/ROUTINE_NAME/enable"The
enableendpoint writes the configuration in ABS memory back to the file, so call it only afterapplyhas loaded yourstorageedit. If you paused the routine in the YAML file, setdisabled: falseand run theapplycall again instead.
To verify the new destination, trigger a full backup with POST /v1/backups/full/ROUTINE_NAME.
Then check that GET /v1/backups/full lists the new backup.
How ABS finds backups after a reload
After ABS restarts or reloads the configuration, it writes all new backups to the new destination.
It also scans the new destination once for each routine, looking for the most recent metadata.yaml files under ROUTINE_NAME/backup/ and ROUTINE_NAME/incremental/.
If it finds a full backup’s metadata.yaml, ABS uses it as the full backup baseline, regardless of the age of the backup.
If a later incremental backup’s metadata.yaml also exists, ABS uses that later timestamp instead.
For how each incr-mode uses these files, see metadata.yaml and the incremental chain.
If it does not find metadata.yaml, ABS does not run incremental jobs.
ABS logs incremental backup skipped with an error value such as backup skipped: initial full backup not yet completed.
Incremental backups are skipped until you complete a new full backup.
See Backup skip outcomes.
View your backups
GET /v1/backups/full lists only the backups in the storage that the routine is configured to use.
After a storage change, the list shows the backups you copied to the new destination and the backups ABS writes there after the change.
Backups that remain only in the old destination do not appear.
To restore a backup from the old destination, use a path restore with the old storage as source.