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.

Move Docker and AppData back to cache drive

Featured Replies

Hey guys back in the day i setup my Docker on a protected disk so i wont loose anything in the event that the disk fails. I've recently found the backup option using Community Applications so i would like to move it back to cache.

 

I'm thinking about installing a 2nd cache drive which would be a flash drive

 

so my two part question is how easy is it to move the dockers back to cache ( i've been only finding guides on setting them up not moving them)

and how can i just use the flash cache for the dockers?

 

 

 

I'm thinking about installing a 2nd cache drive which would be a flash drive

 

so my two part question is how easy is it to move the dockers back to cache ( i've been only finding guides on setting them up not moving them)

and how can i just use the flash cache for the dockers?

Easiest solution is to install the cache drive, disable the docker service, go to the shares tab and set whatever share you're using for appdata to useCacheDrive=prefer

 

Then run mover.  After mover is done, the appdata will all be on the cache drive.  Depending upon where your docker.img file is stored, (system folder?) you can do the same thing with its share

 

To leave the cache drive purely as an applications drive, just set all of your other shares to useCache=no

 

As long as all of your docker apps used /mnt/user/WhateverShare for their /config mappings nothing more *should* be required

  • Author

i was hoping to have two cache drives my original one then a 2nd flash one to be installed and restrict the 2nd one to just dockers, its that possible?

i was hoping to have two cache drives my original one then a 2nd flash one to be installed and restrict the 2nd one to just dockers, its that possible?

To do that, the 2nd one would be classified as an Unassigned Device and would need to be mounted via that Plugin
  • Author

ok thanks.. i'll play with it and see if i can get it going..

I have a somewhat related query. I seem to have Docker stuff all over the place as I've been using it for a little while on gone through a few unRaid updates etc. Essentially, I'd like to consolidate everything into my shiny new Docker share that unRAID 6.2 set up for me. (Is this best practice? Should the Docker image be stored there as well?)

 

Below is my current setup. Before I touch anything, I'd appreciate confirmation that I'm on the right track. I plan to;

 

1. Backup all Appdata contents

2. Stop Docker

3. Set Docker Storage location to /mnt/user/docker

4. Set Default Appdata storage location to /mnt/user/docker/appdata

5. Copy the existing contents from /mnt/user/appdata/ to /mnt/user/docker/appdata/

6. Set each individual Dockers data/config directories to /mnt/user/docker/appdata/dockername

7. Delete the current appdata share

8. Cross fingers

9. Restart Docker

 

 

My current share contents are;

 

/mnt/user/appdata Share (set to cache only - so obviously replicated in /cache/appdata/)

 

-Apache

-DuckDNS

-emby

-HAProxy (uninstalled)

-LogitechMediaServer

-MQTT

-No-IP (uninstalled)

-openhab

-openvpn-as

 

 

 

/mnt/user/docker Share (all disks included, no cache)

-nodeRed

 

 

My current Docker Settings are;

 

Default Docker

/mnt/disk4/docker.img

 

Default Appdata

/mnt/user/appdata/

 

 

Thanks in advance....

 

Hey guys back in the day i setup my Docker on a protected disk so i wont loose anything in the event that the disk fails. I've recently found the backup option using Community Applications so i would like to move it back to cache.

 

I'm thinking about installing a 2nd cache drive which would be a flash drive

 

so my two part question is how easy is it to move the dockers back to cache ( i've been only finding guides on setting them up not moving them)

and how can i just use the flash cache for the dockers?

 

Which app are you referring to on Community Applications for backing up cache or so? 

  • Author

Hey guys back in the day i setup my Docker on a protected disk so i wont loose anything in the event that the disk fails. I've recently found the backup option using Community Applications so i would like to move it back to cache.

 

I'm thinking about installing a 2nd cache drive which would be a flash drive

 

so my two part question is how easy is it to move the dockers back to cache ( i've been only finding guides on setting them up not moving them)

and how can i just use the flash cache for the dockers?

 

Which app are you referring to on Community Applications for backing up cache or so?

 

its part of the CA install..look under settings the the CA section.

  • Author

got the flash drive mounted but i dont like how it created "New_Volume" would of preferred a disk ID or number of some sort.. can it be changed?

 

mounted%20drive_zpsg1wb8yay.jpg

 

 

got the flash drive mounted but i dont like how it created "New_Volume" would of preferred a disk ID or number of some sort.. can it be changed?

 

mounted%20drive_zpsg1wb8yay.jpg

 

Yes.  Click the name, type a new name, then press enter.

  • Author

got the flash drive mounted but i dont like how it created "New_Volume" would of preferred a disk ID or number of some sort.. can it be changed?

 

mounted%20drive_zpsg1wb8yay.jpg

 

Yes.  Click the name, type a new name, then press enter.

 

when i click on it it browses to the share.. i'm guessing i may have to stop the array? I'm gonna try that brb

 

edit: yup.. stopping did it. thanks

  • Author

well crap ran into another road block.. i cant get to the share from windows explorer is asking for credentials and i cant find the share settings 

  • Author

trying this but its not mounting..

 

UD_share_zps8cqza9dj.jpg

 

UD_share2_zpsrbyocpny.jpg

  • Author

apparantly it didnt like having the share name the same as the disk.. i changed it to docker and it worked.

  • Author

 

well dang... tried a couple of ways to copy my plex server files over but no luck.

 

Capture_zps1jn8qpp2.jpg

 

  • Author

ok so mapped the UD share to a drive letter and was able to copy the data over then created new docker img and reinstalled plex and redirected config to the new location and now i'm back up and running.

 

thanks for the help guys, i love how robust everything is! i'm always worried i would loose things and never do.. even when I had a drive crashing the array got back everything with no issues. thanks again.

  • Author

@SQUID you're a god sent! just got done with my 1st back up with CA!

 

i was a little worried that i would have to do the scripting since as instructed because the UD share wasnt listed but i put in the location and it found it! totally stoked now i can have my dockers running on flash and being backed up every night and not have a disk and parity drive constantly running! 

@SQUID you're a god sent! just got done with my 1st back up with CA!

 

i was a little worried that i would have to do the scripting since as instructed because the UD share wasnt listed but i put in the location and it found it! totally stoked now i can have my dockers running on flash and being backed up every night and not have a disk and parity drive constantly running!

So long as no errors happened during the backup, you'll be good to go.
  • Author

yea no errors

 

check attachment..

backup.JPG.9da75994105b0ecee2281183e4db56a1.JPG

 

Hey guys back in the day i setup my Docker on a protected disk so i wont loose anything in the event that the disk fails. I've recently found the backup option using Community Applications so i would like to move it back to cache.

 

its part of the CA install..look under settings the the CA section.

 

Pardon me but i checked the CA settings and i don't see anything about  backup or so.  If u can post a screenshot of it.

 

Sorry. 

 

 

Pardon me but i checked the CA settings and i don't see anything about  backup or so.  If u can post a screenshot of it.

 

Sorry.

Settings Tab...  Appdata Backup / Restore (its in the Community Applications Section)

because the UD share wasnt listed but i put in the location and it found it!

I'll have to fix that.  Prior to a week or two ago it wouldn't have worked at all, but I made some adjustments to handle appdata being in a subfolder instead of a share by itself, and never thought about UD disks (which were previously not supported at all)
  • Author

@mickeykool

 

Capture_zpsnrdnqzf9.jpg

 

@Squid

 

well i'm super stoked and happy you made those changes. my plex server is flying running as a UD and backing up fine with the changes.

Thanks guys, i was looking in the CA settings.. not in the settings tab / CA section..  duh me.. 

 

Thanks again. 

  • Author

oh man i've been playing around and plex is on fire.. its working much faster now.

 

Archived

This topic is now archived and is 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.