Backup
Filesystem Backup
Terraform reference for Filesystem Backup.
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_backup" "example" { attributes = { name = "app-logs" paths = ["/var/log", "/etc"] resource_id = "cvtest0252e2.csbackup.sb.eu.ginfra.net" retention = 7 schedule = { frequency = "daily" hour = 22 minute = 30 } }}