diff options
author | Tharre <tharre3@gmail.com> | 2018-07-16 14:56:07 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2018-07-16 15:43:56 +0200 |
commit | 2ef726102dbdeb0c5adbec8f3df981758e961314 (patch) | |
tree | ce356e15c939cfcf87154a6ee6b6929360b9fcdd | |
parent | 82bfa9338a6f3062c88aa5d5fabf488d0e06bab6 (diff) | |
download | pkgbuilds-2ef726102dbdeb0c5adbec8f3df981758e961314.tar.gz pkgbuilds-2ef726102dbdeb0c5adbec8f3df981758e961314.tar.xz pkgbuilds-2ef726102dbdeb0c5adbec8f3df981758e961314.zip |
arch-system: borgbackup: notify about upload skip
-rw-r--r-- | arch-system/PKGBUILD | 2 | ||||
-rwxr-xr-x | arch-system/borgbackup | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/arch-system/PKGBUILD b/arch-system/PKGBUILD index d565d96..0fcd8ce 100644 --- a/arch-system/PKGBUILD +++ b/arch-system/PKGBUILD @@ -31,7 +31,7 @@ sha256sums=('bb00c42f2802c12536c46700b948d41a43153d97a6986827b7c61203880e1ad1' '99cd268de0e9b847d65f802e7bcbbf7318398a04db61523545d4002ebdfb4d9c' '42050ba722df1cd606288e82054e131dac99bf10506f4c8d52eb9bfc0a078d89' 'e1bf3dc5978a7641f86975b7ee770a6914b30a8e4b7e3be2f1b07eaa7098591d' - '2a83098da881761473e2e67cd4dc6ab5e2da5e5a3187b7505bf58cf726d35bec' + '020532911a201bef4777d09291fbd2dde5e91d39c12c30229f4ece6c26397755' 'b9f38ad0731a5b65d49eaacd0fb8cfe051b6ca7ea68496d89919701842183d89') package_base-system() { diff --git a/arch-system/borgbackup b/arch-system/borgbackup index 14b4795..afada7f 100755 --- a/arch-system/borgbackup +++ b/arch-system/borgbackup @@ -59,6 +59,9 @@ fi if ! ssh -To BatchMode=yes -o ConnectTimeout=$NETWORK_TIMEOUT \ -o IdentitiesOnly=yes -o ConnectionAttempts=20 -i ~/.ssh/borg_key \ "$BORG_HOST" "borg --version" > /dev/null; then + if ! [ -t 1 ]; then + notify-send "Backups: upload skipped" + fi echo "SSH server not reachable, skipping upload" >&2 exit 0 fi |