Implemented check for local files

This commit is contained in:
Kevin Veen-Birkenbach 2020-05-15 18:37:41 +02:00
parent 72a732cb59
commit 8c5bcfb18c
3 changed files with 10 additions and 1 deletions

View File

@ -15,6 +15,7 @@ yay
make make
gcc gcc
cmake cmake
fdupes
# network analyze tools # network analyze tools
traceroute traceroute

View File

@ -12,7 +12,7 @@ SCRIPT_PATH="$REPOSITORY_PATH/scripts/";
DATA_PATH="$DECRYPTED_PATH/data"; DATA_PATH="$DECRYPTED_PATH/data";
BACKUP_PATH="$DECRYPTED_PATH/backup"; BACKUP_PATH="$DECRYPTED_PATH/backup";
TEMPLATE_PATH="$REPOSITORY_PATH/templates"; TEMPLATE_PATH="$REPOSITORY_PATH/templates";
LOCAL_REPOSITORIES_PATH="$HOME/Documents/repositories"; LOCAL_REPOSITORIES_PATH="$HOME/Repositories";
declare -a BACKUP_LIST=("$HOME/.ssh/" \ declare -a BACKUP_LIST=("$HOME/.ssh/" \
"$HOME/.gitconfig" \ "$HOME/.gitconfig" \

8
scripts/client/check.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# @author Kevin Veen-Birkenbach
# shellcheck source=/dev/null # Deactivate SC1090
source "$(dirname "$(readlink -f "${0}")")/../base.sh" || (echo "Loading base.sh failed." && exit 1)
echo "System check"
echo
info "Checking relevant home folders for duplicated files..."
fdupes -r "$HOME/Documents/" "$HOME/Downloads/" "$HOME/Images/" "$HOME/Desktop/" "$HOME/Music/" "$HOME/Pictures/" "$HOME/Videos"