Browse Source

add service to clean files older than N days

service-updates
Charles Reid 3 years ago
parent
commit
b838446576
  1. 12
      scripts/backups/pod-charlesreid1-backups-cleanolderthan.service.j2

12
scripts/backups/pod-charlesreid1-backups-cleanolderthan.service.j2

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
[Unit]
Description=Copy the latest pod-charlesreid1 backup to an S3 bucket
Requires=docker.service
After=docker.service
[Service]
Type=oneshot
StandardError=file:{{ pod_install_dir }}/.pod-charlesreid1-backups-cleanolderthan.service.error.log
StandardOutput=file:{{ pod_install_dir }}/.pod-charlesreid1-backups-cleanolderthan.service.output.log
ExecStart=/bin/bash -ac '. {{ pod_install_dir }}/environment; {{ pod_install_dir }}/scripts/backups/clean_olderthan.sh'
User=charles
Group=charles
Loading…
Cancel
Save