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

Can i start the backup from userscript instaed of scheduled? What would the command be to start the proces?

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

I've been using this plugin for a few months, and both appdata and flash drive backup works without issue.

However i found with backup copies retention set to keep 3 copies and delete older copies, that only works for appdata backup, not the flash drive backup. It keeps every flash drive backup since day one. What should i do? Thanks in advance.

1 hour ago, ineedt0Pee said:

I've been using this plugin for a few months, and both appdata and flash drive backup works without issue.

However i found with backup copies retention set to keep 3 copies and delete older copies, that only works for appdata backup, not the flash drive backup. It keeps every flash drive backup since day one. What should i do? Thanks in advance.

Flash drive backup is in the folder with the rest, so gets deleted with the folder.

 

Sounds like you set an additional flash backup destination for a 2nd copy, if that's really what you want then it's yours to manage.

Edited by Kilrah

  • Author

You have to chosse the parent folder, which holds the ab_ folders. Do not select the ab_folder itself

The plugin has worked for me before but now it keeps giving an error about not being able to create the destination folder:

 

[03.04.2025 22:01:25][ℹ️][Main] 👋 WELCOME TO APPDATA.BACKUP!! :D
[03.04.2025 22:01:25][ℹ️][Main] Backing up from: /mnt/user/appdata, /mnt/cache/appdata
[03.04.2025 22:01:25][ℹ️][Main] Backing up to: /mnt/user/backups-old/appdata/ab_20250403_220125
[03.04.2025 22:01:25][][Main] Cannot create destination folder!
[03.04.2025 22:01:25][ℹ️][Main] Checking retention...
[03.04.2025 22:01:25][ℹ️][Main] DONE! Thanks for using this plugin and have a safe day ;)
[03.04.2025 22:01:25][ℹ️][Main] ❤️

 

What could be the reason? The folder /mnt/user/backups-old/appdata exists

 

(The plugin log file should be at "/tmp/appdata.backup" but I can't find that location. Where is it?)

On 3/29/2025 at 11:22 PM, steff_92 said:

I found the solution.

I have previous setup destination folder and save the configuration.

When i try now to backup, a change the destination folder, but never click SAVE, instead i try direct manual backup. But the system reads from the saved configuration which is no longer available. I have noticed after few day strugling.

 

So the answer is, after you change destination driver or some other setting, you must SSAVE IT, and then DO the manual backup.

This seems to solve my issue. Thanks!

I have my current appdata set to back up 3 days worth of data:

 

image.png.970a0491788995dd7e8fac4d7e58a8b9.png

 

This equals 72.1GB. All I have is firefox, plex and netdata dockers. My Plex alone is 32.8GB and photoprism (which I don't use anymore is another 32GB) but I am confused because the appdata backups are only 260MB and most of the data is from my firefox docker, wtf.

 

image.png.167317811e86fc874b831dc294ee8932.png

 

Also, if you see my unraid config above it's set to delete older than 1 day but to keep up to 3 days and below, I have one backup a month only. I am very confused an hoping someone can ELI5

 

image.png.30fd032524ba2e7e415e1d8fd5080086.png

image.png

What's in the folders? What's the scheduling set to? You told it to keep 3 folders and you have 3 (plus something that's probably from something else than this plugin from back in 2023).

It's set to the 5th of the month, which makes sense about monthly now

 

 

this is in the folders:

image.png.f54415697814ca48f56dcbf2bc29a4d6.png

Edited by sanfark

That shows only firefox being backed up. But that doesn't seem to be on the destination directly, seems like a copy somewhere else that may or may not include everything for some reason.

So my appdata is not actually being backed up. Plex is at risk (all I care about)?

 

Is there some sort of logs I can provide that can help? I simply downloaded this plugin, set it up once and let it go. Doesn't seem like it's doing what it's supposed to be doing

You still didn't show how you set it up. What are the container-specific settings? What data is on the set destination itself? How does stuff end up on your I: drive? That wouldn't be the plugin doing it.

Plugin does what it should unless configured wrong.

How does stuff end up on your I: drive?I

It does not. just copied appdata backup from server to my I drive so I could see the size and look through it in windows. I:\ drive is a separate windows PC

You still didn't show how you set it up. I don't know what else you are looking for, let me know and I can provide

 

I am backing up (just realize I essentially have /mnt/user/appdata/plex twice):

/mnt/user/appdata
/mnt/cache/appdata
/mnt/user/appdata/plex

 

What are the container-specific settings?

image.thumb.png.4496aa9f25048c0b9230a958bcb5e1ba.png

image.thumb.png.2eeb923f6af2dd7acf2c3e2a0fd0e1bb.png

 

 

What data is on the set destination itself?

The data was the one in picture I shared.

image.png.1c9e4e370ae3434506df63421ce53f0c.png

  • Author
6 hours ago, sanfark said:

I am backing up (just realize I essentially have /mnt/user/appdata/plex twice):

/mnt/user/appdata
/mnt/cache/appdata
/mnt/user/appdata/plex

Are you talking about appdata sources? Then The first both are sufficient.

 

The best in this case would be: Let it run (if not already) and share a debug log.

10 hours ago, sanfark said:

/mnt/user/appdata/plex

That one's redundant

 

10 hours ago, sanfark said:

image.thumb.png.2eeb923f6af2dd7acf2c3e2a0fd0e1bb.png

That shows Plex does not have any configured appdata path, so it seems the Plex template itself is configured wrong, unrelated to this plugin.

There should be an appdata path, that would then show with the "Internal volume" icon and be backed up. 

 

10 hours ago, sanfark said:

What data is on the set destination itself?

The data was the one in picture I shared.

I was asking for checking on unraid itself in its file browser or terminal in case whatever method you used to copy to your external drive skipped some stuff. But it's moot, the issue is above. 

Edited by Kilrah

What are the arguments that can be sent to a custom script?  What is the argument for a filename and/or full path?

 

Is there a list of common post scripts?  I'm looking for a script that will copy the backup file to a second location.

 

 

2 hours ago, Jaybau said:

What are the arguments that can be sent to a custom script?  What is the argument for a filename and/or full path?

 

Is there a list of common post scripts?  I'm looking for a script that will copy the backup file to a second location.

 

 

You can click on the script types to expand the help option that shows all the available arguments (see screenshot).

 

Here is an untested 'post-run' script to rsync the backup folder to another destination. I made it fairly quickly with AI but it looks solid.

 

#!/bin/bash

# Hardcoded destination path (modify as needed)
DESTINATION="/path/to/your/custom/destination/"

# Validate arguments
if [ "$#" -ne 3 ]; then
    echo "Error: Invalid number of arguments."
    echo "Usage: $0 post-run <source-path> true"
    exit 1
fi

# Check if $1 is "post-run"
if [ "$1" != "post-run" ]; then
    echo "Error: First argument must be 'post-run'."
    exit 1
fi

# Check if $3 is "true"
if [ "$3" != "true" ]; then
    echo "Error: Third argument must be 'true'."
    exit 1
fi

SOURCE="$2"

# Check if source exists
if [ ! -e "$SOURCE" ]; then
    echo "Error: Source '$SOURCE' does not exist."
    exit 1
fi

# Rsync with common options
echo "Syncing '$SOURCE' to '$DESTINATION'..."
rsync -avh --progress "$SOURCE" "$DESTINATION"

# Check if rsync succeeded
if [ $? -eq 0 ]; then
    echo " Rsync completed successfully."
else
    echo " Rsync failed with error code $?."
    exit 1
fi

 

 

54fd665c-40da-48d5-960e-41d8e675d7e9.png

Edited by Blasman

On 3/31/2025 at 3:38 AM, freakyfreek said:

Can i start the backup from userscript instaed of scheduled? What would the command be to start the proces?

Yes. You may use:

php /usr/local/emhttp/plugins/appdata.backup/scripts/backup.php

Is using BETA version, it is:

php /usr/local/emhttp/plugins/appdata.backup.beta/scripts/backup.php

Alternatively, hide output by adding to end of line:  > /dev/null 2>&1

 

Hey Team,

 

i noticed that the duration of the backups in the log dont check the day... my Immich Backup took about 25h but log says about 1h. Nothing important, just wanted to share this

25 hours???

 

Something seems off, unless you are a professional photog with dozens of TB of RAW photos on your server.

 

I have just a basic Immich install.  My appdata folder for Immich is 5.5GB and backs up and verified in just over 1 minute.

 

image.png.cfea92cc86b31fa9f1a6f2e47ae1db48.png

 

image.png.52497882ef414de881e64831e9dac78c.png

 

image.png.baa77945476a80074c940de6332203a7.png

Is there a feature to encrypt the backups?  A lot of my containers contain API keys and passwords as part of the docker container template.

Thanks for this plugin. You saved my server today. 🍻

Is there an argument to pass the file name to a custom script?

 

My goal is to encrypt the backup file after the backup, then copy the file to an external location.

 

The AppBackup "backup destination" will contain multiple rotated backups, and I don't want to process the completed folders multiple times.

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.