Fix restic backup service
This commit is contained in:
parent
85075dd453
commit
7477514c9d
3 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
|
|
3
tools/backup.sh
Executable file
3
tools/backup.sh
Executable 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/"
|
Loading…
Reference in a new issue