Added backing up of dconf/user

This commit is contained in:
Kevin Veen-Birkenbach 2019-10-03 20:26:35 +02:00
parent d2ced8118f
commit ca7e5a5fda

View File

@ -12,7 +12,7 @@ if [ -z "$(mount | grep "$DECRYPTED_PATH")" ]
echo "The decrypted folder $DECRYPTED_PATH is locked. You need to unlock it!" echo "The decrypted folder $DECRYPTED_PATH is locked. You need to unlock it!"
bash "$SCRIPT_PATH/unlock.sh" || exit 1; bash "$SCRIPT_PATH/unlock.sh" || exit 1;
fi fi
declare -a BACKUP_LIST=("$HOME/.ssh/" "$HOME/.gitconfig" "$HOME/.atom/config.cson" "$HOME/Documents/certificates/" "$HOME/Documents/recovery_codes/" "$HOME/Documents/passwords/"); declare -a BACKUP_LIST=("$HOME/.ssh/" "$HOME/.gitconfig" "$HOME/.atom/config.cson" "$HOME/Documents/certificates/" "$HOME/Documents/recovery_codes/" "$HOME/Documents/passwords/" "$HOME/.config/dconf/user");
for system_item_path in "${BACKUP_LIST[@]}"; for system_item_path in "${BACKUP_LIST[@]}";
do do
data_item_path="$DATA_PATH$system_item_path" data_item_path="$DATA_PATH$system_item_path"