[Unit]
Description=Productier production backup job
After=docker.service
Requires=docker.service

[Service]
Type=oneshot
WorkingDirectory=/opt/productier
EnvironmentFile=-/opt/productier/.env.production
Environment=BACKUP_KEEP_COUNT=14
ExecStart=/usr/bin/env bash -lc '/opt/productier/scripts/ops/backup-job.sh /opt/productier/.env.production /opt/productier/backups ${BACKUP_KEEP_COUNT}'
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
