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

Forgive my stupidity, I'm pretty certain I've got a corrupt/dying flash drive that I need to replace. I've been using this plugin as my only flash backup, but I have over 10 backups I can revert to. My question is, how do I revert to a flash backup? I'm assuming it's a manual process but I couldn't find any documentation on the subject. The only stuff I found was on the official flash backup in unraid tools.

  • Replies 2.2k
  • Views 364.6k
  • 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

Getting 1 warning and 1 error that I can't figure out.

 

First the warning:

[20.10.2024 03:07:18][⚠️][PhotoPrism] PhotoPrism does not have any volume to back up! Skipping. Please consider ignoring this container.

 

But it does have a volume to back up?

image.thumb.png.202d254a9e21c54742ae317189553c3c.png

image.png.b27adef2d72dc2ff2077275408b47f3d.png

 

So I'm not sure why it's saying there isn't one.

 

Second the error:

[20.10.2024 03:07:18][][Krusader] 'binhex-shared' does NOT exist! Please check your mappings! Skipping it for now.

 

image.thumb.png.d107162936d4a8dc6bcc6c219b366264.png

 

There's no `binhex-shared` on my Krusader docker config either. So I'm not sure what it's referring to.

Edited by s449

12 minutes ago, s449 said:

But it does have a volume to back up?

It doesn't, 2 are recognized as external and backing up external volumes is not enabled. If the appdata one isn't meant to be external then it's because it directly refers to /mnt/cache instead of /mnt/user, you're missing /mnt/cache/appdata in the plugin's backup sources.

 

  

13 minutes ago, s449 said:

There's no `binhex-shared` on my Krusader docker config either.

It's probably hidden in "show more" in the docker template. You can set it to ignore.

Edited by Kilrah

On 10/18/2024 at 1:25 AM, 7eventy7 said:

Forgive my stupidity, I'm pretty certain I've got a corrupt/dying flash drive that I need to replace. I've been using this plugin as my only flash backup, but I have over 10 backups I can revert to. My question is, how do I revert to a flash backup? I'm assuming it's a manual process but I couldn't find any documentation on the subject. The only stuff I found was on the official flash backup in unraid tools.

Just extract the zip to the root of your flash drive. You could also use unraid's usb creator and give it the zip instead of choosing from a release.

On 10/21/2024 at 12:07 PM, Kilrah said:

It doesn't, 2 are recognized as external and backing up external volumes is not enabled. If the appdata one isn't meant to be external then it's because it directly refers to /mnt/cache instead of /mnt/user, you're missing /mnt/cache/appdata in the plugin's backup sources.

 

  

It's probably hidden in "show more" in the docker template. You can set it to ignore.

 

You're right! I just had /mnt/user/appdata/, so I added /mnt/cache/appdata/:
image.png.7a2a1d704b0df51e8bbcc807f11b5c3b.png

 

You're also right, binhex-shared was also hidden under "show more" in the docker compose. I just added it to the excluded list for Krusader:

image.png.3d626fddbaf39e98f32b9b72405fa6e6.png

 

I also just found another thread about this issue: https://www.reddit.com/r/unRAID/comments/1f0z4zl/backup_warning_for_binhexshared/

 

I'll have to wait for the next scheduled backup to test if this works but I'm optimistic this will solve these issues. Thank you so much for the help! :)

 

Edited by s449

I have a question on your plugin backup regarding appdata sources

image.thumb.png.7ca69f0781cbf909315a0b09262907ce.png

TO make htis work as a few backups had issues with volumes and missing data path I have moved off the array in beta 3 to zfs only and had to add this to my sources

/mnt/cache/appdata
/mnt/user/appdata
/mnt/user/Dockers
/mnt/vm-zfs/Dockers
/mnt/vm-zfs/Dockers/ClamAV
/mnt/vm-zfs/Dockers/FastAPI-DLS
/mnt/vm-zfs/Dockers/Grafana
/mnt/vm-zfs/Dockers/LocalAI
/mnt/vm-zfs/Dockers/MakeMKV
/mnt/vm-zfs/Dockers/MariaDB-Mysql
/mnt/vm-zfs/Dockers/netprobe_lite
/mnt/vm-zfs/Dockers/PBS
/mnt/vm-zfs/Dockers/PhotoPrism
/mnt/vm-zfs/Dockers/Plex
/mnt/vm-zfs/Dockers/SFTP

 

So when i run the backup manual its now grabs the voulmes. Great!

Except 2 dockers have large data volumes in teh backup i want it to backup its core runing files.

in example My plex media libary is 6 TB in size if not more, I want to skip the libary backup , but want ot backup the volume of my plex install, database , etc... 

example of that folder tree:
image.png.767159ce4b1f137aeeaffd7ab06746c4.png
I only want the plugin to grab and backup the appdata folder.
image.png.f5a98496a580c68084945ab7446d12f9.png

I also have something simlar for my photo prism docker where i want to keep the docker iamge contets and data but the actual data
image.png.b7b8cb27797315f45f342be34b9bd117.png

For Me, I rather use and acquire my plex media libary and Photo prism photo restored form a different method to speed up the backup and not have 6TB file for one item... The backup i want is the application settings and data that currently are running to function as the library can change and be updated, but library data can vary and change...


Is there a way to add a skip volume to the plugin path?
a wild card or another box to add a exclude volume?

mainly was looking for clarfication on how to use the exclusion list system. I think I have it working, now...

image.thumb.png.db8576f7406791a692ce2485b5583d38.png

my list to exclude:
/mnt/user/Dockers/Plex/Data
/mnt/user/Dockers/Plex/Data/Movies
/mnt/user/Dockers/Plex/Data/TV_Shows
"/mnt/user/Dockers/Plex/Data/Personal Family Home Videos"
/mnt/user/Dockers/PhotoPrism
/mnt/user/Dockers/PhotoPrism/import
/mnt/user/Dockers/PhotoPrism/originals
/mnt/user/Dockers/PhotoPrism/storage

image.png.f8d6f5fd95dabcfd3eb5c78b352d3212.png

Hi all

I just saw that my folder with my "App data backup" does contain some old dockers .xml files.

 

But why arnt thees betting deleted?

The dockers are lone gone.

Meny thanks!

image.thumb.png.ef78835017bb7ee08006f3b484fc41cb.png

Apps -> previous apps -> clean up

 

I'm not sure why its unable to create a directory. The plug in was working for me before and just stopping working, Not sure if it stoped working when I updated a while back?

 

 

Nevermind. I deleted the backup folder and it worked now.

image.thumb.png.da8cc6f60d48cb54995d91d29ea2fad1.png

image.thumb.png.f6af78eab8cefdea3ba1095fb1d6f3b0.png

Edited by bobdole199534

Check the destination folder/drive/share, maybe it's corrupted, maybe it's full/has reached the share min free space level,...

Is there a Restore guide?

I think all is going well with this excellent app. If I need to restore, is there a procedure for that?

Seems straightforward in the restore tab, but before I panic because of a colossal failure and scrambling to get things back, I love to read the how-to.

HI :)

 

Is it correct that this plugin does not backup libvirt ? :) I did in the past right? :)

  • Author

It only copies over the xml metadata. Not the whole libvirt things.

On 10/26/2024 at 2:19 PM, Kilrah said:

Apps -> previous apps -> clean up

Hi :)

Thanks!

I cant see that?

image.thumb.png.22da46d816170af7a8ffbfb5983efe70.png

On 10/15/2024 at 9:29 AM, CS01-HS said:

It occurs to me the following (for "start, backup, start for each container") would reduce downtime significantly:

  1. Untar container's latest backup into temp directory
  2. Stop container
  3. rsync container's appdata directory to temp directory
  4. Start container
  5. Tar temp directory as new backup
  6. Verify
  7. Clear temp directory

 

No downsides I can think of besides the extra space required. 

Do you have a ZFS filesystem by chance? I wrote a custom script for this plug-in that reduces downtime for each docker to less than a second thanks to utilizing ZFS snapshots. I've been using it for three months now, works great for me, hopefully someone else can find it useful as well.

Been backing up without issues for years, the last 2 nights I've gotten a tar verification failure on my plex container with this message:

[03.11.2024 04:31:44][ℹ️][Plex-Media-Server] Backing up Plex-Media-Server...
[03.11.2024 04:32:42][ℹ️][Plex-Media-Server] Backup created without issues (took 00:00:58 (hours:mins:secs))
[03.11.2024 04:32:42][ℹ️][Plex-Media-Server] Verifying backup...
[03.11.2024 04:32:55][][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/Logs/Plex Media Server.log: Mod time differs; mnt/user/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log: Size differs

 

What should I be looking at here?

May I only back up the USB drive? For Docker containers, I have another backup solution.

image.thumb.png.365211a59ebadbb02ca35816ef76ed9f.png

I try to empty Appdata source(s)  option but cannot save.And there are too many containers to set skip one by one.Thx

27 minutes ago, nukecat said:

May I only back up the USB drive? For Docker containers, I have another backup solution.

image.thumb.png.365211a59ebadbb02ca35816ef76ed9f.png

I try to empty Appdata source(s)  option but cannot save.And there are too many containers to set skip one by one.Thx

For the flash drive, I discovered that you can simply run this built-in Unraid command to back up the flash drive (it's what the plug-in uses as well). It puts the .zip file in Unraid's root directory, so you could simply have another command copy/move the zip after it has been backed up by the command.

/usr/local/emhttp/webGui/scripts/flash_backup

 

After working for many years, this week I have been getting errors. This is happening everytime the app backup runs.

 

After app backup, the dockers fail to start. This is happening with all dockers. I have uploaded my debug logs, if the dev can kindly have a look at it and advise, where things are going wrong.

 

The Debug Log ID is ce17d406-7dd9-45df-8a7c-0eda76833047.

 

[EDIT] nevermind, after a bit of digging, it is my docker image which has gone kaput. I have deleted and recreated the docker image and the dockers are fucntional again. Just did a full backup to verify the app is able to backup dockers as well.

 

Edited by Babar

Hi, thanks for the plugin.  Saved me on many occasions.  It seems like any issue I have with the server is sufficiently long enough for me to forget the steps necessary to restore.  I just a corrupted db message in Sonarr so I need to restore that.  I searched and I can't find any step by step guides to restoring as I want to store this information so I don't have to relearn each time.  Can someone point me to this as I know it has to be out there but my searching has not found it so far.  Thanks.

Edited by The Transplant

On 11/2/2024 at 7:50 AM, Blasman said:

Do you have a ZFS filesystem by chance? I wrote a custom script for this plug-in that reduces downtime for each docker to less than a second thanks to utilizing ZFS snapshots. I've been using it for three months now, works great for me, hopefully someone else can find it useful as well.

Why have any downtime at all if you use snapshots? I've been taking hourly snapshots of my appdata without stopping my containers at all since zfs support officially arrived on unraid. 

  • Author
2 minutes ago, Renegade605 said:

Why have any downtime at all if you use snapshots?

Because online snapshots are not consistent. There will be imcremental zfs snapshots in future but the recommendation to stop the services for the snapshot will still be there.

  • Author
On 11/2/2024 at 2:50 PM, Blasman said:

Do you have a ZFS filesystem by chance? I wrote a custom script for this plug-in that reduces downtime for each docker to less than a second thanks to utilizing ZFS snapshots

Thats also my plan. I check native ways without sanoid but incremental zfs snapshots are my goal for the next update.

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.