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] Mover Tuning

Featured Replies

1 hour ago, Masterwishx said:

Please check help description of options by click on it or F1. To see how thresholds works 


I know how thresholds work. I have thresholds set to 0%; meaning move "everything".

image.png

The mover isn't moving folders that happen to have no files in them; it's ignoring them. I can recreate this every time as per the example I gave in my original post. Even a pure empty folder structure should be preserved and moved to the array for protection; the default behavior of the mover ignores empty folder structures; they are not moved across.

This is why I'm wondering if we could add an option to treat folders just like files; don't ignore them if they happen to be empty.

  • Replies 3.5k
  • Views 485.8k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • hugenbdd
    hugenbdd

    New Version 07-03-2023   HUGE thanks/Shout-out to @Swarles for the help with updating code fixes and adding a great new feature.  You can now have some customization per share.  It's great t

  • How to ignore a SINGLE file 1.) Find the path of the file you wish to ignore.     ls -ltr /mnt/cache/Download/complete/test.txt         root@Tower:/# ls -ltr /mnt/cache/Download/complete/test

  • Hi all, I made a new version of the plugin. This fork replaces @hugenbdd's plugin which is not maintained anymore and will land in community applications if your feedbacks are positive.  

Posted Images

image.png

This is the config for a particular share with its own dedicated cache. Recently the cache filled up and the mover engaged. It moved everything to the array and I don't understand why. It's set to only move files greater than 300 days old. (And there was plenty of recent files)

9 hours ago, TrevP said:

I know how thresholds work. I have thresholds set to 0%; meaning move "everything".

You said it not moving files, that mean sometimes need gap between thresholds.

About empty folders I think it's how plugin worked always, do you had same experience with older versions?

You can open future request on github if so.

4 hours ago, Marc_G2 said:

It's set to only move files greater than 300 days old. (And there was plenty of recent files)

Post debug.zip

9 hours ago, TrevP said:

This is why I'm wondering if we could add an option to treat folders just like files; don't ignore them if they happen to be empty.

What case need empty folders to move?

6 hours ago, Masterwishx said:

You said it not moving files, that mean sometimes need gap between thresholds.

About empty folders I think it's how plugin worked always, do you had same experience with older versions?

You can open future request on github if so.

That's not what I said. I said it's not moving folders that don't have files in them.
Files get moved.. no issue. It's when the mover encounters a folder structure that doesn't have any files, it ignores those folders.

Obviously the key to all of this is the mover checks for files to move only. It doesn't check for folders. I come from an Enterprise IT world. Folder structures, just like files, should be protected and moved to the array; even if they are empty.

Edited by TrevP

I just started using this plugin and noticed the same thing. Before using the plugin, if I invoke mover, when it's finished there are 0 files or folders left over on cache. After using the plugin I've noticed empty folders still exist on cache drive after a move.

It's not really a major thing I suppose. It just means your shares will always show as unprotected if you're running a single cache drive, even if there's effectively nothing left on the cache drive.

11 hours ago, TrevP said:

That's not what I said. I said it's not moving folders that don't have files in them.
Files get moved.. no issue. It's when the mover encounters a folder structure that doesn't have any files, it ignores those folders.

Obviously the key to all of this is the mover checks for files to move only. It doesn't check for folders. I come from an Enterprise IT world. Folder structures, just like files, should be protected and moved to the array; even if they are empty.

I think what @Masterwishx is saying that this is expected behavior. It only movesfiles and deletes the last-level folder. So, you will see a folder tree and it is not moving folder structures. This should be a FR. I agree this would be an improvement.

16 hours ago, TrevP said:

That's not what I said. I said it's not moving folders that don't have files in them.
Files get moved.. no issue.

OK, got it, please open future request on github I will check if it possible to add it

I just installed this plugin a few days ago believing from what someone recommended, that it would delete empty folders from cache after the files were moved. I do not believe I am seeing that accomplished despite having Clean empty folders set to Top Folders.

Reading this recent thread activity I see others are mentioning it. Forgive my ignorance in asking, but is this not an option? I am new to UnRaid overall, but I really am not sure why the Unraid mover doesn't have a method to automatically delete empty folders per a schedule or something. Which is why I was interested in this plugin.

3 hours ago, RaidPC said:

do not believe I am seeing that accomplished despite having Clean empty folders set to Top Folders.

If you read help description of option it will delete empty folders of moved files only.

If you have issue with it you can post debug.zip after enabled debug and logging

8 hours ago, Marc_G2 said:

Or can I generate a debug file for the plugin?

Run "mover debug" in cli

On 11/5/2025 at 2:25 AM, Masterwishx said:

Run "mover debug" in cli

Is there any easy way to retrieve the files from the tmp directory? Or can I make it save them to a share?
Also I had to reboot my server—in case that matters any.

16 hours ago, Marc_G2 said:

Is there any easy way to retrieve the files from the tmp directory? Or can I make it save them to a share?

Sure you can copy them from /tmp or change to other location in settings

On 11/7/2025 at 10:22 AM, Masterwishx said:

Sure you can copy them from /tmp or change to other location in settings

That's the problem. I don't know how to copy them to a share. Or transfer them directly to another computer.

9 hours ago, Marc_G2 said:

That's the problem. I don't know how to copy them to a share. Or transfer them directly to another computer.

You can enter to /tmp (/tmp/ca.mover.tuning ) and copy from there or change plugin Logs parent folder for Mover Tuning plugin option to what you want like : /mnt/user/Logs or /mnt/cache/Logs

8 hours ago, Masterwishx said:

You can enter to /tmp (/tmp/ca.mover.tuning ) and copy from there or change plugin Logs parent folder for Mover Tuning plugin option to what you want like : /mnt/user/Logs or /mnt/cache/Logs

I'm sorry but how do I change the folder logs are saved to?

In plugin options

In my syslog recently, I see that the filtering is listing a number of shares that dont exist. Any idea why its trying to move shares that were deleted months ago? For example, in the logs below, the PS2 share was deleted at least 6 months ago and doesnt appear in Unraid at all anywhere I can see.

Nov 11 12:00:01 Tower move: Move files tool: rsync
Nov 11 12:00:01 Tower move: ***************************************************************** FILTERING FILES ***************************************************************
Nov 11 12:00:01 Tower move: ---------------------------------------------------------- Processing [.Trash-99] share ---------------------------------------------------------
Nov 11 12:00:01 Tower move: Primary storage: cache - size: 3.6TiB - used: 12 % (462GiB)
Nov 11 12:00:01 Tower move: Secondary storage: none
Nov 11 12:00:01 Tower move: /mnt/cache/.Trash-99 does not exist. Is the ZFS dataset not created yet? Copy files to '/mnt/user/.Trash-99' first.
Nov 11 12:00:01 Tower move: => Skipping
Nov 11 12:00:01 Tower move: ------------------------------------------------------------ Processing [.hist] share -----------------------------------------------------------
Nov 11 12:00:01 Tower recycle.bin: Scheduled: Files older than 7 days have been removed
Nov 11 12:00:01 Tower move: Primary storage: cache - size: 3.6TiB - used: 12 % (462GiB)
Nov 11 12:00:01 Tower move: Secondary storage: none
Nov 11 12:00:01 Tower move: /mnt/cache/.hist does not exist. Is the ZFS dataset not created yet? Copy files to '/mnt/user/.hist' first.
Nov 11 12:00:01 Tower move: => Skipping
Nov 11 12:00:01 Tower move: ------------------------------------------------------------ Processing [Family] share ----------------------------------------------------------
Nov 11 12:00:01 Tower move: Primary storage: cache - size: 3.6TiB - used: 12 % (462GiB)
Nov 11 12:00:01 Tower move: Secondary storage: none
Nov 11 12:00:01 Tower move: /mnt/cache/Family does not exist. Is the ZFS dataset not created yet? Copy files to '/mnt/user/Family' first.
Nov 11 12:00:01 Tower move: => Skipping
Nov 11 12:00:02 Tower move: ------------------------------------------------------------- Processing [PS2] share ------------------------------------------------------------
Nov 11 12:00:02 Tower move: Primary storage: cache - size: 3.6TiB - used: 12 % (462GiB)
Nov 11 12:00:02 Tower move: Secondary storage: user0
Nov 11 12:00:02 Tower move: /mnt/cache/PS2 does not exist. Is the ZFS dataset not created yet? Copy files to '/mnt/user/PS2' first.
Nov 11 12:00:02 Tower move: => Skipping
12 hours ago, mattekure said:

For example, in the logs below, the PS2 share was deleted at least 6 months ago and doesnt appear in Unraid at all anywhere I can see.

If you don't have this share, seems the config file for it still available in boot drive, delete it if not needed.

ok, I found a bunch of them in /boot/config/shares that should no longer be present. It appears to align with the mover messages. I have deleted them, and see what happens the next time it runs.

Hi All,

Been using the plugin for some time and it's been great. I noticed last night it should have moved files and it reported that it moved 31 files (161Gb) in 1 second. When checking the logs I'm now seeing this -

Expected 2 files, got 1. Not moving "/mnt/array_cache/./media/plex/tv/showName/Season 1/episodeName.mkv" to prevent breaking hardlinks

I'm not sure why it's expecting 2 files for a .mkv (unless expecting the hardlink file?). I've never seen this before and has only appeared since updating to the latest plugin. If anyone is able to point me in the right direction would be grateful.

I've also just noticed that even though Top Folder is selected it's not moving empty tv show parent folders back to the array. Season folder and episodes have been moved from a previous run, but the parent folder (show folder) remains on the cache. I'm wondering if these were from older moves because the way I understand it, it will only clean folders of moved files?

Edited by Sup3rFly
Added more info

9 hours ago, Sup3rFly said:

it will only clean folders of moved files?

Yep for now, this how it work, will try to add move empty folders when will have time.

9 hours ago, Sup3rFly said:

I'm not sure why it's expecting 2 files for a .mkv (unless expecting the hardlink file?)

Not made test for hard links, but if it not hard link file, then it can be using by qbittorrent or other app that hold the file.

Edited by Masterwishx

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.