diff options
author | Till Höppner | 2017-05-31 18:00:15 +0200 |
---|---|---|
committer | Till Höppner | 2017-05-31 18:00:15 +0200 |
commit | 33c2361ab6f0d7bfc802d2fc10d2f29aef44867b (patch) | |
tree | 706f4c46e942433eb13cba20cedd816bb07226ae /images/backup/backup.service | |
parent | c20a9f58eb362ad84a1f0e3b911b89ffc9bf8451 (diff) | |
download | server-33c2361ab6f0d7bfc802d2fc10d2f29aef44867b.tar.gz server-33c2361ab6f0d7bfc802d2fc10d2f29aef44867b.tar.xz server-33c2361ab6f0d7bfc802d2fc10d2f29aef44867b.zip |
Add backup image
Diffstat (limited to 'images/backup/backup.service')
-rw-r--r-- | images/backup/backup.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/images/backup/backup.service b/images/backup/backup.service new file mode 100644 index 0000000..f4cce9b --- /dev/null +++ b/images/backup/backup.service @@ -0,0 +1,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 |