Global InfraGlobal Infra Cloud
Backup

Filesystem Backup

Terraform reference for Filesystem Backup.

Schema Properties

PropertyTypeDescription
location
Computed
objectWhere the backups are stored.
name
RequiredForceNew
stringName of the save set.
Examples:app-logs
paths
Required
list(string)The list of paths to backup.
Examples:["/var/log","/etc"]
resource_id
RequiredForceNew
stringThe 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
integerNumber of days of retention.
Examples:7
schedule
RequiredForceNew
objectWhen the backups run.
status
Computed
stringWhether 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                  }  }}

Usage Notes