diff --git a/backup_config.sh b/backup_config.sh old mode 100644 new mode 100755 diff --git a/dupe.sh b/dupe.sh index d3f9de9..0da6d92 100755 --- a/dupe.sh +++ b/dupe.sh @@ -5,12 +5,13 @@ if [ -f ".env" ]; then # shellcheck source=.env source ".env" + echo "using .env file" fi # Variables -JDUPES_OUTPUT_LOG=${JDUPES_OUTPUT_LOG:-"/var/log/jdupes.log"} +JDUPES_OUTPUT_LOG=${JDUPES_OUTPUT_LOG:-"/mnt/data/jdupes.log"} JDUPES_SOURCE_DIR=${JDUPES_SOURCE_DIR:-"/mnt/data/media/"} JDUPES_DESTINATION_DIR=${JDUPES_DESTINATION_DIR:-"/mnt/data/torrents/"} -JDUPES_HASH_DB=${JDUPES_HASH_DB:-"/var/lib/jdupes_hashdb"} +JDUPES_HASH_DB=${JDUPES_HASH_DB:-"/.config/jdupes_hashdb"} ## Secret Variables JDUPES_COMMAND=${JDUPES_COMMAND:-"/usr/bin/jdupes"} JDUPES_EXCLUDE_DIRS=${JDUPES_EXCLUDE_DIRS:-"-X nostr:.RecycleBin -X nostr:.trash"} @@ -21,7 +22,7 @@ timestamp=$(date +"%Y-%m-%d %H:%M:%S") echo "[$timestamp] Duplicate search started for $JDUPES_SOURCE_DIR and $JDUPES_DESTINATION_DIR." >>"$JDUPES_OUTPUT_LOG" echo "command is" # Running jdupes with the loaded environment variables -echo "$JDUPES_COMMAND" "$JDUPES_EXCLUDE_DIRS" "$JDUPES_INCLUDE_EXT" -L -r -Z -y "$JDUPES_HASH_DB" "$JDUPES_SOURCE_DIR" "$JDUPES_DESTINATION_DIR" +echo "$JDUPES_COMMAND" "$JDUPES_EXCLUDE_DIRS" -X onlyext:"$JDUPES_INCLUDE_EXT" -L -r -Z -y "$JDUPES_HASH_DB" "$JDUPES_SOURCE_DIR" "$JDUPES_DESTINATION_DIR" "$JDUPES_COMMAND" "$JDUPES_EXCLUDE_DIRS" -X onlyext:"$JDUPES_INCLUDE_EXT" -L -r -Z -y "$JDUPES_HASH_DB" "$JDUPES_SOURCE_DIR" "$JDUPES_DESTINATION_DIR" >>"$JDUPES_OUTPUT_LOG" # Logging the completion of the operation diff --git a/xseed.sh b/xseed.sh index 6eed20e..ed507d5 100755 --- a/xseed.sh +++ b/xseed.sh @@ -11,7 +11,7 @@ TORRENT_CLIENT_NAME=${TORRENT_CLIENT_NAME:-Qbit} USENET_CLIENT_NAME=${USENET_CLIENT_NAME:-SABnzbd} XSEED_HOST=${XSEED_HOST:-crossseed} XSEED_PORT=${XSEED_PORT:-8080} -LOG_FILE=${LOG_FILE:-/var/log/xseed.log} +LOG_FILE=${LOG_FILE:-/.config/xseed.log} XSEED_APIKEY=${XSEED_APIKEY} # Function to send a request to Cross Seed API