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

On 1/19/2020 at 1:11 PM, ICDeadPpl said:

If you want, you can try my script I've made exactly for this purpose.
https://github.com/ICDeadPpl/UnraidScripts/blob/master/backup-appdata-usb-vm.sh
It backs up the folders in your appdata location separately. It also backs up the USB flash drive and the libvirt.img file.
I have it running on a schedule on my Unraid.

Was just checking your script out.  It works but if you don't already have the BACKUP_DEST_APP folder already created it never backs anything up due to the location not being writable.  You may want to do a check for it or at least output an error.  The other two work find since you are always creating them.

  • Replies 1.4k
  • Views 370.1k
  • 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

2 hours ago, ChronoStriker1 said:

Was just checking your script out.  It works but if you don't already have the BACKUP_DEST_APP folder already created it never backs anything up due to the location not being writable.  You may want to do a check for it or at least output an error.  The other two work find since you are always creating them.

I added error message for missing directory.
Thanks for the input! 

I messed up my appdata and need to do a restore from backup. I have a question though my backed up version was from Unraid 6.7.2 and then 2 days later I updated to 6.8.2 which its currently at. If I do the restore from the latest one I have (6.7.2) will that still work or will something else be changed that doesn't need to be. I just need the appdata to be restored as everything else is functioning. 

 

Thanks in advance.

On 2/16/2020 at 1:55 PM, Squid said:

image.thumb.png.a3fca751b8f5bebec2f818ff8bde0ecd.png

 

And enter this in


/usr/local/emhttp/plugins/dynamix/scripts/mover

 

Oddly, I don't have that directory on my server.  I'm running 6.8.2

I'm also not sure what you're suggesting I do.

Edited by rcrh

On 2/16/2020 at 1:55 PM, Squid said:

image.thumb.png.a3fca751b8f5bebec2f818ff8bde0ecd.png

 

And enter this in


/usr/local/emhttp/plugins/dynamix/scripts/mover

 

Oddly, I don't have that directory on my server.  I'm running 6.8.2

I'm also not sure what you're suggesting I do.

  • Author
6 hours ago, rcrh said:

Oddly, I don't have that directory on my server.  I'm running 6.8.2

I'm also not sure what you're suggesting I do.

Sorry.  It's what hapens when you do a path off the top of your head.  

 

/usr/local/sbin/mover

Feature Request:  Can we add paths to pre and post processing scripts from User Scripts in the future please e.g. 

/boot/config/plugins/user.scripts/scripts/CA-Backup_Stop/script

which doesn't work at the moment. Thanks

  • Author
2 hours ago, DZMM said:

Feature Request:  Can we add paths to pre and post processing scripts from User Scripts in the future please e.g. 


/boot/config/plugins/user.scripts/scripts/CA-Backup_Stop/script

which doesn't work at the moment. Thanks

You want to type in

/bin/bash /boot/config/plugins/user.scripts/scripts/CA-Backup_Stop/script

Yours doesn't work because unRaid doesn't allow direct execution of scripts from the flash drive.

 

1 hour ago, Squid said:

You want to type in


/bin/bash /boot/config/plugins/user.scripts/scripts/CA-Backup_Stop/script

Yours doesn't work because unRaid doesn't allow direct execution of scripts from the flash drive.

 

Thanks

few questions,

 

CA backup v1  it would create a dated subfolder with the appdata + usb backed up as a subfolder inside it.

CA v2 it creates the "[email protected]" subfolder for the appdata, so thats all the same.

But, the usb+vm backups have their own location which are not using a dated subfolder.

 

Is there a setting to have it also use a dated subfolder for the vm/usb backup locations?

or make the vm/usb backups be part of the appdata dated subfolder (like v1 did)?

 

also is there any control over how files+folders are named?

for example, if i wanted to have it denote what version of unraid was being used when it was created. since a backup x days ago doesnt provide that context really.

 

Edited by zoggy

  • Author
7 minutes ago, zoggy said:

Is there a setting to have it also use a dated subfolder for the vm/usb backup locations?

 

I have been very patiently waiting for a new feature of unRaid (currently alpha testing) that will allow me to completely remove the entire USB backup feature.  As it stands now, it is effectively deprecated in lieu of grabbing your own flash backup via the UI, except for the fact that CA Backup does it automatically on a schedule.  

 

I've noticed that if I do a manual backup it will stop and start my dockers just fine. When it auto does it, all my dockers restart but one. Is there a log I can dig through to see what CA backup v2 is doing?

 

Also I noticed that CA backup v2 does NOT start the dockers in the same order (honor the ordering) that unraid does.

It should be starting mariadb before kodi-server:

Searching for updates to docker applications
Starting duplicati
Starting kodi-server
Starting mariadb
Backup/Restore Complete. tar Return Value: 0
Backup / Restore Completed

 

  • Author
2 hours ago, zoggy said:

When it auto does it, all my dockers restart but one. Is there a log I can dig through to see what CA backup v2 is doing?

It would be the container logs as to why it's not starting.  But it may be related to the order if it's directly referencing another container.  I'll look at it.

Is there a way to just backup the flash drive?  The appdata is (supposedly) getting backed up by crash plan.  But The flash drive can no longer via crash plan.

So I'd like to use this to just back up the flash drive (then crash plan will backup the backup).  I don't really want to stop all the dockers every time I want to back up the flash drive?

On 3/8/2020 at 4:35 PM, zoggy said:

I've noticed that if I do a manual backup it will stop and start my dockers just fine. When it auto does it, all my dockers restart but one. Is there a log I can dig through to see what CA backup v2 is doing?

 

Also I noticed that CA backup v2 does NOT start the dockers in the same order (honor the ordering) that unraid does.

It should be starting mariadb before kodi-server:


Searching for updates to docker applications
Starting duplicati
Starting kodi-server
Starting mariadb
Backup/Restore Complete. tar Return Value: 0
Backup / Restore Completed

 

It isn't by any chance Plex that doesn't restart is it?

Mine always used to but recently doesn't auto restart even though it does just fine manually. Only docker it doesn't restart.

44 minutes ago, thebaldconvict said:

It isn't by any chance Plex that doesn't restart is it?

Mine always used to but recently doesn't auto restart even though it does just fine manually. Only docker it doesn't restart.

nope, I only have three dockers as listed above.

The one that doesnt start with ca backup is kodi-server. Nothing shows up in logs to let me know why however.

Its a kodi headless docker I added from docker hub - https://hub.docker.com/r/celedhrim/kodi-server/

2 hours ago, zoggy said:

nope, I only have three dockers as listed above.

The one that doesnt start with ca backup is kodi-server. Nothing shows up in logs to let me know why however.

Its a kodi headless docker I added from docker hub - https://hub.docker.com/r/celedhrim/kodi-server/

I get no reasons in the logs either that I can see. 

I'm using the standard Linuxserver Plex docker. 

It is strange as the problem only started a few weeks ago having worked fine for ages.

Hi have a question I  try too restor my appdata  but cant find " CA's Previous Apps section"
just me there don't know where too look ?

Quote

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

 

  • Author
3 minutes ago, tola5 said:

just me there don't know where too look ?

 

Apps Tab.  Previous Apps link along the left side of it's page

39 minutes ago, Squid said:
 

Apps Tab.  Previous Apps link along the left side of it's page

Thx fond it, weirdly enough it just say   No Matching Applications Found.
Are it for I was need too make a fress install of unraid on my USB ?

Edited by tola5

  • Author
7 minutes ago, tola5 said:

Thx fond it, weirdly enough it just say   No Matching Applications Found.
Are it for I was need too make a fress install of unraid on my USB ?

Did you make a fresh install?  If so, the files that it looks for are gone, unless you have a backup or the original stick (they are the contents of /config/plugins/dockerMan/templates-user on the flash drive

8 minutes ago, Squid said:

Did you make a fresh install?  If so, the files that it looks for are gone, unless you have a backup or the original stick (they are the contents of /config/plugins/dockerMan/templates-user on the flash drive

oh ok it explane thx for the help any way :)

Hi, I have a VM where I map config paths to appdata.

How can I stop and restart the VM similar to how docker containers are managed?

  • Author
2 hours ago, ptr727 said:

Hi, I have a VM where I map config paths to appdata.

How can I stop and restart the VM similar to how docker containers are managed?

You would have to use the appropriate command line too stop / start the VM within a custom start / stop script.

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.