[Plugin] CA Appdata Backup / Restore v2


Squid

813 posts in this topic Last Reply

Recommended Posts

On 1/28/2021 at 1:58 PM, f3ger said:

 

I have the problem that the first docker container does not start after the backup. in the backup status window, however, it says "starting ..."

Does it rely on another Docker container, so that the order that the containers are started can be a problem?  Also, what's happening when you're stopping and starting the container from GUI or command line ("docker container stop/start containername")?

Link to post
  • Replies 812
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

CA Appdata Backup / Restore (v2)   Due to some fundamental problems with XFS / BTRFS, the original version of Appdata Backup / Restore became unworkable and caused lockups for many users.  D

Feature request: Instead of one giant tarball, could this app use separate tarballs for each folder in appdata? That way it would be much easier to restore a specific app's data (manually) or even pul

I would rather automate backups to a local network share rather than unraid.net. I doubt I'll even install the unraid.net plugin as I already have remote access set up to my satisfaction. Disappointed

Posted Images

I have a homeassistant container that I'm backing up.  And in the image configuration I've added an RFXtrx433XL as a device, and I'm using the RFXCOM integration to read various 433MHz devices.  But when CA Appdata Backup/Restore starts the containers again after backing them up, the RFXtrx433XL device is not passed correctly to the container.  All the 433MHz entities are "Unavailable".  But after restarting the docker container manually in the web GUI, the entities are back again without a problem.  Any idea why this is happening?

 

I thought it could have something to do with how the containers are started again after backup.  But can I override that the containers are started again after backup?  If so I can test starting them manually by using a script instead.

Link to post
On 1/28/2021 at 1:18 AM, toasti said:

BUT there's one thing I want to ask: Would it be possible to implement an option if I want to have a TAR file or not?

A non-tar backup was how this was originally implemented.  Unfortunately, due to the massive amount of overhead imposed by potentially writing hundreds of thousands of files during a backup (or comparing to see what has been changed), it caused a ton of problems.  That option will never return.

 

You can always implement your own script to accomplish this.

Link to post

With this, should I set the appdata location to the actual appdata folder on cache drives or should I set it to just the cache to include other things that is set to prefer to have on the cache?

I do have dual cache drives (SSDs)

Link to post

So I did run this and had the flash backup location as an location in Nextcloud, and now I cant move any file in that folder in Nextcloud?

 

I just copied everything to a new one but still, that shouldnt happen, maybe it was a bad idea to do that.

Edited by Mihle
Link to post

You shouldn't use any folder that has (or potentially has) other files in it as per the warnings.  Set up a new folder and add that location to nextcloud

Link to post
8 hours ago, Squid said:

You shouldn't use any folder that has (or potentially has) other files in it as per the warnings.  Set up a new folder and add that location to nextcloud

I imagined that was only for the appdata but guess not.

Tried to make a new share for it and put it as external storage, but Nextcloud can not see the the contents of it or sync it to my desktop (because that is what I want and is trying to do)

Link to post

Hello,

 

I creats 2 pool Devices  :

  • 1 for cache  (SSD)
  • 1 for appdata/domains/etc... (NVME)

 

The pool who contains appdata and co is name "Apps" and is accessible via /mnt/apps

 

when i try to backup the whole pool in CA Backup/Restore and have /mnt/apps in Appdata Share (Source):

i get :  "Source cannot be /mnt/user or /mnt/disk"

 

how can i backup the domains ?

Thanks for the excellent pluggin.

 

 

 

Link to post

Yeah, but the domains and the appdata aren't stored in the root of each drive.  They're in a share.

 

So, your path is /mnt/user/appdata (the name of the share the appdata is actually in)

Link to post

Hi, I was wondering if it's possible to specify multiple source appdata locations?  For example in my case, I'd like to backup both my standard appdata directory, as well as appdata that lives in an unassigned disk.

 

Thanks!

Link to post
On 1/31/2021 at 10:39 AM, Mihle said:

I imagined that was only for the appdata but guess not.

Tried to make a new share for it and put it as external storage, but Nextcloud can not see the the contents of it or sync it to my desktop (because that is what I want and is trying to do)

I guess I will just leave the idea and have to try remember to back up the flash drive manually now and then, then.

Link to post
3 hours ago, Mihle said:

I guess I will just leave the idea and have to try remember to back up the flash drive manually now and then, then.

Didn't follow the whole conversation for what you're trying to do but you can run your own user script that backs up the flash drive to a sync folder on the share for nextcloud. 

Link to post
On 2/2/2021 at 11:59 PM, Energen said:

Didn't follow the whole conversation for what you're trying to do but you can run your own user script that backs up the flash drive to a sync folder on the share for nextcloud. 

Ah, searched and found this one:

EDIT: That way to do flash backup works better than what this plugin does for how I want to use it.

Edited by Mihle
Link to post

ok problem...

 

I backed up my old 60GB unassigned device /mnt/disks/device and now want to restore to my new 240GB pool /mnt/docker...

 

how do I do this? it doesn't seem like I can change the destination from the old disk.

 

is it adequate to just untar it?

 

tar -C /mnt/docker -xvf /mnt/user/backup/docker/date/ca_backup.tar

 

Edited by SimplifyAndAddCoffee
Link to post

It’s been a while since I used ca backup, and the last time I did it stopped all dockers and vm’s, is that still the case? I’m looking to try and backup my app data and unraid data to my google drive or onedrive, and trying to think of the best way of doing that without stopping all of my containers. Ideas and suggestions are appreciated.

Link to post
57 minutes ago, karldonteljames said:

It’s been a while since I used ca backup, and the last time I did it stopped all dockers and vm’s, is that still the case? I’m looking to try and backup my app data and unraid data to my google drive or onedrive, and trying to think of the best way of doing that without stopping all of my containers. Ideas and suggestions are appreciated.

There is an option to enable/disable (specific) dockers from stopping.. so I guess you could just prevent them all from stopping.

Link to post

hi guys and girls!

first of all: thank your for the plugin, really makes things easier

generally love the community

 

now i have some questions:

in wich order does the backup-task stop and start the docker containers?

the reason for my question:

in the past, i've noticed some strange things happen to nextcloud, if it's connected to a maria-db container. if the maria-db will be stopped before nextcloud, it could happen that after the restart nextcloud runs into a system-error and needs to be reinstalled.

I've had that a couple of times and it cost me nerves and hair..

 

Is there someone else maybe with this experience?

is there any advice you can give me?

 

at the moment i've excluded mariadb and nextcloud from backup from beeing shutdown, but if I understand correctly this could lead to more issues and also files which beeing accessed not beeing backuped.

 

thanks in advance!

 

d8

Link to post
On 2/16/2021 at 6:26 AM, karldonteljames said:

Thanks I’ll take another look at it, is it possible to have it backup to google drive, or OneDrive, or would I need to use clone for that? Does it backup in open file format, so i could do an individual file / docker restore?

Everything is in a single tarball

Link to post

I experience a corruption of my SSD cache drive and after failed attempts to retrieve the data I formatted the drive. I hoped the backup plugin would save me, but it only says "No Backup Sets Found". I used the spaceinvader guide to set it up a while ago and I see the folder with the usb backup does contain data. The appdata backup however has a folder "2021-02-17@04.00", but it's empty. Does that mean there is no hope and I have no backup? I didn't think about it when I setup the plugin originally since the Spaceinvader guide doesn't motion it so I left it on default, but "Delete backups if they are this many days old" is set to 1. Does that mean it automatically deleted the backup after 24 hours?

Link to post

Best guess is that you had the backups going to a share that was Use Cache: Yes (or only), and in that situation the backup was stored on your now defective cache, and is lost.

Link to post

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.