[Plugin] Appdata.Backup


Recommended Posts

Just now, CorneliousJD said:

Nearly every single container is telling me there's a shared mapping, is this normal? It doesn't seem right.

 

Lidarr's appdata for example isn't mapped anywhere else

 

image.thumb.png.3deffa7f5d5508d1eecde4a5f31af715.png

Look a couple days back in this thread. It's mentioned and there is a hot fix. 

Link to comment
On 2/15/2024 at 9:53 AM, miloian said:

So:

$1="post-run"

$2="/path/to/where/appdata_backups/puts/the/backups/" # Is there a trailing slash or no?

$3="true OR false"

Would that mean I would need to pass these arguments as logic into an rclone script?

For context, I have the backup run at 0245 and then have a rclone script to push the backups into the cloud at 0600.

 

I tried putting the third flag in an if statement and still not running:

 

# Check if the third argument is "true"
if [ "$3" = "true" ]; then
    echo "Deleting previous log"
    rm /mnt/user/backups/BackBlaze_Logs/backups_log.txt
    echo "Running RClone Sync of backups Share to B2 backups Bucket"
    rclone sync \
      --progress \
      --stats-one-line-date \
      --transfers 4 \
      --verbose \
      --exclude ".Recycle.Bin/**" \
      --exclude "UniFi_Protect/**" \
      --links \
      --log-file /mnt/user/backups/BackBlaze_Logs/backups_log.txt \
        /mnt/user/backups/ \
        b2_buckets:my_bucket
    echo "Updating permissions of log file"
    chmod 755 /mnt/user/backups/BackBlaze_Logs/backups_log.txt
else
    echo "Skipping backup operation as the third argument is not 'true'"
fi

 

Edited by Waddoo
Added tested code.
Link to comment

I'm seeing posts from last year mentioning "one archive", so I suppose this is the old version of the plugin. I don't see this option with the new plugin, and I'm actually interested in getting one archive per run!

 

Is there an easy way to do that? Maybe leveraging the post-run script? But I haven't been able to find examples.

Link to comment
7 hours ago, georgie87 said:

I keep running into an error, cannot create the destination folder.

Interesting. Is there something special about /mnt/user/unraid_backup ?

 

Whats happening if you run "mkdir /mnt/user/unraid_backup/appdata_backup/test"?

Link to comment

Hi everyone,

 

I've tried searching this thread but I haven't found an answer to my challenge.  Can anyone point me to a sample script that I can run as a "Post-run script" to chmod the newly created backup?  I have a windows based scheduled task that is dying due to lack of r/w permissions.

 

Thank you in advance.

Cal.

 

Link to comment
17 hours ago, KluthR said:

Interesting. Is there something special about /mnt/user/unraid_backup ?

 

Whats happening if you run "mkdir /mnt/user/unraid_backup/appdata_backup/test"?

When I went to run that command, it failed with an error of not having enough space, this lead me to investigate the minimum free space setting of the share. Once I corrected that issue I was able to run the backup successfully! 

 

Thank you for pointing me in the in the right direction!

  • Thanks 1
Link to comment

An electrical surge killed 4 drives. Unfortunately I have to start with a new array in unRAID and restore everything. My unRAID OS (on the USB) is good and remembers all my settings and still has this backup plugin installed. What is the best way for me to restore using this utility? My unRAID docker tab shows some dockers present and running, most others are missing. Please assist.

...

I saw on the restore tab some instructions that the containers must be installed first. I did that, ran the restore function of this utility, and was please how fast, effortless, and efficient it was at restoring my containers. I'm a fan 🥳

Edited by Brona
Link to comment

During each backup, several containers are successfully backed up, but the size of the backup files is always 45B, and they are empty after being unzipped. Additionally, the backup verification fails. Here is my debuglog id: 34ab84a1-18d1-4a32-818a-91c96119b62f

Link to comment
[04.03.2024 11:44:51][⚠️][outline-postgres] outline-postgres does not have any volume to back up! Skipping. Please consider ignoring this container.

 

image.thumb.png.c191017fad635796af390e50ae769da5.png

 

Why does it say that there is no volumes to back up. There is.

 

Btw. thank you for this free tool that you put your work into. ❤️

Link to comment
6 minutes ago, Divid said:

Why does it say that there is no volumes to back up. There is.

Check settings. Whats inside allowed appdata source paths? Is the volume in question maybe "external" and therefore excluded?

 

3 hours ago, xushier said:

During each backup, several containers are successfully backed up, but the size of the backup files is always 45B, and they are empty after being unzipped.

Some of your containers excluding /mnt which leads to empty zips..?

 

15 hours ago, Brona said:

What is the best way for me to restore using this utility?

Point to the backup and restore all XMLs and appdatas. Use Previous apps to install all containers. Currently you need some manual work.

 

On 3/11/2024 at 2:24 PM, c0d3m0nk3y said:

Keep getting many of these "Please consider ignoring this container" warnings even though I have set them to be skipped

Another check here: I bet this container is inside of a group?

 

 

  • Thanks 1
Link to comment

Hi everyone,

 

I'm having challenges running a script that sets CHMOD -R 777 on the backups created.  It doesn't seem to set permissions on the newest backup created, but does change permissions for previously created backups.

 

I've set my script to run as a "Post-run script", and made the script executable.

 

The content of my script is as follows:

!/bin/bash
sleep 10
chmod -R 777 /mnt/pathToBackupFolder

 

When I view ls -l before the backup I see:

drwxrwxrwx 2 nobody users 7 Mar 12 13:36 ab_20240312_133545/
drwxr-x--- 2 nobody users 7 Mar 12 13:39 ab_20240312_133836/

 

Then running a new backup results in:

drwxrwxrwx 2 nobody users 7 Mar 12 13:36 ab_20240312_133545/
drwxrwxrwx 2 nobody users 7 Mar 12 13:39 ab_20240312_133836/
drwxr-x--- 2 nobody users 7 Mar 12 13:51 ab_20240312_135101/

 

How do I go about getting all backups to have "drwxrwxrwx"?

 

Please help.

Thank you,

Cal.

Edited by calvados
Link to comment
3 minutes ago, calvados said:

It doesn't seem to set permissions on the newest backup created, but does change permissions for previously created backups.

Yea. Just checked. The plugins chmod runs after post-run. Will change that in next release

Link to comment

Debug Log ID = 4049a95d-78bf-4065-b6d3-60dc5ed7ac89

 

Error Message:

[12.03.2024 04:01:09][][sabnzbd] tar verification failed! Tar said: tar: Removing leading `/' from member names; tar: /mnt/cache/appdata/downloads/inter: Not found in archive; tar: Exiting with failure status due to previous errors

 

I'm not sure why it's expecting to find /mnt/cache/appdata/downloads/inter as I have /mnt/cache/appdata/downloads as an excluded folder

 

I've disabled verification in the interim

  • Upvote 1
Link to comment
6 hours ago, KluthR said:

Check settings. Whats inside allowed appdata source paths? Is the volume in question maybe "external" and therefore excluded?

 

Some of your containers excluding /mnt which leads to empty zips..?

 

Point to the backup and restore all XMLs and appdatas. Use Previous apps to install all containers. Currently you need some manual work.

 

Another check here: I bet this container is inside of a group?

 

 

Excluded /mnt and include /mnt/user/appdata/Filebrowser/config.

Link to comment

Hey guys, thx for the plugin, works great.

 

Just a question:

Is it possible to deactivate stop/backup/start for a single container to just backup?

 

Don't want that emby has a downtime in my backup time window on 14:00.

 

Thanks

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.