Backup
Filesystem Save Set
Terraform reference for Filesystem Save Set.
Schema Properties
| Property | Type | Description |
|---|---|---|
location Computed | object | Where the backups are stored. |
name RequiredForceNew | string | Name of the save set. Examples: app-logs |
paths Required | list(string) | The list of paths to backup. Examples: ["/var/log","/etc"] |
resource_id RequiredForceNew | string | The ID of the resource this save set applies to, typically a server hostname. This server should exists in the inventory and be registered with the backup service. Examples: cvtest0252e2.csbackup.sb.eu.ginfra.net |
retention RequiredForceNew | integer | Number of days of retention. Examples: 7 |
schedule RequiredForceNew | object | When the backups run. |
status Computed | string | Whether the scheduled backups for this save set are enabled or disabled. |
resource "gi_backup_filesystem_save_set" "0" { attributes = { description = "Back up application logs daily at 22:30, kept for 7 days." name = "Daily backup" value = { name = "app-logs" paths = ["/var/log", "/etc"] resource_id = "myserver01" retention = 7 schedule = { frequency = "daily" hour = 22 minute = 30 }} }}