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 v2

Featured Replies

Well - tested it myself by initiating a manual backup.  It does not purge old backups until the running one is complete - as expected and safe.  Is it a big ask to have an option where the backups are purged according to the plan prior to the backup?

 

TY.

 

Kev.

  • Replies 1.4k
  • Views 370.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • In a nutshell, GitHub is a piece of shit.  (If some one can come up with a better term that has all of the same connotations then please let me know)   A change has been now implemented in t

  • As of last night, on 6.10.3, fix common problems is alerting me that: The plugin ca.backup2.plg is not known to Community Applications and is possibly incompatible with your server. What's chang

  • This plugin has now been forked by @KluthR and the original version by myself has been deprecated.   I'd suggest to uninstall my version and then reinstall the fork.   NOTE: 

Posted Images

On 11/28/2020 at 4:09 PM, Squid said:

If it doesn't come with Unraid, I'm not using it in the plugin.

Okay. Fair decision, your call after all. Yet it still causes a significant downtime for me when the backup runs if compression only runs on one thread. 

I found a way to use pigz without needing to modify the plugin tho. I installed pigz via nerd tools and replaced the gzip binary with a symlink to pigz, so it's used by

tar --auto-compress

with the .tar.gz ending like CA Backupv2 invokes it. It yields substantial performance improvements with my 8C/16T CPU.

Currently that's a reduction down to 6min from 37min (with verification of the backup file).

 

If anyone stumbles upon this and thinks they can profit from parallel compression, it's fairly simple to do, just don't expect @Squid to fix any problems that should come up with this configuration and keep it in mind if you should ever run into a problem with CA Backupv2 to revert this before filing any bug report.


Just move the original gzip binary (I renamed it to ogzip so if you should ever need it, it's still there) and then create the link:

mv /bin/gzip /bin/ogzip
ln -s /usr/bin/pigz /bin/gzip

'Official' support via a checkbox if pigz is detected would probably be better but this works for me and can be applied via the /boot/config/go script just fine.

Hi, I am using this plugin for month and it works perfectly. Thanks for that.

I recently installed a nvme disk and put some containers on it. By doing this, I suppose the Autobackup plugin will not detect the new location for the containers' data. Does a symlink would solve this problem? Something like ln -s /mnt/disks/nvme/appdata/plex /mnt/user/appdata/plex ?

How will behave unraid with a symlink in the appdata folder?

Thank you for your answers.

Denis

  • Author

Yeah, IDK how everything would respond.  Probably it would work though.  Reasoning for only dealing with the single folder is that 

  1. It's a hell of a lot simpler to do
  2. Not all containers utilize a /config mapping (or have multiple mappings to appdata), so automatically determining what to backup is a PITA
  3. I don't use my system like that 😎
3 hours ago, Unraid_Noob said:

Does a symlink would solve this problem?

As CA Backupv2 doesn't use the --dereference (-h) operator for tar it would only backup the symbolic link itself, not the files it points to.

Even with the -h option I'd advise against it tho. Just put all your config folders from your docker containers to the same folder for a clean backup and easy restore.

Edited by Thx And Bye

I have a quick question about verifying backups. 

 

Mainly creating the backup takes about 10 minutes.

 

Dec 20 01:02:02 Tower CA Backup/Restore: Backing Up appData from /mnt/user/appdata/ to /mnt/user/backups/appdatabackup/[email protected]
Dec 20 01:12:38 Tower CA Backup/Restore: Backup Complete

 

Verifying the backup takes over an hour. 

Dec 20 01:12:38 Tower CA Backup/Restore: Verifying backup
Dec 20 02:27:07 Tower CA Backup/Restore: appData Backup complete

Is this normal behaviour? 

 

Also, what would happen if a parity check happened to be running at the same time as the backup script? 

 

This is a fantastic plugin btw!

Permissions issue, maybe? If I browse to the folder where the Tower Backups are being stored, I can see the individual folders based on the dates completed. But if I try to browse into any of them, from my Windows computer, I get the error that I don't have permission.

Yet I can browse into the USB Backups, Libvirt Backups folders without any issue.

  • Author
3 hours ago, Whaler_99 said:

Permissions issue, maybe? If I browse to the folder where the Tower Backups are being stored, I can see the individual folders based on the dates completed. But if I try to browse into any of them, from my Windows computer, I get the error that I don't have permission.

Yet I can browse into the USB Backups, Libvirt Backups folders without any issue.

Works for me.  Does your user have access to the share?

17 minutes ago, Squid said:

Works for me.  Does your user have access to the share?

This is what I have for settings

 

image.png.0023d1cbfa7ff9adc79254952fb98a02.png

 

If I browse to \\tower\backups I can access USB and Libvirt folders fine, but not access the subfolders under "Tower Backups". My user does have read/write. I have not done anything for permissions other than what's done on the Shares page within unraid.  

  • Author

The update will probably fix you up

5 hours ago, Squid said:

The update will probably fix you up

Update? You mean the new version of unraid that is in RC?

37 minutes ago, Whaler_99 said:

Update? You mean the new version of unraid that is in RC?

I think he means the update of the appdata backup/restore plugin that was released just today to fix permissions issues specifically.

13 hours ago, Hoopster said:

I think he means the update of the appdata backup/restore plugin that was released just today to fix permissions issues specifically.

Ahh, got it. Updated it now. I'll see how the next backup works and let everyone know. Thanks!

So turns out I did update it yesterday, running version 2020.12.27 and backup ran this morning at 1:00 am and still cannot access unfortunately...

  • 2 weeks later...

This is a 6.9.x question.  Not sure where I should put it. 

 

I have moved my appdata folder to a secondary cache pool.  Will the plugin be updated to support this, or should i move it back to the main pool to use this plugin?  Thanks!

  • Author

No update is required to the plugin.  Set the source as required

Hi there. So I somehow wiped my cache pool while upgrading from 2 x 500GB SSDs to 2 x 1TB SSDs (I did them one at a time, but here we are anyway). But when I try to restore from a backup, it had a bunch of errors and seemed to finish way too quickly. Here is the last of the message output:

"Backup / SettingsRestore AppdataBackup / Restore Status
Backup / Restore Status: Not Running
/usr/bin/tar: binhex-preclear/home/.icons/BLACK-Ice-Numix-FLAT: Directory renamed before its status could be extracted
/usr/bin/tar: binhex-preclear/home/.icons: Directory renamed before its status could be extracted
/usr/bin/tar: binhex-preclear/home: Directory renamed before its status could be extracted
/usr/bin/tar: binhex-preclear: Directory renamed before its status could be extracted
/usr/bin/tar: airsonic-advanced/transcode: Directory renamed before its status could be extracted
/usr/bin/tar: airsonic-advanced: Directory renamed before its status could be extracted
/usr/bin/tar: Exiting with failure status due to previous errors
Backup/Restore Complete. tar Return Value:
Restore finished. Ideally you should now restart your server
Backup / Restore Completed"

 

I've attached diagnostics if that helps. My most recent backup is from Jan 4th, that's the one I'm trying to restore, but I have backups from the 12 previous weeks.

I was able to copy the CA_backup.tar file to my Mac and unzip it, so I can copy everything back manually I hope? Just thought I'd ask first. Thanks for any help!

tower-diagnostics-20210109-1541.zip

On 1/9/2021 at 1:37 PM, Squid said:

No update is required to the plugin.  Set the source as required

Thanks.  First line of the plugin is the appdata location.  Duh.

On 1/9/2021 at 3:53 PM, stor44 said:

 

I was able to copy the CA_backup.tar file to my Mac and unzip it, so I can copy everything back manually I hope? Just thought I'd ask first. Thanks for any help!

tower-diagnostics-20210109-1541.zip 130.4 kB · 0 downloads

SOLVED. I was able to copy back what I needed and start over. Actually cleared out a lot of junk, so that's lesson learned I guess. Thanks.

The Exclude Folders option does not seem to be working for me.  I'm trying to exclude some subfolders in one of my docker container's appdata area (Plex for reference).  I've tried both absolute paths and relative paths.
Relative:

Plex-Media-Server/Library/Application Support/Plex Media Server/Cache/ ,Plex-Media-Server/Library/Application Support/Plex Media Server/Media/ ,Plex-Media-Server/Library/Application Support/Plex Media Server/Metadata/

Absolute:

/mnt/cache/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Cache/ ,/mnt/cache/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Media/ ,/mnt/cache/appdata/Plex-Media-Server/Library/Application Support/Plex Media Server/Metadata/


 

I just setup the CA Backup/Restore for 1st time.

 

Left all my Docker apps unchecked but binhex-krusader & DiskSpeed didn't get backed up, they are in a Folder done by Docker Folder plugin.

image.thumb.png.4a5c3be639d44dc8eb934adaab8bd168.png

 

How they look in my Docker tab.

image.png.6c799d1b1394e9f05690b67d1e9ef5ca.png

 

2nd question, does CA Backup/Restore back everything in the appdata share if I don't exclude any?

Even if that Docker is not currently unstalled? i.e. binhex-delugevpn isn't installed but I have a folder for if I installed again.

image.png.e81fdabf1c6fa7db781db9b659f94c82.png

Edited by Paul_Ber

On 12/28/2020 at 11:44 AM, Whaler_99 said:

So turns out I did update it yesterday, running version 2020.12.27 and backup ran this morning at 1:00 am and still cannot access unfortunately...

Update, last two backups I can now browse into the folder and see the ca_backup.tar files, but still messed up permissions. Cannot copy that file. Weird as the libvirt backup is fine, USB Backup is fine. Just the tower backups are inaccessible...

 

Not sure if this has been covered at all in this long thread, but does anyone know if there is a password option for the compression or some form of protection of the backups at all? 

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 directories, please could we have the option to have it seperated per directory? This will make a restore much easier for people who only want to restore one application. Currently they would have to manually untarball the file and move the directory.

 

So the feature request is:

 

Backup:

In the backup config page have a option called "Backup Directories Seperately"

If this option is selected it will backup each directory in the provided appdata directory into a time and dated folder within the provided backup directory.

In addition to this if the "Compression" option is ticked then compress each directory.

 

Restore:

When someone chooses the restore option, along with the date/time selection provide a directory selection to restore (using checkboxes to allow for multiple selections and an "all" option to restore everything)

 

Hopefully this is enough detail for the feature request to be actioned... @Squid

  • Author

I'm aware of it :) 

Guest
This topic is now closed to further replies.

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.