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.

[Plugin] CA Appdata Backup / Restore - Deprecated

Featured Replies

A plugin designed to manually or on a schedule create backups of your Docker appdata (and Flash Drive and VM XML's)

 

Formerly part of Community Applications, this module is now packaged separately.

 

This plugin will automatically be installed with new installs of CA, but is now able to be uninstalled separately from CA, or installed separately (if CA is not installed)

 

Untitled.thumb.png.f2007b4d772df0b6e4a2e9c1d724dc92.png

 

 

Edited by Squid

  • Replies 390
  • Views 83k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • In your custom cron entry, you have a "*" character in the first slot which makes it so it is set to try to run at every minute during the 3:00 AM hour.   * * * * * * | | | | | | | | | | | +

  • I backup to a external drive mounted via Unassigned Devices. You could also use OwnCloud or something similar to backup to the cloud or another machine probably. Might want to test your backups to ins

  • Its seemingly an issue, but it really isn't.   If the flash dies, make a new trial usb.  Boot it up. And assign the disks   At that point, all of your shares are now accessible.  C

Posted Images

Changed my backup destination to a network share (UA mounted). Now I'm getting errors on backup-

2016/11/15 21:35:57 [4364] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

 

Couldn't attach the full log. Wayyyyyy too big.

  • Author

Changed my backup destination to a network share (UA mounted). Now I'm getting errors on backup-

2016/11/15 21:35:57 [4364] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

 

Couldn't attach the full log. Wayyyyyy too big.

Nothing I can do about that.  Perhaps the destination filesystem doesn't support hardlinks, etc.  Either way, rsync is returning errors, so as far as ca is concerned, the backup failed.  You could try playing with the rsync options (google rsync man page), but no guarantees

 

EDIT:  If you load the log, then isolate the lines that have rsync in them, that's going to be the failure lines.  Would really only need a sampling of them for myself (or other people) to help out

Changed my backup destination to a network share (UA mounted). Now I'm getting errors on backup-

2016/11/15 21:35:57 [4364] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

 

Couldn't attach the full log. Wayyyyyy too big.

Nothing I can do about that.  Perhaps the destination filesystem doesn't support hardlinks, etc.  Either way, rsync is returning errors, so as far as ca is concerned, the backup failed.  You could try playing with the rsync options (google rsync man page), but no guarantees

 

I suspect you're right. The destination disk is formatted HFS+. Google shows quite a few problems getting hardlinks preserved with HFS+, some workarounds, but they're way over my head. May just try a USB connected drive. What would be the best format?

 

 

 

EDIT:  If you load the log, then isolate the lines that have rsync in them, that's going to be the failure lines.  Would really only need a sampling of them for myself (or other people) to help out

 

I'll see what I can dig out of the log.

  • Author

I suspect you're right. The destination disk is formatted HFS+. Google shows quite a few problems getting hardlinks preserved with HFS+, some workarounds, but they're way over my head. May just try a USB connected drive. What would be the best format?

All my array drives are XFS with no problems as a destination.  But UD adds another layer of complexity to it.  Best advice is try and see.  8)

Changed my backup destination to a network share (UA mounted). Now I'm getting errors on backup-

2016/11/15 21:35:57 [4364] rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2]

 

Couldn't attach the full log. Wayyyyyy too big.

Nothing I can do about that.  Perhaps the destination filesystem doesn't support hardlinks, etc.  Either way, rsync is returning errors, so as far as ca is concerned, the backup failed.  You could try playing with the rsync options (google rsync man page), but no guarantees

 

EDIT:  If you load the log, then isolate the lines that have rsync in them, that's going to be the failure lines.  Would really only need a sampling of them for myself (or other people) to help out

Here's the excerpts from the log. Looks like a huge number of errors with symlinks.

Exported_Results.txt.zip

  • 2 weeks later...
  • Author

gummy.jpg

 

Added: Ability to have CA Backup automatically call CA Autoupdate to check for updates to (and install if selected within Auto Update Settings) docker applications after a backup is done.

Added: Ability to leave selected Docker Applications still running throughout the backup procedure.

 

The ability to not stop certain docker applications, you get to by hitting "Show Advanced Settings" on the main Backup Settings page.  Any app which you check off will not get stopped by the backup system.  This is an advanced setting, because in a perfect world you should also set that particular docker app's appdata folder to be excluded from the backup so that any files which happen to be open for writing etc at the time of backup are not going to mess up with the integrity of the backup.

 

* Side Note:  This feature actually now turns CA Appdata Backup / Restore into a general purpose backup / restore system for any particular share on your server as it is now possible to not have it stop any docker apps at all when running.  Not what its designed for, but it will now work outside of the box.

 

If CA Auto Update is also installed (and presumably up to date), then you also have the ability to have the backup system check for and then automatically install any updates available for the docker apps which you have selected under Auto Update Settings (Docker Section).  There's a new option of the Backup Settings page dealing with this. 

Presumably, since your appdata backup runs on a schedule, you could safely disable the schedule for docker auto updates.

 

* Thanks to CHBMB I can release this a week ahead of schedule  ;D

Edited by Squid

* Thanks to CHBMB I can release this a week ahead of schedule  ;D

 

Nice work mate, can I delete that container now then?

  • Author

* Thanks to CHBMB I can release this a week ahead of schedule  ;D

 

Nice work mate, can I delete that container now then?

Sure
  • 2 weeks later...

Hi...

 

I just updated the plugin to ver 2016.12.05 and when I go into it at the top is the following error...

 

Warning: array_diff(): Argument #2 is not an array in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(292) : eval()'d code on line 103 Warning: natsort() expects parameter 1 to be array, null given in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(292) : eval()'d code on line 104 Warning: Invalid argument supplied for foreach() in /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php(292) : eval()'d code on line 192

 

 

Yet it seems to run. 

 

 

 

 

  • Author

Do you have docker enabled but no apps? I never saw that but will look at it tonight

 

Sent from my LG-D852 using Tapatalk

 

 

Oh no, I have apps!  That is why this plug-in is so outstanding!  It is/was greatly needed to protect these files vs rebuilding.

  • Author

Oh no, I have apps!  That is why this plug-in is so outstanding!  It is/was greatly needed to protect these files vs rebuilding.

Quick look at the code and I think your array is stopped.

Nope...Sorry...Surely NOT stopped.  In fact I ran a test backup to see if it all still ran and it did.

Recently I replaced the Parity drive with a larger one and then replaced drive 5 with a larger drive.  But that is it array wise.

  • Author

To save some time, can you post an actual screenshot showing that error, and diagnostics after the error appears.

 

I *think* somethings isn't quite right on your server, hence why I thought the array wasn't started.  (But I could be wrong  ;) )

BTW....I am running 6.1.9 of UnRAID.  So not sure if it is something with that and your code is looking for the newer version.

  • Author

BTW....I am running 6.1.9 of UnRAID.  So not sure if it is something with that and your code is looking for the newer version.

Check for updates.  Was actually an error in there for a month or two.

All nice and clean. :)  I can even select a drive again to store to. (Not that I needed to change it, but realized I could not but now can.)

 

All good it seems.

 

THANKS!

I've just had a really bad failure with this plugin. I pressed the restore button (not fully intending to do one) and it prompts to continue or not, good. However I selected no (or cancel, I can't recall the exact working), but I made sure to select to not proceed. It went ahead anyway and started deleting appdata files, after few retries, the abort finally worked. But now it's fucked most of my dockers.

  • Author

I've just had a really bad failure with this plugin. I pressed the restore button (not fully intending to do one) and it prompts to continue or not, good. However I selected no (or cancel, I can't recall the exact working), but I made sure to select to not proceed. It went ahead anyway and started deleting appdata files, after few retries, the abort finally worked. But now it's fucked most of my dockers.

Pretty sure that you hit OK instead of cancel.

I've just had a really bad failure with this plugin. I pressed the restore button (not fully intending to do one) and it prompts to continue or not, good. However I selected no (or cancel, I can't recall the exact working), but I made sure to select to not proceed. It went ahead anyway and started deleting appdata files, after few retries, the abort finally worked. But now it's fucked most of my dockers.

Pretty sure that you hit OK instead of cancel.

I haven't looked, but is it possible the dialog is a little ambiguous? If I hit NO on a proceed, followed by an OK on a dialog to stop the process, I expect the OK to confirm my previous NO. Wording and placement of confirmation second chance dialogs is tricky.

I've just had a really bad failure with this plugin. I pressed the restore button (not fully intending to do one) and it prompts to continue or not, good. However I selected no (or cancel, I can't recall the exact working), but I made sure to select to not proceed. It went ahead anyway and started deleting appdata files, after few retries, the abort finally worked. But now it's fucked most of my dockers.

Pretty sure that you hit OK instead of cancel.

 

Even if I did, there was nothing to restore, it shouldn't have gone forward and started deleting all my docker data for which there was no backups.

  • Author
On 12/13/2016 at 8:59 AM, jonathanm said:

I haven't looked, but is it possible the dialog is a little ambiguous? If I hit NO on a proceed, followed by an OK on a dialog to stop the process, I expect the OK to confirm my previous NO. Wording and placement of confirmation second chance dialogs is tricky.

Not a double confirm.  In retrospect, the only change to it that I could have had from the get go is that clicking outside the popup results in an automatic cancel.

 

Untitled11_zpsuidp2ffu.png

Edited by Squid

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.