[Plugin] CA Appdata Backup / Restore v2


Squid

761 posts in this topic Last Reply

Recommended Posts

Amazing tool, thank you so much!

 

I have a slightly irregular situation. I changed flash drives when building a new unRAID system. I wanted to start from scratch and have all of my data moved over but I did want to keep my older docker setup. I was trying to use this app though and it doesn't recognize any backups even if I point to the folder where the backup was just taken.

I already have all of my appdata folder on the new system and the docker image since I moved the old cache drive over, but the dockers don't show because they are not configured on the flash drive.

Does anyone know which files I need to get from my backup to move over to the new flash drive from the old one? these files?: \flash\config\plugins\dockerMan\templates-user or is it something more substantial?

 

I'd prefer not to manually reinstall these dockers and have to reconfigure them if possible.

Link to post
  • Replies 760
  • 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

This has been requested atleast once before by @aptalca back in 2018 however this still doesn't seem to have been implemented?   Basically instead of one tarball of all the appdata directori

Posted Images

Except that it doesn't delete any backups until a successful backup is completed.  But yeah, retain x number of backups will partially alleviate this if you catch it prior to the threshold being reached

True but the successful backup that it completed is unfortunately not a backup of a full working system. And in this case basically blank. I was lucky I did a manual for copy at the start so it wasn't a complete loss. I usually also keep (by renaming the folder) a permanent backup that CA backup/restore creates once in a while copy in case I don't catch something that's gone awry within the deletion period, so I can go further back if necessary.

 

But yes with a delete backups every 60 days and say a minimum of 2 backups kept it would definitely keep a good backup long enough.

 

In that same right, keep every nth backup indefinitely would be nice too but I can understand not wanting to put in too many options.

 

Thanks squid for the great app!

 

Link to post
23 hours ago, Vaggeto said:

Amazing tool, thank you so much!

 

I have a slightly irregular situation. I changed flash drives when building a new unRAID system. I wanted to start from scratch and have all of my data moved over but I did want to keep my older docker setup. I was trying to use this app though and it doesn't recognize any backups even if I point to the folder where the backup was just taken.

I already have all of my appdata folder on the new system and the docker image since I moved the old cache drive over, but the dockers don't show because they are not configured on the flash drive.

Does anyone know which files I need to get from my backup to move over to the new flash drive from the old one? these files?: \flash\config\plugins\dockerMan\templates-user or is it something more substantial?

 

I'd prefer not to manually reinstall these dockers and have to reconfigure them if possible.

As I mentioned here I copied these over and to DockerMan on the flash drive and then finally when I went to "previous apps" in CA they were there to reinstall and had both their settings and actual data. So this is solved. I still can't figure out why backup/restore doesn't see any backups though.

Link to post

Is there a way to check in a script if an appdata backup or restore is occuring?  I have another script running that restarts dockers if they aren't running - I just realised I need it to NOT restart dockers, IF the appdata script is running.

 

Thanks in advance.

Link to post
9 hours ago, DZMM said:

Is there a way to check in a script if an appdata backup or restore is occuring?  I have another script running that restarts dockers if they aren't running - I just realised I need it to NOT restart dockers, IF the appdata script is running.

 

Thanks in advance.

If either /tmp/ca.backup2/tempFiles/backupInProgress or /tmp/ca.backup2/tempFiles/restoreInProgress exists then a backup / restore is running

Link to post

Steps to restore?

 

My cache drive crashed. I replaced it. Now I want to restore my dockers from backup.

Is there a step-by-step? The wiki didn't make sense to me - please help me understand.

Seems like I should

1) reinstall my dockers from the "Previous apps" page

2) run the restore process using CA Appdata Backup/Restore plugin

3) maybe restart

4) done, right?

 

That's not what it seemed like the wiki was telling me to do. 

Can someone please point me in the right direction for the order of tasks?

 

Thanks,

Kyle

Link to post

From the Appdata Plugin's Restore page

Quote

General Procedure On How To Restore Your Appdata

Replace your cache drive if necessary

Recreate your appdata share (and set it to be cache only)

Recreate your docker.img file if necessary (ideally, this should be performed regardless)

Select a backup set (if using dated backup sets) and hit 'Restore'

Sit back and have a coffee

Ideally restart your server

Re-add your previously installed docker applications via CA's Previous Apps section. No adjustment of the templates should be necessary

 

Link to post

That's what I read but I was confused by restoring the backup before adding the previously-installed docker apps.

 

And - how do you "recreate your docker.img file"? I thought that got created when you installed the docker apps (?)

 

...told you I was confused...

Link to post

OK - skip the "how do you create docker.img" question. It was already created.

I followed your instructions and, by doing so, I learned a few things. I still don't fully understand what's part of the docker and what's part of the backup.

 

In any case, I'm up and running so thanks for posting those instructions (again <sheepish>).

Edited by khager
Link to post
6 minutes ago, khager said:

OK - skip the "how do you create docker.img" question. It was already created.

I followed your instructions and, by doing so, I learned a few things. I still don't fully understand what's part of the docker and what's part of the backup.

 

In any case, I'm back up and running so thanks for posting those instructions (again).

The docker.img file is created (if not already present) when the docker service starts as something to contain the binaries for apps.  Think of the docker container as being the binary files for an app and the backup contains all the apps working file.    

Link to post

Got this running now. Is it possible to have it just keep a copy of the flashdrive backup in .zip format instead? 

I like that it's at least ON a disk this way, but having a few copies wouldn't hurt, either. :) Or maybe it's unnecessary and I'm making it overly complicated. 

Link to post

The plugin works really well for the task but is it intended behavior that only one thread is used for compression? I think on a multicore CPU there could be substantial performance improvements if more cores are used for this task. 

If there is no better method available on Unraid by default, maybe make it optional if a better compression program is detected (e.g. pigz installed via NerdPack)? 

 

I think anyone can profit from this as multi-core CPUs are the norm nowadays.

compression_load.png

Link to post
3 hours ago, Squid said:

It uses the built-in tar.   IIRC, installing pigz via NerdPack causes compatibility problems...

Compatibility problems specifically with CA Backup or with the tar on Unraid? Shouldn't it be as easy as to replace the -z flag of tar with -I pigz when pigz is installed?

Also if pigz doesn't work, wouldn't a other compression that supports multicore (like pbzip2) possible?

Edited by Thx And Bye
Link to post

Want to say thanks again for CA Backup / Restore Appdata as it just saved me a lot of time.  I changed the location of my appdata folder to a different hard drive and forgot one setting in PLEX and lost my whole config last night.  Thankfully I slept on it and remembered, "hey, I have a backup."

 

This app just saved me a few hours and it has saved me a few hours a few other times too ;)

 

Thank you,

craigr

Link to post

Is there a way to troubleshoot why the backups aren't getting automatically executed? I have the plugin configured to backup everything on Sunday morning at 3am, but nothing appears to be happening during that time. I get no backup files in the defined backup locations or anything.

 

I also tried a manual backup and it says it completed successfully, but still nothing is generated in any of the defined locations (appdata, vm or usbflash).

Edited by amiskell
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.