Hi, quick bug report (i think) on the execution script. From what i understood there macro steps in the backup function are:
Initialize
Stop Dockers
Backup Docker
Restore Docker State
Update (if checked)
Other Backups
End
We can place the script in:
"Pre-run" aka step 1
"Pre-backup" supposedly end of step 2 (or just before 3)
"Post-backup" supposedly end of step 3 (or just before 4)
"Post-run" aka step 7
if we choose pre-backup the script is runned just before stopping dockers. As a matter of fact it runs almost as if it was in a pre-run configuration.
[31.10.2023 00:39:52][ℹ️][Main] 👋 WELCOME TO APPDATA.BACKUP!! :D
[31.10.2023 00:39:52][ℹ️][Main] Backing up from: /mnt/user/appdata, /mnt/cache/appdata
[31.10.2023 00:39:52][ℹ️][Main] Backing up to: /mnt/user/*******/*******/*******/*******
[31.10.2023 00:39:52][ℹ️][Main] Selected containers: Jellyfin, code-server, flaresolverr, homepage, jellyseerr, mc_server-minecraft-server-1, prowlarr, qbittorrent-vue, radarr, red-discordbot, sonarr
[31.10.2023 00:39:52][ℹ️][Main] Saving container XML files...
[31.10.2023 00:39:52][⚠️][Main] XML file for mc_server-minecraft-server-1 was not found!
[31.10.2023 00:39:52][ℹ️][Main] Executing script '/mnt/user/appdata/scripts/runmover.sh' 'pre-backup' '/mnt/user/*******/*******/*******/*******'...
[31.10.2023 00:39:56][ℹ️][Main] Script executed!
[31.10.2023 00:39:56][ℹ️][Main] Method: Stop all container before continuing.
[31.10.2023 00:39:56][ℹ️][sonarr] Stopping sonarr... done! (took 5 seconds)
[31.10.2023 00:40:01][ℹ️][red-discordbot] Stopping red-discordbot... done! (took 4 seconds)
[31.10.2023 00:40:05][⚠️][Main] Backup cancelled! Executing final things. You will be left behind with the current state!
[31.10.2023 00:40:05][ℹ️][Main] DONE! Thanks for using this plugin and have a safe day ;)
[31.10.2023 00:40:05][ℹ️][Main] ❤️
If we choose post-backup the script is runned after restoring the docker state and it runs with dockers online (despite the help block clarifies"(before containers would start)").
...
[31.10.2023 00:55:50][ℹ️][sonarr] Backing up sonarr...
[31.10.2023 00:55:52][ℹ️][sonarr] Backup created without issues
[31.10.2023 00:55:52][ℹ️][sonarr] Verifying backup...
[31.10.2023 00:55:53][ℹ️][Main] Set containers to previous state
[31.10.2023 00:55:53][ℹ️][code-server] Starting code-server... (try #1) done!
[31.10.2023 00:55:57][ℹ️][flaresolverr] Starting flaresolverr... (try #1) done!
[31.10.2023 00:56:00][ℹ️][homepage] Starting homepage... (try #1) done!
...
[31.10.2023 00:56:21][ℹ️][qbittorrent-vue] Starting qbittorrent-vue... (try #1) done!
[31.10.2023 00:56:27][ℹ️][radarr] Starting radarr... (try #1) done!
[31.10.2023 00:56:32][ℹ️][red-discordbot] red-discordbot is being ignored, because it was not started before (or should not be started).
[31.10.2023 00:56:32][ℹ️][sonarr] sonarr is being ignored, because it was not started before (or should not be started).
[31.10.2023 00:56:32][ℹ️][Main] Executing script '/mnt/user/appdata/scripts/runmover.sh' 'post-backup' '/mnt/user/*******/*******/*******/ab_*******'...
[31.10.2023 00:56:47][ℹ️][Main] Script executed!
I think the naming configuration is a little bit confusing if this behaviour is expected, and it would be nice to have a script placement that allows the script to run with dockers offline.