Reference documentation and code samples for the Cloud Spanner Instance Admin V1 API module Google::Cloud::Spanner::Admin::Instance::V1::Instance::DefaultBackupScheduleType.
value: 1 A default backup schedule isn't created automatically when a new database
is created in the instance.
AUTOMATIC
value: 2 A default backup schedule is created automatically when a new database
is created in the instance. The default backup schedule creates a full
backup every 24 hours. These full backups are retained for 7 days.
You can edit or delete the default backup schedule once it's created.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Cloud Spanner Instance Admin V1 API - Module Google::Cloud::Spanner::Admin::Instance::V1::Instance::DefaultBackupScheduleType (v2.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.0 (latest)](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/latest/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [2.0.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/2.0.1/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [1.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.6.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [1.5.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.5.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [1.4.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.4.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [1.3.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.3.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [1.2.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.2.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [1.1.1](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.1.1/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [1.0.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/1.0.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.16.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.16.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.15.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.15.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.14.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.14.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.13.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.13.2/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.12.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.12.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.11.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.11.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.10.2](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.10.2/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.9.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.9.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.8.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.8.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.7.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.7.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.6.0](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.6.0/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType)\n- [0.5.5](/ruby/docs/reference/google-cloud-spanner-admin-instance-v1/0.5.5/Google-Cloud-Spanner-Admin-Instance-V1-Instance-DefaultBackupScheduleType) \nReference documentation and code samples for the Cloud Spanner Instance Admin V1 API module Google::Cloud::Spanner::Admin::Instance::V1::Instance::DefaultBackupScheduleType.\n\nIndicates the\n[default backup\nschedule](https://cloud.google.com/spanner/docs/backup#default-backup-schedules)\nbehavior for new databases within the instance.\n\nConstants\n---------\n\n### DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED\n\n**value:** 0 \nNot specified.\n\n### NONE\n\n**value:** 1 \nA default backup schedule isn't created automatically when a new database\nis created in the instance.\n\n### AUTOMATIC\n\n**value:** 2 \nA default backup schedule is created automatically when a new database\nis created in the instance. The default backup schedule creates a full\nbackup every 24 hours. These full backups are retained for 7 days.\nYou can edit or delete the default backup schedule once it's created."]]