Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Message added by KluthR,

[Plugin] Appdata.Backup

Featured Replies

I dont know if this was posted or not, I did do some searching for the problem i was having with the plugin not excluding folders that i checked and clicked "add to list" 

 

So for me i was trying to exclude the 3 folders for plex Cache, Media, and Metadata since they can eat up so much space and are not needed to backup.

What i found was when using the folder browser it would add this as the full path to the folder.
/mnt/cache/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Metadata/

 

So i would run a manual backup and it did not exclude said folder, after trying many different things and trying to exclude the folders with the "Global exclusion list" I was never able to get it exclude the folders i wanted it.

 

A very long story short is i changed /mnt/cache/ to /mnt/user/ in the excluded paths and low and behold it started to exclude said folders. I dont know or understand why when using the folder browser to select the folder and hitting the add the list button it adds the path wrong?


So if anyone is trying to exclude these folders from their plex backups i would try adding the folder paths like this, replacing the name of your plex folder to match your system.

/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Cache/
/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Media/
/mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Metadata/

 

There are what worked for me in the end.

  • Replies 2.2k
  • Views 364.1k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Feature freeze I have less and less time for a complete care of this plugin. You already noticed this with the fact, that announced features were not implemented yet. Another reason is, that I will mo

  • The new update is coming It been a while since the last stable update. There were some betas (never got feedback though) but I had other work to do the last weeks. I tested the major changes agai

  • 2023.08.28 should fix the docker auto update issue.

Posted Images

  • Author

Exclusion paths must match the paths used in container bind mappings. For tar /mnt/cache and /mnt/user are different folders, so not being excluded.

Hey all! I have the plugin configured to run backups at a specific time, but I'd like to avoid backing up when I'm using a specific virtual machine inside unraid. 

I've created a script that exits with code 1 if that VM is running, and 0 if it is not, then I chmoded it, and added it as a custom pre-run script. When the plugin runs, it warns that the script exited with code 1 when the vm is running, but the backup does not stop. I assumed from the config that the backups would only continue if the scripts exit with code 0, since the header mentions something like this: "Custom scripts | Those must return exit code 0 for success detection". I also tested with pre-backup, but the same thing happens.

 

Am I doing something wrong? Is it possible to achieve what I'm trying?

 

Just for completion sake, here's the script

```sh

#!/bin/bash
VM_NAME="Windows 11"


if virsh list --name --state-running | grep -q "^${VM_NAME}$"; then
    echo "VM '${VM_NAME}' is running. Backup aborted."
    exit 1
fi

echo "VM '${VM_NAME}' is not running. Proceeding with backup."
exit 0
```

 

and here's the log from the pre-backup run with some things redacted:

 

```

05.03.2025 08:38:03][ℹ️][Main] Executing script '/[...]/pre-backup.sh' 'pre-backup' '/[...]'...
[05.03.2025 08:38:03][ℹ️][Main] Script executed!
[05.03.2025 08:38:03][⚠️][Main] Script did not returned 0 (it returned 1)!
[05.03.2025 08:38:03][ℹ️][Main] Method: Stop/Backup/Start
[05.03.2025 08:38:03][ℹ️][...] Stopping [...]... done! (took 1 seconds)

[...]

```

  • Author

Currently a non-zero exit code does not stop the backup but warns you that it did so. But that would be a nice feature. 0 - success, 1 - warn but continue, 2 - warn and cancel backup (or skip container).

2 hours ago, KluthR said:

Exclusion paths must match the paths used in container bind mappings. For tar /mnt/cache and /mnt/user are different folders, so not being excluded.

It's again an interaction with exclusive shares. When you select a path in /mnt/user with the picker and tick the checkbox it fills in a /mnt/cache path. Don't know whether that's an unraid thing or a plugin thing, but as it is it'll be a recurrent issue.

Edited by Kilrah

8 hours ago, KluthR said:

Currently a non-zero exit code does not stop the backup but warns you that it did so. But that would be a nice feature. 0 - success, 1 - warn but continue, 2 - warn and cancel backup (or skip container).

Ahhh, bummer, I misinterpreted it then... It would be nice if it worked that way

 

So, currently, it is not possible to programmatically decide if the backup should start or not?

I see... Thanks, I'll be keeping an eye on the issue!

My FlashDriveBackup keeps failing and I'm at a loss as to why.  I also cant seem to find this temp folder the log is supposed to be in.

Hello,

 

I'm having a hard time with the pre-backup script. I created a small one that create an sql dump of my mariadb. If I run the script from cmd, no problem. But when I run from prebackup, the filename are weird.

 

Script:

now=$(date +"%Y-%m-%d_%H:%M:%S")
docker exec mariadb sh -c 'exec mariadb-dump --all-databases -uroot -p"password"' > /mnt/user/Backup/mariadb/mariadb_$now.sql

now=$(date +"%Y-%m-%d_%H:%M:%S")
docker exec mariadb-nextcloud sh -c 'exec mariadb-dump --all-databases -uroot -p"password"' > /mnt/user/Backup/mariadb/mariadb-nextcloud_$now.sql

 

The result:

image.png.ae6d07434dafedd2366c73a1065fbed6.png

 

I don't get where these filename come from. The content is good, but its not how I named them.

 

Thank you

 

I'm having issues with my backup, it usually fails quite often and from the log it seems Plex is the culprit:

 

[08.03.2025 04:00:01][ℹ️][Main] 👋 WELCOME TO APPDATA.BACKUP!! :D
[08.03.2025 04:00:01][ℹ️][Main] Backing up from: /mnt/user/appdata, /mnt/cache/appdata
[08.03.2025 04:00:01][ℹ️][Main] Backing up to: /mnt/user/backups/appdatabackup/ab_20250308_040001
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] '/mnt/user/appdata/Plex-Media-Server/transcode' is within mapped volume '/mnt/user/appdata/Plex-Media-Server'! Ignoring!
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] Calculated volumes to back up: /mnt/user/appdata/Plex-Media-Server
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] Backing up Plex-Media-Server...
[08.03.2025 04:23:58][ℹ️][Plex-Media-Server] Backup created without issues (took 00:03:02 (hours:mins:secs))
[08.03.2025 04:23:58][ℹ️][Plex-Media-Server] Verifying backup...
[08.03.2025 04:24:56][][Plex-Media-Server] tar verification failed! Tar said: tar: Removing leading `/' from member names; mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-2025-02-20: Contents differ
[08.03.2025 04:25:14][ℹ️][Plex-Media-Server] Starting Plex-Media-Server... (try #1) done!
[08.03.2025 04:25:32][ℹ️][Main] Backing up the flash drive.
[08.03.2025 04:26:07][ℹ️][Main] Flash backup created!
[08.03.2025 04:26:07][ℹ️][Main] VM meta backup enabled! Backing up...
[08.03.2025 04:26:08][ℹ️][Main] Done!
[08.03.2025 04:26:08][⚠️][Main] An error occurred during backup! RETENTION WILL NOT BE CHECKED! Please review the log. If you need further assistance, ask in the support forum.
[08.03.2025 04:26:08][ℹ️][Main] DONE! Thanks for using this plugin and have a safe day ;)
[08.03.2025 04:26:08][ℹ️][Main] ❤️
Array Started33 °C39 °CUnraid® webGui ©2024, Lime Technology, Inc. manual

 

Any ideas on how I can stop this from happening?

Log you posted doesn't show it being stopped.

Ah, I thought I would clean it up a little, but I I removed to much. Here is the complete log:

 


Dashboard
Main
Shares
Users
Settings
Plugins
Docker
VMs
Apps
Stats
Tools
Settings
Restore
Status / Log
The backup is .
[08.03.2025 04:00:01][ℹ️][Main] 👋 WELCOME TO APPDATA.BACKUP!! :D
[08.03.2025 04:00:01][ℹ️][Main] Backing up from: /mnt/user/appdata, /mnt/cache/appdata
[08.03.2025 04:00:01][ℹ️][Main] Backing up to: /mnt/user/backups/appdatabackup/ab_20250308_040001
[08.03.2025 04:00:01][ℹ️][Main] Selected containers: FileZilla, Krusader, Plex-Media-Server, audiobookshelf, binhex-prowlarr, binhex-radarr, binhex-sonarr, binhex-syncthing
[08.03.2025 04:00:01][ℹ️][Main] Saving container XML files...
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'audiobookshelf' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'binhex-prowlarr' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'binhex-radarr' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'binhex-sonarr' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'binhex-syncthing' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'FileZilla' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'Krusader' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Auto-Update for 'Plex-Media-Server' is enabled but no update is available.
[08.03.2025 04:00:11][ℹ️][Main] Method: Stop all container before continuing.
[08.03.2025 04:00:11][ℹ️][Krusader] Stopping Krusader... done! (took 4 seconds)
[08.03.2025 04:00:15][ℹ️][binhex-syncthing] Stopping binhex-syncthing... done! (took 1 seconds)
[08.03.2025 04:00:16][ℹ️][binhex-sonarr] Stopping binhex-sonarr... done! (took 0 seconds)
[08.03.2025 04:00:16][ℹ️][binhex-radarr] Stopping binhex-radarr... done! (took 1 seconds)
[08.03.2025 04:00:17][ℹ️][binhex-prowlarr] Stopping binhex-prowlarr... done! (took 1 seconds)
[08.03.2025 04:00:18][ℹ️][audiobookshelf] Stopping audiobookshelf... done! (took 0 seconds)
[08.03.2025 04:00:18][ℹ️][Plex-Media-Server] Stopping Plex-Media-Server... done! (took 9 seconds)
[08.03.2025 04:00:27][ℹ️][FileZilla] Stopping FileZilla... done! (took 2 seconds)
[08.03.2025 04:00:29][ℹ️][Main] Starting backup for containers
[08.03.2025 04:00:29][ℹ️][Krusader] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:00:29][ℹ️][Krusader] Calculated volumes to back up: /mnt/cache/appdata/krusader
[08.03.2025 04:00:29][ℹ️][Krusader] Backing up Krusader...
[08.03.2025 04:14:01][ℹ️][Krusader] Backup created without issues (took 00:13:32 (hours:mins:secs))
[08.03.2025 04:14:01][ℹ️][Krusader] Verifying backup...
[08.03.2025 04:20:24][ℹ️][Krusader] Verification ended without issues (took 00:06:23 (hours:mins:secs))
[08.03.2025 04:20:24][ℹ️][binhex-syncthing] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:20:24][ℹ️][binhex-syncthing] Calculated volumes to back up: /mnt/user/appdata/binhex-syncthing
[08.03.2025 04:20:24][ℹ️][binhex-syncthing] Backing up binhex-syncthing...
[08.03.2025 04:20:25][ℹ️][binhex-syncthing] Backup created without issues (took 00:00:01 (hours:mins:secs))
[08.03.2025 04:20:25][ℹ️][binhex-syncthing] Verifying backup...
[08.03.2025 04:20:25][ℹ️][binhex-syncthing] Verification ended without issues (took 00:00:00 (hours:mins:secs))
[08.03.2025 04:20:25][ℹ️][binhex-sonarr] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:20:25][ℹ️][binhex-sonarr] Calculated volumes to back up: /mnt/user/appdata/binhex-sonarr
[08.03.2025 04:20:25][ℹ️][binhex-sonarr] Backing up binhex-sonarr...
[08.03.2025 04:20:30][ℹ️][binhex-sonarr] Backup created without issues (took 00:00:05 (hours:mins:secs))
[08.03.2025 04:20:30][ℹ️][binhex-sonarr] Verifying backup...
[08.03.2025 04:20:31][ℹ️][binhex-sonarr] Verification ended without issues (took 00:00:01 (hours:mins:secs))
[08.03.2025 04:20:31][ℹ️][binhex-radarr] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:20:31][ℹ️][binhex-radarr] Calculated volumes to back up: /mnt/user/appdata/binhex-radarr
[08.03.2025 04:20:31][ℹ️][binhex-radarr] Backing up binhex-radarr...
[08.03.2025 04:20:50][ℹ️][binhex-radarr] Backup created without issues (took 00:00:19 (hours:mins:secs))
[08.03.2025 04:20:50][ℹ️][binhex-radarr] Verifying backup...
[08.03.2025 04:20:55][ℹ️][binhex-radarr] Verification ended without issues (took 00:00:05 (hours:mins:secs))
[08.03.2025 04:20:55][ℹ️][binhex-prowlarr] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:20:55][ℹ️][binhex-prowlarr] Calculated volumes to back up: /mnt/user/appdata/binhex-prowlarr
[08.03.2025 04:20:55][ℹ️][binhex-prowlarr] Backing up binhex-prowlarr...
[08.03.2025 04:20:55][ℹ️][binhex-prowlarr] Backup created without issues (took 00:00:00 (hours:mins:secs))
[08.03.2025 04:20:55][ℹ️][binhex-prowlarr] Verifying backup...
[08.03.2025 04:20:55][ℹ️][binhex-prowlarr] Verification ended without issues (took 00:00:00 (hours:mins:secs))
[08.03.2025 04:20:55][ℹ️][audiobookshelf] '/mnt/user/appdata/audiobookshelf/metadata' is within mapped volume '/mnt/user/appdata/audiobookshelf'! Ignoring!
[08.03.2025 04:20:55][ℹ️][audiobookshelf] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:20:55][ℹ️][audiobookshelf] Calculated volumes to back up: /mnt/user/appdata/audiobookshelf
[08.03.2025 04:20:55][ℹ️][audiobookshelf] Backing up audiobookshelf...
[08.03.2025 04:20:56][ℹ️][audiobookshelf] Backup created without issues (took 00:00:01 (hours:mins:secs))
[08.03.2025 04:20:56][ℹ️][audiobookshelf] Verifying backup...
[08.03.2025 04:20:56][ℹ️][audiobookshelf] Verification ended without issues (took 00:00:00 (hours:mins:secs))
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] '/mnt/user/appdata/Plex-Media-Server/transcode' is within mapped volume '/mnt/user/appdata/Plex-Media-Server'! Ignoring!
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] Calculated volumes to back up: /mnt/user/appdata/Plex-Media-Server
[08.03.2025 04:20:56][ℹ️][Plex-Media-Server] Backing up Plex-Media-Server...
[08.03.2025 04:23:58][ℹ️][Plex-Media-Server] Backup created without issues (took 00:03:02 (hours:mins:secs))
[08.03.2025 04:23:58][ℹ️][Plex-Media-Server] Verifying backup...
[08.03.2025 04:24:56][][Plex-Media-Server] tar verification failed! Tar said: tar: Removing leading `/' from member names; mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-2025-02-20: Contents differ
[08.03.2025 04:25:08][ℹ️][FileZilla] Should NOT backup external volumes, sanitizing them...
[08.03.2025 04:25:08][ℹ️][FileZilla] Calculated volumes to back up: /mnt/user/appdata/FileZilla
[08.03.2025 04:25:08][ℹ️][FileZilla] Backing up FileZilla...
[08.03.2025 04:25:08][ℹ️][FileZilla] Backup created without issues (took 00:00:00 (hours:mins:secs))
[08.03.2025 04:25:08][ℹ️][FileZilla] Verifying backup...
[08.03.2025 04:25:08][ℹ️][FileZilla] Verification ended without issues (took 00:00:00 (hours:mins:secs))
[08.03.2025 04:25:08][ℹ️][Main] Set containers to previous state
[08.03.2025 04:25:08][ℹ️][FileZilla] Starting FileZilla... (try #1) done!
[08.03.2025 04:25:14][ℹ️][Plex-Media-Server] Starting Plex-Media-Server... (try #1) done!
[08.03.2025 04:25:16][ℹ️][audiobookshelf] Starting audiobookshelf... (try #1) done!
[08.03.2025 04:25:19][ℹ️][binhex-prowlarr] Starting binhex-prowlarr... (try #1) done!
[08.03.2025 04:25:21][ℹ️][binhex-radarr] Starting binhex-radarr... (try #1) done!
[08.03.2025 04:25:24][ℹ️][binhex-sonarr] Starting binhex-sonarr... (try #1) done!
[08.03.2025 04:25:27][ℹ️][binhex-syncthing] Starting binhex-syncthing... (try #1) done!
[08.03.2025 04:25:30][ℹ️][Krusader] Starting Krusader... (try #1) done!
[08.03.2025 04:25:32][ℹ️][Main] Backing up the flash drive.
[08.03.2025 04:26:07][ℹ️][Main] Flash backup created!
[08.03.2025 04:26:07][ℹ️][Main] VM meta backup enabled! Backing up...
[08.03.2025 04:26:08][ℹ️][Main] Done!
[08.03.2025 04:26:08][⚠️][Main] An error occurred during backup! RETENTION WILL NOT BE CHECKED! Please review the log. If you need further assistance, ask in the support forum.
[08.03.2025 04:26:08][ℹ️][Main] DONE! Thanks for using this plugin and have a safe day ;)
[08.03.2025 04:26:08][ℹ️][Main] ❤️
Array Started45 °C45 °CUnraid® webGui ©2024, Lime Technology, Inc. manual

 

On 3/3/2025 at 8:53 PM, Kilrah said:

Yeah but there's no reason to put it in the excluded list since it's properly recognised as external and backup exetnal volumes is set to No. 

Oh my goodness, what an idiot I am! Thanks :D 

5 hours ago, WellThen said:

Ah, I thought I would clean it up a little, but I I removed to much. Here is the complete log:

Looks like it does get stopped. Any other containers that are set to be skipped that might access the same paths?

I don't have any containers setup to be skipped, so they should all be stopped before the backup starts.

It would be cool if there was the option to check Plex or Tautulli to see if there were any users currently streaming anything before running the appdata backup. 

 

For example:

- Scheduled backup time comes around, but there are >=1 users currently streaming, shift next backup window to now() + some interval and try again

- Scheduled backup time comes around, there are no users currently streaming, backup proceeds.

  

5 hours ago, rsonshin said:

It would be cool if there was the option to check Plex or Tautulli to see if there were any users currently streaming anything before running the appdata backup. 

 

For example:

- Scheduled backup time comes around, but there are >=1 users currently streaming, shift next backup window to now() + some interval and try again

- Scheduled backup time comes around, there are no users currently streaming, backup proceeds.

 

This seems like a niche use IMO. Instead of using the scheduler in Appdata Backup, you could just use a cron schedule for a bash script. A quick mock-up based on code I already had written:

 

#!/bin/bash

# ---------------- ABORT SCRIPT IF ACTIVE PLEX USER SESSIONS ----------------- #
ABORT_SCRIPT_RUN_IF_ACTIVE_PLEX_SESSIONS=false  # OPTIONALLY abort the script from running if there are active sessions on the Plex server.
PLEX_SERVER_URL_AND_PORT="http://192.168.1.1:32400"  # ONLY REQUIRED if using 'ABORT_SCRIPT_RUN_IF_ACTIVE_PLEX_SESSIONS' is set to 'true'.
PLEX_TOKEN="xxxxxxxxxxxxxxxxxxxx"  # ONLY REQUIRED if using 'ABORT_SCRIPT_RUN_IF_ACTIVE_PLEX_SESSIONS' is set to 'true'.
INCLUDE_PAUSED_SESSIONS=false  # Include paused Plex sessions as active users.
ALSO_ABORT_ON_FAILED_CONNECTION=false  # Also abort the script if the connection to the Plex server fails.

# Function to abort script if there are active users on the Plex server.
abort_script_run_due_to_active_plex_sessions() {
    local response=$(curl -s --fail --connect-timeout 10 "${PLEX_SERVER_URL_AND_PORT}/status/sessions?X-Plex-Token=${PLEX_TOKEN}")
    if [[ $? -ne 0 ]] && [[ $ALSO_ABORT_ON_FAILED_CONNECTION == true ]]; then
        echo "[ERROR] Could not connect to Plex server. Aborting Plex DB Backup."
        exit 1
    elif [[ $response == *'state="playing"'* ]] || ( [[ $INCLUDE_PAUSED_SESSIONS == true ]] && [[ $response == *'state="paused"'* ]] ); then
        echo "Active users on Plex server. Aborting Plex DB Backup."
        exit 0
    fi
}

abort_script_run_due_to_active_plex_sessions

# run Appdata Backup script, do stuff, etc...
/usr/local/emhttp/plugins/appdata.backup.beta/scripts/backup.php

 

Edited by Blasman

9 hours ago, Blasman said:

  

 

This seems like a niche use IMO. Instead of using the scheduler in Appdata Backup, you could just use a cron schedule for a bash script. A quick mock-up based on code I already had written:

 

#!/bin/bash

# ---------------- ABORT SCRIPT IF ACTIVE PLEX USER SESSIONS ----------------- #
ABORT_SCRIPT_RUN_IF_ACTIVE_PLEX_SESSIONS=false  # OPTIONALLY abort the script from running if there are active sessions on the Plex server.
PLEX_SERVER_URL_AND_PORT="http://192.168.1.1:32400"  # ONLY REQUIRED if using 'ABORT_SCRIPT_RUN_IF_ACTIVE_PLEX_SESSIONS' is set to 'true'.
PLEX_TOKEN="xxxxxxxxxxxxxxxxxxxx"  # ONLY REQUIRED if using 'ABORT_SCRIPT_RUN_IF_ACTIVE_PLEX_SESSIONS' is set to 'true'.
INCLUDE_PAUSED_SESSIONS=false  # Include paused Plex sessions as active users.
ALSO_ABORT_ON_FAILED_CONNECTION=false  # Also abort the script if the connection to the Plex server fails.

# Function to abort script if there are active users on the Plex server.
abort_script_run_due_to_active_plex_sessions() {
    local response=$(curl -s --fail --connect-timeout 10 "${PLEX_SERVER_URL_AND_PORT}/status/sessions?X-Plex-Token=${PLEX_TOKEN}")
    if [[ $? -ne 0 ]] && [[ $ALSO_ABORT_ON_FAILED_CONNECTION == true ]]; then
        echo "[ERROR] Could not connect to Plex server. Aborting Plex DB Backup."
        exit 1
    elif [[ $response == *'state="playing"'* ]] || ( [[ $INCLUDE_PAUSED_SESSIONS == true ]] && [[ $response == *'state="paused"'* ]] ); then
        echo "Active users on Plex server. Aborting Plex DB Backup."
        exit 0
    fi
}

abort_script_run_due_to_active_plex_sessions

# run Appdata Backup script, do stuff, etc...
/usr/local/emhttp/plugins/appdata.backup.beta/scripts/backup.php

 

 

could use userscript plugins to do that

On 3/3/2025 at 3:59 PM, gumbopot said:

No errors. Everything seemed to be successful, but invalid when I go to restore. 

Something about how the storage is setup maybe? 

Any thoughts on this? I still can't figure out why I get and invalid backup error when I try to restore. 

  • Author

Do you point the file selector to the path, holding ALL backups? Dont select a specific one!

  • 2 weeks later...

Having a little trouble with the plugin:

The logs keep telling me that a handful of container should be ignored since they have no volume to backup - but they ARE set to be skipped:

Screenshot2025-03-20094908.png.2ea5e0bef9d0ed2a850c61fe29d5685f.png

 

Screenshot2025-03-20094927.thumb.png.eab9a36fc5842d8c41ada7052a3ecd9a.png

 

Perhaps another symptom of the same problem: I am trying to set another container to be skipped and even though I click the Save button, when the page refreshes, the container is back to Skip? No.

 

I've been using AppData Backup for a LONG time and I've never seen this happen. I am still running 6.12.15. Is this just a problem with the latest version?

 

My debug log ID: f1339786-8acd-4b08-becc-949ed38907c0

  • Author

How many containers do you have? Sounds like the issue that the firm does not save completely when many containers are in use. Please check the last 2-3 pages to get a workaround. Will pin the post later.

This script is finding a lot that it excludes, can this be added automatically to the exclusion list?

On 3/20/2025 at 3:29 PM, KluthR said:

How many containers do you have? Sounds like the issue that the firm does not save completely when many containers are in use. Please check the last 2-3 pages to get a workaround. Will pin the post later.

A added delay could be set if none are set before? So every container gets a 10sec delay as a default option?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.