Jump to content

[Plugin] Appdata.Backup


Recommended Posts

IMG_9346.thumb.jpeg.4339bf832c9f7a63d04e2acfb0fcb358.jpeg

I have this issue and it prevents me from backing up plex on a weekly basis. How to I downgrade to your previous plugin? I can provide a debug if I run it again but if this is going to take a long time ( weeks or months ) then I have no protection for plex and given my luck I will have a failed drive and be screwed! lol. 

On 4/10/2023 at 9:22 AM, KluthR said:

Known issues

  • Sometimes, users backing up Plex, are seeing backup issues for some "Application Support subfolders"

 

Edited by Braus
Link to comment

The next plugin update is making progress! Ive implemented a "Skip backup?" option per container which allows you to skip backup but includes the container for stop/starts processes.

 

The new grouping function is not done yet but it looks like this. Please note that a container can be assigned to one group only.

 

grafik.png.f713b3274ad7ffaaa6e5cd4e0a495503.png

 

grafik.png.d26092d94251a403f976715153d5d5c0.png

  • Thanks 1
Link to comment
3 hours ago, KluthR said:

The next plugin update is making progress! Ive implemented a "Skip backup?" option per container which allows you to skip backup but includes the container for stop/starts processes.

 

The new grouping function is not done yet but it looks like this. Please note that a container can be assigned to one group only.

I like this a lot. I was just setting up the plugin for the first time and was coming here to request this feature. Looking forward to the update!

Link to comment
On 11/25/2023 at 7:19 PM, ConnerVT said:

Interesting how your Plex appdata usage is so different than how mine is distributed.

Cache is going to vary wildly depending on what's happening at any given moment, and my Media is huge because I have all possible thumbnails generated. And my actual libraries are into the dozens of TB at this point. 

Link to comment

I actually resolved this. I deleted the ENTIRE directory that was “meta data” and re ran plex and let it rebuild the data. After some time I re-ran the app backup plugin and the issue was resolved. I did notice what the issue was though. Turns out, it was permission issues. Some files in that directory had re-wrote permission for ALL, whereas others had permission for no one. APP BACKUP could backup ones that had permission for ALL but not for NONE.

  • Like 1
Link to comment
On 12/6/2023 at 2:37 PM, Be-Art said:

Hi @KluthR, There is a debug log sent to your server '7741fdb5-c2b4-4df0-b4d8-b95d5420612c' the error states "Cannot create destination folder". The automation of the backup has not run since 21/11/2023, backup on 28/11/2023 is noted as 'failed' on the directory. 

Thats weird. /mnt/user/backups/appdata/ is writeable but the subfolder is no creatable. Nothing I could do, something is wrong there. Please try a mkdir via terminal and report if its working

Link to comment

A new beta is out and I want as many users as possible to test it. It has the container grouping in it and many other changes. I think some bugs are in as well 🤣

 

The new beta offers you to copy the prod config to it, so you dont have to reconfigure anything EXCEPT FOR THE DESTINATION PATH!!!

  • Like 1
Link to comment

Greetings!
Apologies if I missed this in another post.

I recently upgraded to 6.12.6 and finding the old App Backup deprecated installed your awesome new one.
Going to setup found it pretty straight forward however when I click save after configuring I am redirected back to http://IP/Settings/AB.Main but just a solid white page. Refreshing or navigating away and back shows the settings not having saved. 

I've tried this in multiple different browsers with no luck. Also tried uninstalling/reinstalling plugin as well as restarting unraid entirely. 

Thanks for any assistance in getting this setup.
-Cheers

Edited by Healzangels
Link to comment

I know this was mentioned before, and maybe you have implemented something in the beta, or I am doing something wrong, but my backups always complete with "root" as the owner and no read/write permissions.

 

I have a script setup to run after the backup completes with the following (2 servers backup here -- Tower & Control):

"chown -R nobody /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Tower\ Server
chown -R nobody /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Control\ Server
chmod -R 777 /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Tower\ Server
chmod -R 777 /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Control\ Server"

 

I believe this will work in the meantime, just wondering if there is a fix for this perhaps?

 

Link to comment
14 hours ago, KluthR said:

To be honest: The CSRF things are Unraid things. Yes, we have a few users having this issue but I dont know why. 99% of the users dont see this issue - including me.

 

Which browser and which extensions are installed? Is a password manager involved maybe?

Shucks unlucky I guess! 
I've tried with Chrome, Firefox, Safari as well as in incognito mode with no extensions running but still CSRF. Tried the new beta and same thing. I'll attempt a few other options and see if they have any success. Thanks for the info.

Link to comment

 

On 8/3/2023 at 1:59 AM, KluthR said:

Please try this:

 

Open /usr/local/emhttp/plugins/appdata.backup/pages/content/settings.php. Scroll down to line 214, saying "<form id=abSettingsForm>". Just after that line, insert this:

<input type="hidden" name="csrf_token" value="<?=_var($var,'csrf_token')?>">

Save it and reload the settings page and try to save. What is happening now?

Kept looking through thread and saw this so gave it a whirl. Seems to have fixed my problem as well. I can now save the settings changes! Going to continue testing but seems promising! 

Link to comment
21 hours ago, mdoherty66 said:

I know this was mentioned before, and maybe you have implemented something in the beta, or I am doing something wrong, but my backups always complete with "root" as the owner and no read/write permissions.

 

I have a script setup to run after the backup completes with the following (2 servers backup here -- Tower & Control):

"chown -R nobody /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Tower\ Server
chown -R nobody /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Control\ Server
chmod -R 777 /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Tower\ Server
chmod -R 777 /mnt/user/Backup/Backblaze\ Upload/Unraid\ Appdata\ Backup/Control\ Server"

 

I believe this will work in the meantime, just wondering if there is a fix for this perhaps?

 

 

20 hours ago, KluthR said:

Issue is known yes but not fixed yet. This and the no archive option are still missing but on my todo! A future beta will have it. I try to finish it asap.

 

Okay thanks!

 

Hoping someone can possibly help me out in the meantime, as my ownership/permissions script is not working. When I manually run the commands, it works fine, but when I try to run them in the script, I get the following:

 

"chown: cannot access '/Unraid Appdata Backup/Tower Server'$'\r': No such file or directory
chown: cannot access '/Unraid Appdata Backup/Control Server'$'\r': No such file or directory
chmod: cannot access '/Unraid Appdata Backup/Tower Server'$'\r': No such file or directory
chmod: cannot access '/Unraid Appdata Backup/Control Server'$'\r': No such file or directory"

 

I'm sure I am just doing something wrong, so any help would be greatly appreciated!

 

 

Link to comment

Is it currently possible, or can it in the future be possible to update per container after backup? I looked through the settings and didn't see an option for the sequence.

 

From what I understand when looking at the logs a container is:

Stopped

Backed up

Backup is verified

Started

 

This is done for all containers on the list then the updates start. Thus each container is stopped twice, once for backup then once for update if applicable. I would like to have the containers:

Stop

Backup

Verify Backup

Update if applicable

Start

 

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