Fix restic backup service

This commit is contained in:
Cyryl Płotnicki 2019-03-04 14:36:40 +00:00
parent 85075dd453
commit 7477514c9d
3 changed files with 6 additions and 3 deletions

View file

@ -2,7 +2,7 @@
Description=Restic backup service
[Service]
ExecStart=restic -p $HOME/.vault/restic-password-file -r sftp:fetcher@10.0.0.101:/mnt/data/backup-targets/ --exclude-file $HOME/.vault/restic-exclude --verbose backup $HOME/
ExecStart=/home/cyryl/tools/backup.sh
[Install]
WantedBy=default.target

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

3
tools/backup.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
restic -p "$HOME/.vault/restic-password-file" -r sftp:fetcher@10.0.0.101:/mnt/data/backup-targets/ --exclude-file "$HOME/.vault/restic-exclude" --verbose backup "$HOME/"