Jump to content

[Plugin] Appdata.Backup


Recommended Posts

So I've tried searching and it may be early morning brain: 

 

In regards to Plex I recently learned about excluding the Cache, Media and Metadata folders using appdata backup, I thought I had it set up correctly but my most recent backup still is backing up the excluded paths.  I have tried to add them into the global exclusion list & into the Docker settings directly.  What am I doing wrong?

2024-09-1308_59_26-NVIDIAGeForceOverlayDT.thumb.png.b492e3070a4fcbd1b0ac160aff071983.png2024-09-1308_59_41-NVIDIAGeForceOverlayDT.png.5c5594a8f6a88993ff495dff4a3c2813.png

Opened up the most recent TAR:
image.png.ffd6dc6a87b1aa82dba292fdbe36fc4f.png

 

[13.09.2024 00:03:43][ℹ️][plex] Stopping plex...  done! (took 3 seconds)
[13.09.2024 00:03:46][ℹ️][plex] Should NOT backup external volumes, sanitizing them...
[13.09.2024 00:03:46][ℹ️][plex] Calculated volumes to back up: /mnt/user/appdata/plex-lscr
[13.09.2024 00:03:46][ℹ️][plex] Backing up plex...
[13.09.2024 00:08:03][ℹ️][plex] Backup created without issues
[13.09.2024 00:08:03][ℹ️][plex] Verifying backup...
[13.09.2024 00:12:03][ℹ️][plex] Starting plex... (try #1)  done!

^^Log from my most recent backup this morning.

 

 

Edited by DeadChimi
Link to comment
11 hours ago, KluthR said:

There is no default backup location. How should the plugin know it?

I’m probably mistaken with how permissions would work and such, but I assumed a default destiny could be set similar to how an installation destination isn’t required for the plugin application itself. 
 

Similar to when installing a docker container (from community apps)- Pre-select a default unraid folder (appdata or system), but allow it to edited.

Link to comment
1 hour ago, Kudagra said:

I assumed a default destiny could be set similar to how an installation destination isn’t required

The problem with this is people will assume it will work out of the box, when in reality the destination needs to be thought through based on the resources available.

 

1. it's a safe assumption that you won't want the backup on the same media that is being backed up, so using appdata is out

2. disk numbers aren't guaranteed to exist, and pools can be named almost anything you want except for system reserved names.

 

If a default is used, people assume it should work for most people. Better to make people decide based on their system.

  • Upvote 2
Link to comment

Hi, I'm getting an error with backing up my postgres container. Any help would be appreciated as I'm at a bit of a loss with this. I know excluding the container is an option but I would like to understand if this represents a bigger issue with how my data is stored.

 

Backup LogID:

78baa85f-4a85-4d9d-baea-4d54b6fe4b8b

 

 

Link to comment
On 8/29/2023 at 1:28 AM, samsausages said:

Hi, I think I might have found a bug related to how the plugin handles the "Extra Files" section and Unriads new "Exclusive Shares"
I have a share called share1 that is an exclusive share under /mnt/user/share1
I added that path to the "extra files" section long ago and it always worked as expected.  But now I'm on 6.12 with Exclusive Shares enabled and when I went to restore from a backup today I found out that the files are no longer being backed up.  Looks like because of the symbolic link.
Containers that use exclusive shares are backing up correctly, this seems to be limited to the "Extra Files" section.


I'm assuming I can work around that by using /mnt/poolname/share1 but I wanted to report the behavior as it looks like files for people using exclusive shares probably aren't backing up as expected and no error/warning is triggered.
 

Hi, i am such a people, want to backup a manuall created folder in appdata, and added it like this:

Quote

/mnt/user/appdata/dienstplan_importer/

Also tried without slash, with wildcard, ... nothing works. Also from cache folder (where it lives) doesnt work.
As you said, there is no hint/error/warning that it was not backed-up, it's just missing.

Any hint's how i can include this folder in the backup?

On 8/29/2023 at 5:38 AM, KluthR said:

Good point, have to test that.

Any hint's how i can add this folder to the backup?

 

PS.: have now made an workaround with an user script

Edited by pOpYRaid
Link to comment
  • Trying to troubleshoot a system lockup during backup...
  • Would it be possible to improve the logging?
  • Make it save to the SSD app folder rather than TMP folder?
  • Also if possible make the syslog name each docker as it is restarted?
  • The share debug log doesn't seem to DO anything...

 

Screenshot 2024-09-16 at 11.35.04.png

Link to comment

Your sources setting is wrong. Did you understood how it works? Did you read the help block?

 

Your appdata layout is also custom, you dont use a "appdata" share with holds the regular appdata. For your setup to work, set the allowed appdata sources to

 

  • /mnt/user/

and set Plex container excludes to "/mnt/user/data_store". The sources field is not be meant to hold every appdata container path.

 

That should do it.

 

You also maybe want to create a /mnt/user/appdata and store Plex's and tautullis appdata in there. Then you can change the sources path to "mnt/user/appdata" and clear the excludes fields (as external volumes get ignored by default).

 

Let me know if this helps.

Link to comment

Hello, 
Have been using this app for some time now, and the last backup pass this week showed the following error log with PLEX

 

tar verification failed! Tar said: tar: Removing leading `/' from member names; ....Application Support/Plex Media Server/.LocalAdminToken: Mod time differs; ....appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/.LocalAdminToken: Contents differ

 

Puzzled on how to resolve this concern. 
Would it be due to the PLEX generating a new token, since the previous backup, or something else I am not understanding. 

Any assistance is greatly appreciated.

Thank you kindly :-) 

Link to comment
On 9/15/2024 at 4:58 PM, pOpYRaid said:

and added it like this:

Where?

 

if you specified the share path (/mnt/user/appdata) and the final path as „extra backup files“ path, it should work

 

DO NOT add the final path to the sources list.

Link to comment
33 minutes ago, KluthR said:

Where?

 

if you specified the share path (/mnt/user/appdata) and the final path as „extra backup files“ path, it should work

 

DO NOT add the final path to the sources list.

I have NOT added "/mnt/user/appdata/dienstplan_importer/" (which hold's the extra files i want to include in the backup) to the sources.

Just added "/mnt/user/appdata/dienstplan_importer/" to "extra backup files".

 

But it does'nt include it in the backup and also NO hints (error/warning/...) log entry will be shown.
So i can't share a log, because i does'nt have an hint's about an issue.
That's the same behaviour as stated by @samsausages back in ~2023.

 

Can you please try to reproduce it?

thx

Link to comment
9 hours ago, KluthR said:

Please share a debug log from a recent run.

 

I have shared it, the id is: 6bdd1a47-e72d-43a9-aa78-89dd8153fc2c

The included extra folder exists and is accessible (currently backing it up with an user script), see:

 

image.png.f6f0d3d8cb52e274d13dac7e67698f62.png

 

Here are some pictures from my settings:

 

image.thumb.png.32fe42859cd55d173620fb8a229bd8be.png

 

image.thumb.png.38459f7892783ad64a8a6b35e3c8e852.png

 

image.thumb.png.0d2ba8a237c676b6abbfe528c2886ea7.png

 

image.thumb.png.597aa326e3fbcadd30a65cda471cdbaa.png

Edited by pOpYRaid
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...