3 # bup-save-user -- Save user data using bup(1)
4 # Copyright (c)2013-2016 Alexander Barton (alex@barton.de)
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
16 echo "Usage: $NAME"; echo
22 if [ ! -d "$HOME/.bup" ]; then
23 echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!"
28 [ -n "$LOCAL_HOME" -a "$LOCAL_HOME" != "$HOME" -a -d "$LOCAL_HOME" ] \
29 && paths="$paths $LOCAL_HOME"
30 [ -d "/var/spool/mail/$LOGNAME" ] \
31 && paths="$paths /var/spool/mail/$LOGNAME"
35 bup index --update --xdev --exclude-rx="/.cache/." $paths || exit 1
37 bup save --name "$LOGNAME" $paths
40 bup ls "$LOGNAME" || exit 1