3 # bup-save-user -- Save user data using bup(1)
4 # Copyright (c)2013-2014 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!"
29 bup index --update --xdev \
32 "/var/spool/mail/$LOGNAME" \
35 bup save --name "$LOGNAME" \
37 "/var/spool/mail/$LOGNAME"
40 bup ls "$LOGNAME" || exit 1