Add backup policy to be set as daily or weekly

Signed-off-by: Jason Rothstein <fdragon@fdragon.org>
This commit is contained in:
2025-04-27 20:05:53 -05:00
parent 2c061156e7
commit 1df1f4595a
4 changed files with 20 additions and 0 deletions

View File

@@ -1,5 +1,10 @@
resource "digitalocean_droplet" "this" {
backups = "true"
backup_policy {
plan = var.backup_policy_plan
weekday = var.backup_policy_weekday
hour = var.backup_policy_hour
}
image = var.image_name
ipv6 = "true"
lifecycle {