X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=bup%2Fsave-user%2Fbup-save-user;h=c0e0a0db18e34f936063ba40e259eaed4b851295;hb=85bc52de5641d04b9825eb8a214f0d62f53e715c;hp=c60f06a410e8175929eb084ee1740ca12c4a5aed;hpb=49e6b8be175bbc1857d269f50c95f341a63c2383;p=ax-unix.git diff --git a/bup/save-user/bup-save-user b/bup/save-user/bup-save-user index c60f06a..c0e0a0d 100755 --- a/bup/save-user/bup-save-user +++ b/bup/save-user/bup-save-user @@ -1,7 +1,7 @@ #!/bin/sh # # bup-save-user -- Save user data using bup(1) -# Copyright (c)2013-2016 Alexander Barton (alex@barton.de) +# Copyright (c)2013-2020 Alexander Barton (alex@barton.de) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -9,18 +9,18 @@ # (at your option) any later version. # -NAME=`basename "$0"` +NAME=$(basename "$0") Usage() { - echo "Usage: $NAME"; echo + echo "Usage: $NAME" 2>&1; echo exit 1 } [ $# -eq 0 ] || Usage if [ ! -d "$HOME/.bup" ]; then - echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!" + echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!" >&2 exit 1 fi @@ -32,11 +32,11 @@ paths="$HOME" set -x -bup index --update --xdev --exclude-rx="/.cache/." $paths || exit 1 +bup index --one-file-system --no-check-device --exclude-rx="/.cache/." $paths || exit 1 bup save --name "$LOGNAME" $paths exit_code=$? -bup ls "$LOGNAME" || exit 1 +bup ls "$LOGNAME" || exit 1 | column exit $exit_code