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.

Where to copy data, if share is set to cache: prefer

Featured Replies

Hi, 

I want to create another folder in /mnt/user/appdata. appdata is configured as prefer: cache. 

If I need to download data into this new folder with wget directly on the server, where do I download it to? To the array (/mnt/user/appdata/...) or to the cache? (/mnt/cache/...)

 

I'm not quite sure, where the setting "prefer cache" is intercepting the creating of a file/folder exactly. (as I would do a wget directly on the server, not from a client via SMB)
 

Would creating it newly in cache be sufficient  for mover to replicate it to the array later on? Or is it working the other way around? 

(Context is installation of LibrePhotos by the way.)

  • Community Expert

If you have Use Cache:Prefer then that indicates that you do NOT want it put on the array, but only on the ‘cache’ pool.    If you want it initially on the cache and later moved to the array you need to use the Yes setting.

 

With the Prefer setting it does not matter whether you use /mnt/user/appdata or /mnt/cache/appdata as they are just end up being different views of the same folders/files.

  • Community Expert
12 minutes ago, Tjareson said:

To the array (/mnt/user/appdata/...) or to the cache? (/mnt/cache/...)

/mnt/user/appdata is not necessarily the array, it is the user share named appdata. If appdata is cache-prefer, it will prefer to write to cache if it has room (based on Minimum Free settings).

 

15 minutes ago, Tjareson said:

wget directly on the server, not from a client via SMB

Nothing at all to do with SMB or any other network protocol.

 

15 minutes ago, Tjareson said:

mover to replicate it to the array later on

You seem to have some basic misunderstandings. It isn't replicated to the array. It might be moved to the array depending on the setting for the user share. Prefer will keep it on cache if it is written there.

  • Author

ah, ok. So what I just notice is that there doesn't seem to be a mode, where data is kept on cache, but they are copied whenever the file is not open and mover runs. 

If either cache only or cache prefer usually all files will be only on the cache pool. All other options will make sure existing files will be move to the array or be created only in the array in the first place. 

My issue is: I don't have a cache pool, but only one SSD. Of course I like docker containers and e.g. mysql files to be on the fast ssd. But I wouldn't mind to have a daily copy of those in the array to have higher security than a single drive. But if I understand right, I have to do that then by script, as mover just helps to achieve the setting as per share configured, right?
 

Edited by Tjareson
typo

  • Community Expert
3 hours ago, Tjareson said:

copy of those in the array

CA Backup plugin is the usual way

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.