job "backup_weekly" { datacenters = ["dc1"] type = "batch" priority = "60" periodic { cron = "@weekly" // Do not allow overlapping runs. prohibit_overlap = true } group "backup-psql" { task "main" { driver = "docker" config { image = "superboum/backup-psql-docker:gyr3aqgmhs0hxj0j9hkrdmm1m07i8za2" volumes = [ // Mount a cache on the hard disk to avoid filling the SSD "/mnt/storage/tmp_bckp_psql:/mnt/cache" ] } template { data = <