[Plugin] Appdata.Backup


Recommended Posts

On 2/13/2024 at 5:23 PM, KluthR said:

I have at least to play with this. Unraids dockerMan is giving only the name/path of the used volume, not any info about the type.

Some update here:

 

the plugin can easily handle named volumes in future. The next beta has support for it.

  • Like 1
Link to comment
1 hour ago, trurl said:

In any case, what is the solution?

As said: Read the "Allowed appdata sources" help block to understand how bind volumes are beind determined as internal/external.

You could also submit a debug log within the log tab to let me check your situation.

 

1 hour ago, paperblankets said:

It has been added there as well

🤦‍♂️Yea, I just checked and saw, that the exclusions list is not being checked within the function that determines the volumes. I note that and it will be fixed within a next release.

Link to comment
6 hours ago, trurl said:

I have the plugin configured to look for the appdata at /mnt/user/appdata.

It should include all appdata sources, both /mnt/user/appdata and any /mnt/[pool]/appdata if applicable, because when it looks at the path in the template it checks if that's within the sources, if it is then it's "internal". If you only specify /mnt/user then if you have a template configured to access /mnt/pool directly it'll be considered external.

Edited by Kilrah
Link to comment
35 minutes ago, trurl said:

specify /mnt/fast/appdata for the Appdata source instead of /mnt/user/appdata?

That seems to have worked. Hadn't been backing up anything in appdata for months, just copies of my templates, many that I don't even use anymore. I'll clean those up.

Link to comment
1 hour ago, trurl said:

Nothing explained so far is helping me to understand what I need to change. Do I need to specify /mnt/fast/appdata for the Appdata source instead of /mnt/user/appdata?

Instead or additional. It depends where the primary mapping targets are located at. Otherwise all detected mappings are considered external and only being backed up if „backup external volumes“ is enabled.

Link to comment
6 minutes ago, KluthR said:

Libvirt is not being backed up, only some contents of its mounted filesystem (the vm definition). 

I see that, but how can I restore the VMs from this content? I presume, ultimately we need to recreate libvirt.img from these files.

Link to comment

Sure, I don't expect the vdisks to be restored. I have those. So if the content of /etc/libvirt/ gets restored by the plugin to /etc/libvirt/, then the restored files will be written directly into the mounted libvirt.img, so no need to take care of rebuilding this?

Link to comment
9 hours ago, olympia said:

so no need to take care of rebuilding this?

No. If it was rebuilt/created by unraid, you should be ok after restoring.

 

7 hours ago, BigMal said:

The one I am attemping to restore does not have "-failed" at the end.

Please post a ls -a from the path you are having in the restore path field.

 

maybe you could add a screenshot from the restore page with the error message in place?

Link to comment
21 hours ago, KluthR said:

@trurl Now I see what happened. I believe transmission never got backed up. I recently raised the loglevel for your posted warning to be warn instead just info. So maybe the plugin shows now an issue when it was silent before:

 

https://github.com/Commifreak/unraid-appdata.backup/commit/1d970a9ce0292b53b6c037ba18cad26b1e7ebb35

Damn I think this is what happened to me. I've checked old backups and the ones that threw an error this week never had a tar.gz in the backup location. I just never noticed because I never got a notification (which I did after you made the change).

Link to comment
9 hours ago, KluthR said:

Please post a ls -a from the path you are having in the restore path field.

 

maybe you could add a screenshot from the restore page with the error message in place?

This is complete user error on my part. For those who may have similar issues, do the following:

 

As instructions clearly state, select the folder with the "ab_" folders in them. Not the actual "ab_" folder as I was doing (that is what caused the initial error.  I selected those folders because when I selected the backup folder and clicked "Next", I did not pay close enough attention to the fact that "Step 2" appeared below.  Then, I just followed the instructions.

 

Again, completely my fault. But, aopreciate the responsiveness and willingness to assist.

Link to comment

With the current version in the UI I get the "WARN: Multi mapping detected!" for almost all my containers, most of them being actually unique.

 

image.thumb.png.e1b85d3a09ddaf473599af226d703fba.png

 

Also I got an error for a missing folder. That is an external volume, and external volumes are not being backed up for this container, so that should at most be a warning, not an error. 

 

image.png.da47ae65eb44ccc16b7859e01fcfbfbd.png

  • Upvote 1
Link to comment
1 hour ago, Kilrah said:

With the current version in the UI I get the "WARN: Multi mapping detected!" for almost all my containers, most of them being actually unique.

 Seeing the same in all of my containers except 3.  Those have no appdata configured.

 

image.png.b9ba1bf1e793ecbb1697ffef23ea8c7f.png

  • Upvote 1
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.