I appreciate the detailed reply. Do you mind sharing which path on the Cache drive you used?
Do I need to turn on something to see better mover logs? When I try to press the "Move" button with the scripts enabled, the mover does not actually start, I assume its some sort of script issue
I set the following paths:
/mnt/cache/system/scripts/stop-downloaders-for-mover.sh
/mnt/cache/system/scripts/start-downloaders-for-mover.sh
I believe I have permissions set up properly, here is following the paths and looking at chmod:
root@Tower:/mnt# cd cache/
root@Tower:/mnt/cache# ls -l
total 0
drwxrwxrwx 1 nobody users 402 Feb 26 11:38 appdata/
drwxrwxrwx 1 nobody users 26 Feb 25 17:45 data/
drwxrwxrwx 1 nobody users 12 Feb 24 02:41 domains/
drwxrwxrwx 1 nobody users 40 Feb 26 11:50 system/
root@Tower:/mnt/cache# cd system/
root@Tower:/mnt/cache/system# ls -l
total 0
drwxrwxrwx 1 nobody users 20 Feb 23 19:27 docker/
drwxrwxrwx 1 nobody users 22 Feb 23 19:27 libvirt/
drwxrwxrwx 1 root root 118 Feb 26 13:43 scripts/
root@Tower:/mnt/cache/system# cd scripts/
root@Tower:/mnt/cache/system/scripts# ls -l
total 8
-rwxrwxrwx 1 root root 508 Feb 26 13:43 start-downloaders-for-mover.sh*
-rwxrwxrwx 1 root root 508 Feb 26 13:43 stop-downloaders-for-mover.sh*
I'll share my scripts I spent some time on them and think they are quite good (maybe jq can be optimized).
Kills any container connected to my VPN, then the VPN:
#!/bin/bash
# Docker ID for qbittorrentvpn
VPN_CONTAINER_ID=$(docker inspect qbittorrentvpn | jq -r '.[].Id')
# Looks for all containers using the network by ID, uses JQ to extract those container IDs and passes them to docker stop
docker container ls -aq | xargs docker container inspect --format='{{json .}}' | jq -r "select(.HostConfig.NetworkMode == \"container:$VPN_CONTAINER_ID\")" | jq -s '.' | jq '. | map(.Id)' | jq -r '.[]' | xargs docker stop
# Now stop qbittorrentvpn
docker stop $VPN_CONTAINER_ID
Starts the VPN, then containers connected to VPN
#!/bin/bash
# Docker ID for qbittorrentvpn
VPN_CONTAINER_ID=$(docker inspect qbittorrentvpn | jq -r '.[].Id')
# Start qbittorrentvpn
docker start $VPN_CONTAINER_ID
# Looks for all containers using the network by ID, uses JQ to extract those container IDs and passes them to docker start
docker container ls -aq | xargs docker container inspect --format='{{json .}}' | jq -r "select(.HostConfig.NetworkMode == \"container:$VPN_CONTAINER_ID\")" | jq -s '.' | jq '. | map(.Id)' | jq -r '.[]' | xargs docker start