add parse-blueray sh script, and backup server-dockers config

This commit is contained in:
2026-02-08 18:08:54 +01:00
parent a96be1a122
commit 88f116f1cb
4 changed files with 65 additions and 18 deletions

49
bin/parse-blueray Executable file
View File

@@ -0,0 +1,49 @@
#!/usr/bin/env bash
# NOTE: needs mkvtoolnix installed, ie. `apt install mkvtoolnix`.
set -e
OUT="$PWD"
echo "processing current directory: $OUT"
for dir in */ ; do
[ -d "$dir" ] || continue
echo "processing $dir"
cd "$dir"
# prefer .rar if present
rarfile=$(ls *.rar 2>/dev/null | head -n1)
if [ -z "$rarfile" ]; then
rarfile=$(ls *.r00 2>/dev/null | head -n1)
fi
if [ -z "$rarfile" ]; then
echo " no .rar/.r00 in $dir, skipping"
cd ..
continue
fi
unrar x -o+ "$rarfile" . || { echo " extraction failed in $dir"; cd ..; continue; }
# find first video file
video=$(find . -maxdepth 1 -type f \
\( -iname '*.mkv' -o -iname '*.mp4' -o -iname '*.avi' -o -iname '*.m2ts' \) \
! -iname '*sample*' | head -n1)
if [ -z "$video" ]; then
echo " no video found after extraction in $dir"
cd ..
continue
fi
base=$(basename "$dir" /)
out="$OUT/${base}.mkv"
echo " muxing '$video' -> '$out'"
mkvmerge -o "$out" "$video"
cd ..
done

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
SERVER=$1 SERVER=$1
PASSW=$2 PASSW=$2 # the password that appears at the configs to be replaced by $NEW_PASSW
NEW_PASSW="YOURPASSWORDHERE" NEW_PASSW="YOURPASSWORDHERE"
if [ "$#" -ne 2 ]; then if [ "$#" -ne 2 ]; then
@@ -9,7 +9,7 @@ if [ "$#" -ne 2 ]; then
exit 1 exit 1
fi fi
rsync -avz --progress --exclude={'*.log','emby','jellyfin','qbittorrent','slskd','wallabag','prowlarr','sonarr','radarr','bazarr'} $SERVER:~/server-dockers/docker-compose.yml $SERVER:/mnt/usb/configurations ./ rsync -avz --progress --exclude={'*.log','emby','jellyfin','qbittorrent','slskd','wallabag','prowlarr','sonarr','radarr','bazarr','qui'} $SERVER:~/server-dockers/docker-compose.yml $SERVER:/mnt/usb/configurations ./
# replace PASSW by NEW_PASSW (also in subdirs) # replace PASSW by NEW_PASSW (also in subdirs)
find . -type f -exec \ find . -type f -exec \

View File

@@ -8,10 +8,6 @@
icon: jellyfin.png icon: jellyfin.png
href: http://192.168.1.155:8096 href: http://192.168.1.155:8096
description: Jellyfin Media Server description: Jellyfin Media Server
- Emby:
icon: emby.png
href: http://192.168.1.155:8097
description: Emby Media Server
- Descarregues a ma: - Descarregues a ma:
- qBittorrent: - qBittorrent:
icon: qbittorrent.png icon: qbittorrent.png
@@ -23,6 +19,10 @@
username: admin username: admin
password: YOURPASSWORDHERE password: YOURPASSWORDHERE
enableLeechProgress: true # optional, defaults to false enableLeechProgress: true # optional, defaults to false
- qui:
icon: qui.png
href: http://192.168.1.155:8105
description: interface for qbittorrent
- slskd: - slskd:
icon: slskd.png icon: slskd.png
href: http://192.168.1.155:8099 href: http://192.168.1.155:8099

View File

@@ -26,7 +26,6 @@
# #
# Port of each service: # Port of each service:
# - jellyfin: 8096 # - jellyfin: 8096
# - emby: 8097
# - wallabag: 8098 # - wallabag: 8098
# - slskd: 8099 # - slskd: 8099
# - metube: 8100 # - metube: 8100
@@ -34,6 +33,7 @@
# - prowlarr: 8102 # - prowlarr: 8102
# - bazarr: 8103 # - bazarr: 8103
# - radarr: 8104 # - radarr: 8104
# - qui: 8105
# - qbittorrent: 8080 # - qbittorrent: 8080
# - homepage: 8000 # - homepage: 8000
# - grafana: 3000 # - grafana: 3000
@@ -49,16 +49,6 @@ services:
- /mnt/usb:/media - /mnt/usb:/media
restart: unless-stopped restart: unless-stopped
emby:
image: emby/embyserver # in rpi: emby/embyserver_arm64v8
container_name: emby
ports:
- "8097:8096"
volumes:
- /mnt/usb/configurations/emby:/config
- /mnt/usb:/media
restart: unless-stopped
wallabag: wallabag:
image: wallabag/wallabag image: wallabag/wallabag
container_name: wallabag container_name: wallabag
@@ -166,6 +156,15 @@ services:
- WEBUI_PORT=8080 - WEBUI_PORT=8080
restart: unless-stopped restart: unless-stopped
qui:
image: ghcr.io/autobrr/qui:latest
container_name: qui
restart: unless-stopped
ports:
- "8105:7476"
volumes:
- ./qui:/config
homepage: homepage:
image: ghcr.io/gethomepage/homepage:latest image: ghcr.io/gethomepage/homepage:latest
container_name: homepage container_name: homepage
@@ -222,7 +221,6 @@ services:
# which has support for 'add-ons'. # which has support for 'add-ons'.
# More info: https://www.home-assistant.io/installation/#about-installation-types # More info: https://www.home-assistant.io/installation/#about-installation-types
networks: networks:
monitoring: monitoring:
driver: bridge driver: bridge