summaryrefslogtreecommitdiff
path: root/images/backup/backup.service
blob: f4cce9b03a3336cd12a77565691d04baf38d5991 (plain)
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Duplicity backups
Requires=docker.service

[Service]
Restart=no
ExecStart=/bin/sh -c 'docker-compose -f /storage/disk0/server15_backup/backup.yml up --no-recreate'
ExecStop=/bin/sh -c 'docker-compose -f /storage/disk0/server15_backup/restore.yml stop'

[Install]
WantedBy=local.target