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

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

2 hours ago, KluthR said:

Any other container using the mentioned volume?

yes, all of them 

thanks, I will try tomorrow!

 

have a nice evening and thanks again for your help,

 

edit:

it's working now 😊

Edited by scissabob

I'd like to create a script to run after the backup has successfully completed. 

The script needs to run only if the backup was successful, then:

 

Empty the `/mnt/user/CommunityApplicationsAppdataBackup/appdata-latest/` folder.

Copy the folder that was just created by the backup tool to the above path.

 

I've not written any scripts before. Does anyone have any example scripts?

  • Author

Since the plugin is able to call scripts with some status info (dunno if the latest already contains that) it should be possible. If I have some time tomorrow I can write you a sample.

Thanks for the reply. I came up with this, seems to work.

 

#!/bin/sh

    # Destination folder that will be cleared and will receive the copied data:
    dest="/mnt/user/backup/CommunityApplicationsAppdataBackup/appdata-latest"

    # The expected path of the source data (for sanity checking)
    src_must_contain="/mnt/user/backup/CommunityApplicationsAppdataBackup/appdata/ab_"

    # Sent arguments: post-run, destination path, true|false (true on backup success, false otherwise)
     
    today=$(date +'%Y-%m-%d_%H%M%S')
    logfile="/mnt/user/backup/CommunityApplicationsAppdataBackup/appdata/port-run-$today.log"


{ # required for logging, see EOF for closing brace.

    src="$2"
    backup_status="$3"

    echo "log: $logfile"
    echo
    echo "params:"
    echo "param 1 = $1"
    echo "param 2 = $2"
    echo "param 3 = $3"
    echo


    if [ $1 != "post-run" ]; then
        echo "ERROR: param 1 not \"post-run\", exiting."
        exit 0
    fi


    # check param indicates the backup was successful:
    if [ $backup_status != "true" ]; then
        echo "ERROR: backup_status is not true, exiting."
        exit 0
    fi


    # check source path contains the expected path:
    if [[ $src != *"$src_must_contain"* ]]; then
        echo "ERROR: src path appears to be at an unexpected location, exiting."
        exit 0
    fi


    # check source is a directory:
    if [ -d $src ]; then
        echo "source: $src"
    else
        echo "ERROR: src is not a directory, exiting."
        exit 0
    fi


    # check destination is a directory:
    if [ -d $dest ]; then
        echo "dest:   $dest"
    else
        echo "ERROR: dest is not a directory, exiting."
        exit 0
    fi


    # empty destination directory:
    rm -rf $dest/*

    echo "Copying src to dest..."
    # copy source to destination
    cp -r $src/ $dest/

    echo
    
    echo
    echo "finished, exiting."
    exit 0
    
} 2>&1 | tee -a $logfile

 

Actually, it doesn't work.. backup.log and config.json are missing from the copied files.

 

Any idea why? Are these files locked when the port-run script is executed?

Edited by jj_uk

  • Author

The log os copied as last step I think. But the missing config file is interesting. Let me test some things.

This Error Message is nervous.

 

Event: Appdata Backup
Subject: [AppdataBackup] Warning!
Description: Please check the backup log!
Importance: warning

'/tmp/Nginx-Proxy-Manager-Official/var/log' does NOT exist! Please check your mappings! Skipping it for now.

 

Yes, this is a temp Path, but its the original Path from the Template.

That's what's working when the Docker Container is Running. But actually he is stopped.

 

Can i or you do anything? @KluthR

Edited by Revan335

I want to only keep 4 backups, but the older versions are not getting deleted (5 copies are here).  I want to make sure I have my settings set up correctly:

Delete backups if older than x days:28
Keep at least this many backups: 4

16 minutes ago, clowncracker said:

Keep at least this many backups:

 

1 hour ago, Kilrah said:

 

So I should leave that blank if I only want to keep 4 backups?

No it's fine as is, it's just that there is no setting for "don't keep more than X", it's always the days setting that will cause the older ones to be removed.

Also note that if there are backup errors deleting is skipped so make sure everything is finishing without error.

6 hours ago, clowncracker said:

I want to only keep 4 backups, but the older versions are not getting deleted (5 copies are here).  I want to make sure I have my settings set up correctly:

Delete backups if older than x days:28

 

If you back up once a week, on the 4th week your oldest backup will be 28 days old.

 

28 Days Old is not Older Than 28 Days.  So you end up with 5 weeks of backups, not 4.

 

Try setting it to 27 days.

Hello!

 

I was wondering how do I configure this plugin?

Does anyone have a guide?

It looks very complex. 

 

Thanks! 

Edited by urbanracer34

anyone  else got problems with "Appdata Backup" not backing up all appdata fodler, only 1 and then xml  for the rest?

2 minutes ago, cronner said:

anyone  else got problems with "Appdata Backup" not backing up all appdata fodler, only 1 and then xml  for the rest?

wow just looked and having the same problem

I'm not sure if this is an issue but I just did my first scheduled backup with this new plugin. And I have VM meta checked as yes. But I couldn't find that or the libvert backed up anywhere in the backups. But as it says VM meta I'd assume it's not backing up the libvert anymore and just the meta data it uses to create the VMs? Either way I want able to find any VM related backup files. But my flash backup was there. 

2 hours ago, DevXen said:

Either way I want able to find any VM related backup files

Shows up as a vm_meta.tgz archive with the contents of /etc/libvirt/qemu here.

43 minutes ago, Kilrah said:

Shows up as a vm_meta.tgz archive with the contents of /etc/libvirt/qemu here.

Awesome..I found it. In thank you..10k filesize.. But it's there.

Hi,

I've set this appdatabackup plugin a couple of month ago, it was working fine until a few backups ago, maybe 2-3weeks.

I get this error, tar verification failed

[30.12.2023 05:13:10][ℹ️][Dropbox-by-otherguy] Stopping Dropbox-by-otherguy... done! (took 10 seconds)
[30.12.2023 05:13:20][ℹ️][Dropbox-by-otherguy] Should NOT backup external volumes, sanitizing them...
[30.12.2023 05:13:20][ℹ️][Dropbox-by-otherguy] Calculated volumes to back up: /mnt/user/appdata/dropbox
[30.12.2023 05:13:20][ℹ️][Dropbox-by-otherguy] Backing up Dropbox-by-otherguy...
[30.12.2023 05:28:07][ℹ️][Dropbox-by-otherguy] Backup created without issues
[30.12.2023 05:28:07][ℹ️][Dropbox-by-otherguy] Verifying backup...
[30.12.2023 05:32:48][][Dropbox-by-otherguy] tar verification failed! Tar said: tar: Removing leading `/' from member names; mnt/user/appdata/dropbox/events/store: Contents differ
[30.12.2023 05:32:48][ℹ️][Dropbox-by-otherguy] Starting Dropbox-by-otherguy... (try #1) done!


all the other containers are backedup properly and succed. Only this one is giving me trouble. 

 

I did sent the error log to the developper, this is the ID "4024f2b1-e1ae-4c4b-b225-5db3bfbbfc99"

On 12/26/2023 at 1:08 AM, Revan335 said:

This Error Message is nervous.

 

Event: Appdata Backup
Subject: [AppdataBackup] Warning!
Description: Please check the backup log!
Importance: warning

'/tmp/Nginx-Proxy-Manager-Official/var/log' does NOT exist! Please check your mappings! Skipping it for now.

 

Yes, this is a temp Path, but its the original Path from the Template.

That's what's working when the Docker Container is Running. But actually he is stopped.

 

Can i or you do anything? @KluthR

Can I or you anything to fix this?

Except for leaving the Docker container running permanently, although it does not run during the backup either, because it is backed up and therefore terminated beforehand.

I'm not sure if this is the correct place for a feature request. I would like to use this plugin to only backup my flash drive. It would be nice to have a global option to skip/disable docker & appdata.

 

Current workaround

  • point app-data to an empty directory
  • turn each docker to "no"

My only concern with this is that every time I install a new docker I need to remember to disable its backup.

Hello, is there any reason that the schedule I set would stop working randomly?

 

I had the auto schedule set to work daily and recently it stopped working.

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.