diff --git a/restic-cron b/restic-cron index 2cfb497..09d6f06 100755 --- a/restic-cron +++ b/restic-cron @@ -6,7 +6,6 @@ # Nofication function notify() { - notify-send -i deja-dup "$1" test -z "$RESTIC_QUIET" && echo "I: $1" } @@ -16,10 +15,8 @@ if [ "$1" = "--verbose" ]; then RESTIC_QUIET="" fi -# Allow for connecting to X11 and the SSH agent -export DISPLAY=:0 +# Allow for connecting to the SSH agent export SSH_AUTH_SOCK=/run/user/$UID/keyring/ssh -export SSH_AGENT_PID=$(pidof ssh-agent) # Restic settings RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude --cleanup-cache"