mirror of
https://github.com/Dvorinka/Productier.git
synced 2026-06-04 04:23:00 +00:00
first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[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
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run Productier backup job daily
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 02:30:00
|
||||
Persistent=true
|
||||
Unit=productier-backup.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Productier restore drill job
|
||||
After=docker.service
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
WorkingDirectory=/opt/productier
|
||||
EnvironmentFile=-/opt/productier/.env.production
|
||||
Environment=DRILL_CLEANUP_ON_EXIT=1
|
||||
Environment=DRILL_NOTIFY_ON_SUCCESS=1
|
||||
ExecStart=/usr/bin/env bash -lc '/opt/productier/scripts/ops/staging-drill.sh /opt/productier/.env.production latest /opt/productier/backups'
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run Productier restore drill weekly
|
||||
|
||||
[Timer]
|
||||
OnCalendar=Sun *-*-* 03:30:00
|
||||
Persistent=true
|
||||
Unit=productier-restore-drill.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user