2019-10-01 08:50:17 +02:00
|
|
|
#!/bin/bash
|
2019-10-01 11:59:31 +02:00
|
|
|
#
|
2019-10-01 08:50:17 +02:00
|
|
|
# This script contains the global program variables and functions
|
|
|
|
# @author Kevin Veen-Birkenbach [aka. Frantz]
|
2019-10-01 12:30:27 +02:00
|
|
|
#
|
|
|
|
# shellcheck disable=SC2034 #Deactivate checking of unused variables
|
|
|
|
REPOSITORY_PATH=$(readlink -f "$(dirname "$(readlink -f "${0}")")/../")
|
|
|
|
ENCRYPTED_PATH="$REPOSITORY_PATH/.encrypted";
|
|
|
|
DECRYPTED_PATH="$REPOSITORY_PATH/decrypted";
|
|
|
|
SCRIPT_PATH="$REPOSITORY_PATH/scripts";
|
|
|
|
DATA_PATH="$DECRYPTED_PATH/data";
|
|
|
|
BACKUP_PATH="$DECRYPTED_PATH/backup";
|
2019-12-03 13:37:39 +01:00
|
|
|
TEMPLATE_PATH="$REPOSITORY_PATH/templates";
|
|
|
|
LOCAL_REPOSITORIES_PATH="$HOME/Documents/repositories";
|
2019-12-03 14:22:10 +01:00
|
|
|
declare -a BACKUP_LIST=("$HOME/.ssh/" \
|
|
|
|
"$HOME/.gitconfig" \
|
|
|
|
"$HOME/.atom/config.cson" \
|
2019-12-16 21:56:59 +01:00
|
|
|
"$HOME/.local/share/rhythmbox/rhythmdb.xml" \
|
|
|
|
"$HOME/.config/keepassxc/keepassxc.ini" \
|
2019-12-03 14:22:10 +01:00
|
|
|
"$HOME/Documents/certificates/" \
|
|
|
|
"$HOME/Documents/recovery_codes/" \
|
|
|
|
"$HOME/Documents/identity/" \
|
|
|
|
"$HOME/Documents/passwords/" \
|
2019-12-16 21:56:59 +01:00
|
|
|
"$HOME/Documents/licenses/");
|