diff --git a/.config/systemd/user/restic-backup.service b/.config/systemd/user/restic-backup.service index 4ef0ff13..c56d5417 100644 --- a/.config/systemd/user/restic-backup.service +++ b/.config/systemd/user/restic-backup.service @@ -1,8 +1,8 @@ [Unit] -Description=Restic backup service +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 diff --git a/fedora/up.sh b/fedora/up.sh index 7e37091b..7089a8a3 100755 --- a/fedora/up.sh +++ b/fedora/up.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/tools/backup.sh b/tools/backup.sh new file mode 100755 index 00000000..0bf6332f --- /dev/null +++ b/tools/backup.sh @@ -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/"