Skip to main content

automated_backups

Creates, updates, deletes, gets or lists an automated_backups resource.

Overview​

Nameautomated_backups
TypeResource
Idovh.vps.automated_backups

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
service_resource_namestringResource name of the service of your automated backup (wire: serviceResourceName)
rotationintegerNumber of rotation of your daily backup
schedulestring (time)Scheduled time of your daily backup (example: 15:04:05)
statestringBackup state (disabled, enabled)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectservice_nameReturns whether the automated backup is enabled, its rotation and the time of the daily backup.
detach_backupexecserviceName, restorePointUnmounts the restored backup from the VPS and returns the task that performs it.
rescheduleexecserviceName, scheduleChanges the time of the daily automated backup and returns the task that performs it.
restoreexecserviceName, restorePoint, typeRestores the VPS from the given restore point and returns the task that performs it.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
serviceNamestringService name
service_namestringService name (wire: serviceName)

SELECT examples​

Returns whether the automated backup is enabled, its rotation and the time of the daily backup.

SELECT
service_resource_name,
rotation,
schedule,
state
FROM ovh.vps.automated_backups
WHERE service_name = '{{ service_name }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Unmounts the restored backup from the VPS and returns the task that performs it.

EXEC ovh.vps.automated_backups.detach_backup
@serviceName='{{ serviceName }}' --required
@@json=
'{
"restorePoint": "{{ restorePoint }}"
}'
;