From a4ed52de4f86991d585b27afbec6ab933bc39e4e Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Tue, 11 Aug 2020 14:18:14 +0200 Subject: [PATCH] Start using notify-send again (works with systemd) Also remove the 3 second sleep and unnecessary environment variables. --- restic-cron | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/restic-cron b/restic-cron index 73d6c5e..e14eb6a 100755 --- a/restic-cron +++ b/restic-cron @@ -7,6 +7,7 @@ # Nofication function notify() { test -z "$RESTIC_QUIET" && echo "I: $1" + notify-send -t 10000 -i drive-harddisk "Restic Backup" "$1" } # Check if a --verbose argument is passed, otherwise use quiet @@ -15,9 +16,6 @@ if [ "$1" = "--verbose" ]; then RESTIC_QUIET="" fi -# Allow for connecting to the SSH agent -export SSH_AUTH_SOCK=/run/user/$UID/keyring/ssh - # Restic settings RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude --cleanup-cache" RESTIC_FORGET_OPTIONS="--keep-weekly=4 --keep-monthly=12 --keep-yearly=60" @@ -26,7 +24,6 @@ export RESTIC_REPOSITORY="sftp://void//media/Backup/paul/restic-laptops" # Start the backup by asking for the passphrase notify "Starting backup…" -sleep 3 export RESTIC_PASSWORD=$(zenity --title="Restic backup passphrase" --password) if [ -z "$RESTIC_PASSWORD" ]; then