randomayzer/deploy/randomayzer-backup.service

11 lines
343 B
Desktop File

[Unit]
Description=Randomayzer backup and clean restore drill
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
User=RANDOMAYZER_OPERATOR
Environment=RANDOMAYZER_ENV_FILE=/etc/randomayzer/production.env
WorkingDirectory=/opt/randomayzer
ExecStart=/opt/randomayzer/tools/db-backup-daily.sh /var/backups/randomayzer
UMask=0077