diff --git a/init.sh b/init.sh index 59480d0..b6f2ec4 100755 --- a/init.sh +++ b/init.sh @@ -3,14 +3,19 @@ SELF="$0" HOST="" PORT="22" -REMOTE_PATH="borg" +REMOTE_PATH="" NAME="" LOGIN="$(whoami)" -die () { +die() { echo -e $1 | sed -e 's-^-! -' >&2 exit 1 } +usage() { + echo -e "usage: $SELF PROFILE_NAME --host=server --port=22 --login=backup-user --directory=/backup/path" >&2 + exit 1 +} + generate_passphrase() { tr -dc A-Za-z0-9