Skip to main content

volume_instance_backup_schedules

Creates, updates, deletes, gets or lists a volume_instance_backup_schedules resource.

Overview​

Namevolume_instance_backup_schedules
TypeResource
Idrailway.storage.volume_instance_backup_schedules

Fields​

The following fields are returned by SELECT queries:

One row per VolumeInstanceBackupSchedule.

NameDatatypeDescription
idstring
namestring
created_atstring (date-time)
cronstring
kindstring (DAILY, MONTHLY, WEEKLY)
retention_secondsinteger

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectvolume_instance_idList backups schedules of a volume instance. Backed by the Railway GraphQL query volumeInstanceBackupScheduleList.
updateupdatekinds, volume_instance_idManage schedule for backups of a volume instance. Backed by the Railway GraphQL mutation volumeInstanceBackupScheduleUpdate.

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
volume_instance_idstringThe id of the volume instance to list the schedules of.
kindsarrayThe frequency/retention of the backups.

SELECT examples​

List backups schedules of a volume instance. Backed by the Railway GraphQL query volumeInstanceBackupScheduleList.

SELECT
id,
name,
created_at,
cron,
kind,
retention_seconds
FROM railway.storage.volume_instance_backup_schedules
WHERE volume_instance_id = '{{ volume_instance_id }}' -- required
;

UPDATE examples​

Manage schedule for backups of a volume instance. Backed by the Railway GraphQL mutation volumeInstanceBackupScheduleUpdate.

UPDATE railway.storage.volume_instance_backup_schedules
SET

WHERE
kinds = '{{ kinds }}' --required
AND volume_instance_id = '{{ volume_instance_id }}' --required
RETURNING
result;