diff --git a/restic-cron b/restic-cron index 5d2b3d6..8c21840 100755 --- a/restic-cron +++ b/restic-cron @@ -18,7 +18,6 @@ fi # Allow for connecting to X11 and the SSH agent export SSH_AUTH_SOCK=/run/user/1000/keyring/ssh export SSH_AGENT_PID=$(pidof ssh-agent) -export XAUTHORITY=/run/user/1000/gdm/Xauthority # Restic settings export RESTIC_BACKUP_OPTIONS="--exclude-file=$HOME/.config/restic/exclude" @@ -35,7 +34,7 @@ if [ -z "$RESTIC_PASSWORD" ]; then fi # Create a new backup -#restic $RESTIC_QUIET backup $HOME $RESTIC_BACKUP_OPTIONS +restic $RESTIC_QUIET backup $HOME $RESTIC_BACKUP_OPTIONS if [ $? -ne 0 ]; then notify "Unable to finish the backup!" @@ -43,7 +42,7 @@ if [ $? -ne 0 ]; then fi # Verify the backup -#restic $RESTIC_QUIET check +restic $RESTIC_QUIET check if [ $? -ne 0 ]; then notify "Repository check of the backup failed!"