[Plugin] Mover Tuning


Recommended Posts

hi guys
just checking if this is normal behaviour :

image.png.e76d8bfebf94d1996b1659a1290b87ac.png

 

somehow, when mover is activated, it writes to multiple drives at the same time. i don't think multiple drive writes is good, especially for the resulting write to parity.
any ideas what could cause this?
*i understand this might not be related to the scheduler plugin at all -> let me know if it should be moved.

Link to comment

Hi

May i have some configuration examples?

I'd want to ignore moving some folders and some file types like *.!qb

but my config seems not working:(

Ignore files listed inside of a text file: yes
File list path: /mnt/user/media/upload/

 

Ignore file types: Yes
comma seperated list of file types: .!qb,.part

or type  "*.!qb,*.part" instead? or ".!qb;.part"?

 

Thanks in advance.

 

 

Edited by alicex
Link to comment

Can I just double check how these settings function:

Do they mean that this is the threshold of used data or free data space available on disk?

I ask because the default it 0% & 5%  - where as would expect them to be say 80% & 90%

 

Thanks

 

Only move at this threshold of used cache space: 0%

 

Move All from Cache-yes shares pool percentage: 5%

 

 

Edited by dopeytree
Link to comment
  • 2 weeks later...
On 9/25/2022 at 6:37 PM, alicex said:

Hi

May i have some configuration examples?

I'd want to ignore moving some folders and some file types like *.!qb

but my config seems not working:(

Ignore files listed inside of a text file: yes
File list path: /mnt/user/media/upload/

 

Ignore file types: Yes
comma seperated list of file types: .!qb,.part

or type  "*.!qb,*.part" instead? or ".!qb;.part"?

 

Thanks in advance.

 

 

 

Hi @alicex,

 

Did you get this working? I'm having the same challenge. I've tried:

 

  • !qB
  • .!qB
  • *.!qB

Yet they always seem to get picked up and moved. Maybe the exclamation mark is causing issues?

 

 

Cheers,

 

Nick

Edited by Nick_J
Link to comment
On 10/9/2022 at 4:26 PM, Nick_J said:

 

Hi @alicex,

 

Did you get this working? I'm having the same challenge. I've tried:

 

  • !qB
  • .!qB
  • *.!qB

Yet they always seem to get picked up and moved. Maybe the exclamation mark is causing issues?

 

 

Cheers,

 

Nick

 

Hi

Unfortunately this plugin seems doesn't work at all.

 

I set the value as below:

Only move at this threshold of used cache space: 70%

Move All from Cache-yes shares pool percentage: 75%

 

When the cache pool reaches 99.9%,no response at all.

Everything all stop running looks like stuck.

No logs, no responses, as nothing had happened.

So I pressed the `move` button manually...and took a few deep breaths to steady my nerves...and removed the plugin. XD

Link to comment
7 minutes ago, alicex said:

 

Hi

Unfortunately this plugin seems doesn't work at all.

 

I set the value as below:

Only move at this threshold of used cache space: 70%

Move All from Cache-yes shares pool percentage: 75%

 

When the cache pool reaches 99.9%,no response at all.

Everything all stop running looks like stuck.

No logs, no responses, as nothing had happened.

So I pressed the `move` button manually...and took a few deep breaths to steady my nerves...and removed the plugin. XD

Did you enable logging for the mover?

There is also a test mode so you can review the find statement in the logs sent to the mover binary.

 

Move Now button follows plug-in filters:

 Yes

Test Mode:

 Yes

 

By doing this you can review and tweak all of the settings very quickly.

  • Like 1
Link to comment
4 hours ago, hugenbdd said:

Did you enable logging for the mover?

There is also a test mode so you can review the find statement in the logs sent to the mover binary.

 

Move Now button follows plug-in filters:

 Yes

Test Mode:

 Yes

 

By doing this you can review and tweak all of the settings very quickly.

 

Where do the logs go?

Couldn't see it in syslogs

Edited by dopeytree
Link to comment
1 hour ago, dopeytree said:

 

Where do the logs go?

Couldn't see it in syslogs

It goes to /var/log/syslog

 

If you couldn't see it, maybe it was not enabled in the scheduler setting?

 

When I test, I open the window for logging (Upper right, next to the ? icon).  Have my settings for logging enabled, "Move Now Button Follows plug-in filters" Yes, "Test Mode" Yes

 

Then review the logs, what the "find" command ends up being, and what files it selects.

 

Entries in the log look something like this.

Oct 10 01:45:02 Tower root: mvlogger: *********************************MOVER START*******************************
Oct 10 01:45:02 Tower root: mvlogger: Age supplied 25
Oct 10 01:45:02 Tower root: mvlogger: Size supplied
Oct 10 01:45:02 Tower root: mvlogger: Sparness supplied
Oct 10 01:45:02 Tower root: mvlogger: No Skipfiles Argument Supplied
Oct 10 01:45:02 Tower root: mvlogger: No Skipfiles Argument Supplied
Oct 10 01:45:02 Tower root: mvlogger: No Before Script Argument Supplied
Oct 10 01:45:02 Tower root: mvlogger: No After Script Argument Supplied
Oct 10 01:45:02 Tower root: mvlogger: CTIME Argument: no
Oct 10 01:45:02 Tower root: mvlogger: No Original Mover Threshold Percent Supplied
Oct 10 01:45:02 Tower root: mvlogger: No Test Mode Argument Supplied
Oct 10 01:45:02 Tower root: mvlogger: No Ignore Hidden Files Argument Supplied
Oct 10 01:45:02 Tower root: mover: started
Oct 10 01:45:02 Tower root: mvlogger: No Script to Run.
Oct 10 01:45:02 Tower root: mvlogger: CACHETHRESH is blank
 

...

Oct 10 01:45:20 Tower root: mvlogger: Complete Mover Command: find "/mnt/cache/TV" -depth -mtime +24 | /usr/local/sbin/move -d 1
Oct 10 01:45:20 Tower move: file: /mnt/cache/TV/Processed TV/FILENAME1.mkv
Oct 10 01:45:21 Tower move: file: /mnt/cache/TV/Processed TV/FILENAME2.mkv

.........

Link to comment

Would be great to have mover settings per share.


So for example I want my backups share to move to the array as soon as possible (but I want it written to cache first) then I want my plex downloads to hang around on the cache for 30days... at the moment I have not found a way to do this.

 

- Backup share - Moves to array nightly

- Data share (plex trashguide with nzbget downloads etc) - moves to array after 30days

Edited by dopeytree
  • Upvote 2
Link to comment

I'm trying to exclude some folders from the mover with the "Ignore files listed inside of a text file:". But it doesn't seem to work. I have the configuration as follow: 

 

image.thumb.png.9100bd0a7730b313f33ef217835a946f.png

 

* Ignore files listed inside of a text file: --> set to "Yes"

* File list path: " /mnt/user/appdata/mover-ignore/mover_ignore.txt"

* Move Now button follows plug-in filters: --> set to "Yes", this for testing when I manually press the move command

 

My mover_ignore.txt look like this: 

image.png.48d6570bfac87e57201ba95b5aded7f2.png

 

In those directories I've created a test file, which I can see is on the cache_data:

image.thumb.png.817c95ca1923a1ff8d644af96fa9fb04.png

 

When I run the mover:

image.thumb.png.e8557c66751d8093cd3540700ac8675a.png

 

I get the following result in the "Syslog file":

Oct 25 14:48:39 Tower root: mover: started
Oct 25 14:48:39 Tower root: mvlogger: No Script to Run.
Oct 25 14:48:39 Tower root: mvlogger: CACHETHRESH: 80
Oct 25 14:48:39 Tower root: mvlogger: Checking to see if we should all files from share.
Oct 25 14:48:39 Tower root: mvlogger: Move All Cache Threshold: 80
Oct 25 14:48:39 Tower root: mvlogger: /mnt/cache PCT USED:  28
Oct 25 14:48:39 Tower root: mvlogger: /mnt/cache_data PCT USED:   1
Oct 25 14:48:39 Tower root: mvlogger: Done checking Move All from Share
Oct 25 14:48:39 Tower root: mvlogger: Share Name Only: cctv
Oct 25 14:48:39 Tower root: mvlogger: Cache Pool Name: cache_data 
Oct 25 14:48:39 Tower root: mvlogger: cache_data Threshold Pct: 
Oct 25 14:48:39 Tower root: mvlogger: OVERALL Threshold: 0
Oct 25 14:48:39 Tower root: mvlogger: Share Path: /mnt/cache_data/cctv
Oct 25 14:48:39 Tower root: mvlogger: Pool Pct Used:   1 %
Oct 25 14:48:39 Tower root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 25 14:48:39 Tower root: mvlogger: Threshold Used: 0
Oct 25 14:48:39 Tower root: mvlogger: Adding Skip File List
Oct 25 14:48:39 Tower root: mvlogger: Skip File List Path: /mnt/user/appdata/mover-ignore/mover_ignore.txt
Oct 25 14:48:39 Tower root: mvlogger: Skipfiletypes string: find "/mnt/cache_data/cctv" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
Oct 25 14:48:39 Tower root: mvlogger: Not in Test mode
Oct 25 14:48:39 Tower root: mvlogger: Complete Mover Command: find "/mnt/cache_data/cctv" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt' | /usr/local/sbin/move -d 1
Oct 25 14:48:39 Tower root: mvlogger: Share Name Only: data
Oct 25 14:48:39 Tower root: mvlogger: Cache Pool Name: cache_data 
Oct 25 14:48:39 Tower root: mvlogger: cache_data Threshold Pct: 
Oct 25 14:48:39 Tower root: mvlogger: OVERALL Threshold: 0
Oct 25 14:48:39 Tower root: mvlogger: Share Path: /mnt/cache_data/data
Oct 25 14:48:39 Tower root: mvlogger: Pool Pct Used:   1 %
Oct 25 14:48:39 Tower root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 25 14:48:39 Tower root: mvlogger: Threshold Used: 0
Oct 25 14:48:39 Tower root: mvlogger: Adding Skip File List
Oct 25 14:48:39 Tower root: mvlogger: Skip File List Path: /mnt/user/appdata/mover-ignore/mover_ignore.txt
Oct 25 14:48:39 Tower root: mvlogger: Skipfiletypes string: find "/mnt/cache_data/data" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
Oct 25 14:48:39 Tower root: mvlogger: Not in Test mode
Oct 25 14:48:39 Tower root: mvlogger: Complete Mover Command: find "/mnt/cache_data/data" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt' | /usr/local/sbin/move -d 1
Oct 25 14:48:40 Tower  move: file: /mnt/cache_data/data/torrents/test file 2.txt
Oct 25 14:48:40 Tower  move: file: /mnt/cache_data/data/usenet/test file 3.txt
Oct 25 14:48:40 Tower root: mvlogger: Share Name Only: share
Oct 25 14:48:40 Tower root: mvlogger: Cache Pool Name: cache 
Oct 25 14:48:40 Tower root: mvlogger: cache Threshold Pct: 
Oct 25 14:48:40 Tower root: mvlogger: OVERALL Threshold: 0
Oct 25 14:48:40 Tower root: mvlogger: Share Path: /mnt/cache/share
Oct 25 14:48:40 Tower root: mvlogger: Pool Pct Used:  28 %
Oct 25 14:48:40 Tower root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 25 14:48:40 Tower root: mvlogger: Threshold Used: 0
Oct 25 14:48:40 Tower root: mvlogger: Adding Skip File List
Oct 25 14:48:40 Tower root: mvlogger: Skip File List Path: /mnt/user/appdata/mover-ignore/mover_ignore.txt
Oct 25 14:48:40 Tower root: mvlogger: Skipfiletypes string: find "/mnt/cache/share" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
Oct 25 14:48:40 Tower root: mvlogger: Not in Test mode
Oct 25 14:48:40 Tower root: mvlogger: Complete Mover Command: find "/mnt/cache/share" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt' | /usr/local/sbin/move -d 1
Oct 25 14:48:40 Tower root: find: '/mnt/cache/share': No such file or directory
Oct 25 14:48:40 Tower root: mover: finished
Oct 25 14:48:40 Tower root: mvlogger: No After Script to Run.

 

I can see here that the test files are moved, while I wan't to keep these directories including the files on the cache disk. 

image.thumb.png.7a08d916b62bdbe2c9960b98f7f30570.png

 

Can someone help me? I don't know what I'm doing wrong? 

 

 

Link to comment
10 hours ago, de Techneut said:

I'm trying to exclude some folders from the mover with the "Ignore files listed inside of a text file:". But it doesn't seem to work. I have the configuration as follow: 

 

image.thumb.png.9100bd0a7730b313f33ef217835a946f.png

 

* Ignore files listed inside of a text file: --> set to "Yes"

* File list path: " /mnt/user/appdata/mover-ignore/mover_ignore.txt"

* Move Now button follows plug-in filters: --> set to "Yes", this for testing when I manually press the move command

 

My mover_ignore.txt look like this: 

image.png.48d6570bfac87e57201ba95b5aded7f2.png

 

In those directories I've created a test file, which I can see is on the cache_data:

image.thumb.png.817c95ca1923a1ff8d644af96fa9fb04.png

 

When I run the mover:

image.thumb.png.e8557c66751d8093cd3540700ac8675a.png

 

I get the following result in the "Syslog file":

Oct 25 14:48:39 Tower root: mover: started
Oct 25 14:48:39 Tower root: mvlogger: No Script to Run.
Oct 25 14:48:39 Tower root: mvlogger: CACHETHRESH: 80
Oct 25 14:48:39 Tower root: mvlogger: Checking to see if we should all files from share.
Oct 25 14:48:39 Tower root: mvlogger: Move All Cache Threshold: 80
Oct 25 14:48:39 Tower root: mvlogger: /mnt/cache PCT USED:  28
Oct 25 14:48:39 Tower root: mvlogger: /mnt/cache_data PCT USED:   1
Oct 25 14:48:39 Tower root: mvlogger: Done checking Move All from Share
Oct 25 14:48:39 Tower root: mvlogger: Share Name Only: cctv
Oct 25 14:48:39 Tower root: mvlogger: Cache Pool Name: cache_data 
Oct 25 14:48:39 Tower root: mvlogger: cache_data Threshold Pct: 
Oct 25 14:48:39 Tower root: mvlogger: OVERALL Threshold: 0
Oct 25 14:48:39 Tower root: mvlogger: Share Path: /mnt/cache_data/cctv
Oct 25 14:48:39 Tower root: mvlogger: Pool Pct Used:   1 %
Oct 25 14:48:39 Tower root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 25 14:48:39 Tower root: mvlogger: Threshold Used: 0
Oct 25 14:48:39 Tower root: mvlogger: Adding Skip File List
Oct 25 14:48:39 Tower root: mvlogger: Skip File List Path: /mnt/user/appdata/mover-ignore/mover_ignore.txt
Oct 25 14:48:39 Tower root: mvlogger: Skipfiletypes string: find "/mnt/cache_data/cctv" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
Oct 25 14:48:39 Tower root: mvlogger: Not in Test mode
Oct 25 14:48:39 Tower root: mvlogger: Complete Mover Command: find "/mnt/cache_data/cctv" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt' | /usr/local/sbin/move -d 1
Oct 25 14:48:39 Tower root: mvlogger: Share Name Only: data
Oct 25 14:48:39 Tower root: mvlogger: Cache Pool Name: cache_data 
Oct 25 14:48:39 Tower root: mvlogger: cache_data Threshold Pct: 
Oct 25 14:48:39 Tower root: mvlogger: OVERALL Threshold: 0
Oct 25 14:48:39 Tower root: mvlogger: Share Path: /mnt/cache_data/data
Oct 25 14:48:39 Tower root: mvlogger: Pool Pct Used:   1 %
Oct 25 14:48:39 Tower root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 25 14:48:39 Tower root: mvlogger: Threshold Used: 0
Oct 25 14:48:39 Tower root: mvlogger: Adding Skip File List
Oct 25 14:48:39 Tower root: mvlogger: Skip File List Path: /mnt/user/appdata/mover-ignore/mover_ignore.txt
Oct 25 14:48:39 Tower root: mvlogger: Skipfiletypes string: find "/mnt/cache_data/data" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
Oct 25 14:48:39 Tower root: mvlogger: Not in Test mode
Oct 25 14:48:39 Tower root: mvlogger: Complete Mover Command: find "/mnt/cache_data/data" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt' | /usr/local/sbin/move -d 1
Oct 25 14:48:40 Tower  move: file: /mnt/cache_data/data/torrents/test file 2.txt
Oct 25 14:48:40 Tower  move: file: /mnt/cache_data/data/usenet/test file 3.txt
Oct 25 14:48:40 Tower root: mvlogger: Share Name Only: share
Oct 25 14:48:40 Tower root: mvlogger: Cache Pool Name: cache 
Oct 25 14:48:40 Tower root: mvlogger: cache Threshold Pct: 
Oct 25 14:48:40 Tower root: mvlogger: OVERALL Threshold: 0
Oct 25 14:48:40 Tower root: mvlogger: Share Path: /mnt/cache/share
Oct 25 14:48:40 Tower root: mvlogger: Pool Pct Used:  28 %
Oct 25 14:48:40 Tower root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 25 14:48:40 Tower root: mvlogger: Threshold Used: 0
Oct 25 14:48:40 Tower root: mvlogger: Adding Skip File List
Oct 25 14:48:40 Tower root: mvlogger: Skip File List Path: /mnt/user/appdata/mover-ignore/mover_ignore.txt
Oct 25 14:48:40 Tower root: mvlogger: Skipfiletypes string: find "/mnt/cache/share" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
Oct 25 14:48:40 Tower root: mvlogger: Not in Test mode
Oct 25 14:48:40 Tower root: mvlogger: Complete Mover Command: find "/mnt/cache/share" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt' | /usr/local/sbin/move -d 1
Oct 25 14:48:40 Tower root: find: '/mnt/cache/share': No such file or directory
Oct 25 14:48:40 Tower root: mover: finished
Oct 25 14:48:40 Tower root: mvlogger: No After Script to Run.

 

I can see here that the test files are moved, while I wan't to keep these directories including the files on the cache disk. 

image.thumb.png.7a08d916b62bdbe2c9960b98f7f30570.png

 

Can someone help me? I don't know what I'm doing wrong? 

 

 

I would suggest you start playing with this string in the console.

 

find "/mnt/cache_data/data" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'

 

Few things that I have run into in the past.

1.) Special end or ^ character in the ignore file

2.) You have spaces in your test file, generally to test things, spaces can introduce issues.  However, this should NOT be the case as the command is wrapped in quotes.

3.) try to get it working with a single file in the ignore text first, then try to get it working with a directory.  Basically it's the grep -vFf that will remove the matched files from the original find.

  • Thanks 1
Link to comment

Not sure if it is related to the problems you are having but some part of the mover appears to have hard-coded paths and names for cache pools (probably been there since Unraid only allowed a single cache pool). I noted that you are getting errors in your log the same as I do and it is probably owing to us not naming our cache pool 'cache'.

 

 

Oct 27 02:30:19 Zen root: mvlogger: Share Name Only: mydata
Oct 27 02:30:19 Zen root: mvlogger: Cache Pool Name: cache 
Oct 27 02:30:19 Zen root: mvlogger: cache Threshold Pct: 
Oct 27 02:30:19 Zen root: mvlogger: OVERALL Threshold: 0
Oct 27 02:30:19 Zen root: mvlogger: Share Path: /mnt/cache/mydata
Oct 27 02:30:19 Zen root: df: /mnt/cache: No such file or directory
Oct 27 02:30:19 Zen root: mvlogger: Pool Pct Used:  %
Oct 27 02:30:19 Zen root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 27 02:30:19 Zen root: /usr/local/emhttp/plugins/ca.mover.tuning/age_mover: line 305: [: -gt: unary operator expected
Oct 27 02:30:19 Zen root: mvlogger: Threshold Used: 0

 

Link to comment
5 hours ago, Bebbo said:

Not sure if it is related to the problems you are having but some part of the mover appears to have hard-coded paths and names for cache pools (probably been there since Unraid only allowed a single cache pool). I noted that you are getting errors in your log the same as I do and it is probably owing to us not naming our cache pool 'cache'.

 

 

Oct 27 02:30:19 Zen root: mvlogger: Share Name Only: mydata
Oct 27 02:30:19 Zen root: mvlogger: Cache Pool Name: cache 
Oct 27 02:30:19 Zen root: mvlogger: cache Threshold Pct: 
Oct 27 02:30:19 Zen root: mvlogger: OVERALL Threshold: 0
Oct 27 02:30:19 Zen root: mvlogger: Share Path: /mnt/cache/mydata
Oct 27 02:30:19 Zen root: df: /mnt/cache: No such file or directory
Oct 27 02:30:19 Zen root: mvlogger: Pool Pct Used:  %
Oct 27 02:30:19 Zen root: mvlogger: DFTPCT LIMIT USED FOR SETTING: 0
Oct 27 02:30:19 Zen root: /usr/local/emhttp/plugins/ca.mover.tuning/age_mover: line 305: [: -gt: unary operator expected
Oct 27 02:30:19 Zen root: mvlogger: Threshold Used: 0

 

It defaults to cache if it can't find the cache directory.

 

Can you confirm that /mnt/cache does not exists or maybe the name of your cache was changed?

Link to comment
On 10/27/2022 at 6:09 PM, hugenbdd said:

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.txt
        -rwxrwxrwx 1 root root 14 Oct 27 11:32 /mnt/cache/Download/complete/test.txt*
2.) Copy the complete path used.  
    /mnt/cache/Download/complete/test.txt
3.) Create a text file to hold the ignore list.
    vi /mnt/user/appdata/mover-ignore/mover_ignore.txt
4.) Add a file path to the mover_ignore.txt file
    While still in vi press the i button on your keyboard.
    Right click mouse.
5.) Exit and Save
    ESC key, then : key, then w key, then q key
6.) Verify file was saved
    cat /mnt/user/appdata/mover-ignore/mover_ignore.txt
    "This should print out 1 line you just entered into the mover_ignore.txt"
7.) Verify the find command results does not contain the ignored file
    find "/mnt/cache/Download" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
    /mnt/cache/Download is the share name on the cache. (Note, cache name could be different if you have multiple caches or changed the default name)

 

How to ignore Muliple files.

1.) Find the paths of the files you wish to ignore
    ls -ltr /mnt/cache/Download/complete/test.txt
    ls -ltr /mnt/cache/Download/complete/Second_File.txt
2.) Copy the complete paths used to a separate notepad or text file.
    /mnt/cache/Download/complete/test.txt
    /mnt/cache/Download/complete/Second_File.txt
3.) Copy the paths in your notepad to the clip board. 
    Select, the right click copy
4.) Create a text file to hold the ignore list.
    vi /mnt/user/appdata/mover-ignore/mover_ignore.txt
5.) Add the file paths to the mover_ignore.txt file
    While still in vi press the i button on your keyboard.
    Right click mouse.

    You should now have two file paths in the file.
6.) Exit and Save
    ESC key, then : key, then w key, then q key
7.) Verify file was saved
    cat /mnt/user/appdata/mover-ignore/mover_ignore.txt
    "This should print out 2 lines you just entered into the mover_ignore.txt"
8.) Verify the find command results does not contain the ignored files
    find "/mnt/cache/Download" -depth | grep -vFf '/mnt/user/appdata/mover-ignore/mover_ignore.txt'
    /mnt/cache/Download is the share name on the cache. (Note, cache name could be different if you have multiple caches or changed the default name)


How to Ignore a directory
instead of a file path, use a directory path.  no * or / at the end.
This may cause issues if you have other files or directories named the similar but with extra text.

/mnt/cache/Download/complete

*Note /mnt/cache/Download/complete  will also ignore /mnt/cache/Download/complete-old 

 

 

*I use vi in this example instead of creating a file in windows, as windows can add ^m characters to the end of the line, causing issues in Linux.   This would not be an issue if dos2unix was included in unRAID.

 

**Basic vi commands

https://www.cs.colostate.edu/helpdocs/vi.html

 

Thanks for the reply! By coincidence I already did the same as what you described. Now it is working for me! 

 

What I did was deleting the mover_ignore file (Which I originally created in windows) and created a new text file. 

 

The new file looks as follows: 

image.png.d3fb1928baca538c465570dbe5f37fe7.png

 

Compared to the old one I removed the / at the end. Now everything is working as expected. 

 

  • Like 1
Link to comment
On 10/27/2022 at 4:35 PM, hugenbdd said:

Would need to see the "Find" command that is being created to help more.

I tried it, but everything seemed okay.

Anyway, I found another solution for me. I put every file, what shouldn't be moved to another share, which is only on the cache drive.

Link to comment
  • 2 weeks later...
On 9/25/2022 at 6:37 PM, alicex said:

Hi

May i have some configuration examples?

I'd want to ignore moving some folders and some file types like *.!qb

but my config seems not working:(

Ignore files listed inside of a text file: yes
File list path: /mnt/user/media/upload/

 

Ignore file types: Yes
comma seperated list of file types: .!qb,.part

or type  "*.!qb,*.part" instead? or ".!qb;.part"?

 

Thanks in advance.

 

 

Hello, Perhaps I can provide an explanation of where you going wrong.
 

you have not actually provided a path properly to a list of directories you want skipped.

To be clear Ignore file types and Ignore files / folders listed inside of text file are not related they are individual settings and can be used independently.

 

Please see below the examples: 

image.thumb.png.eb6d02af2d972d1d98ccc7d0822c5200.png

image.png.b83eae2fa22cb71efa8fa139f1dee7a3.png

  • Like 1
Link to comment

If I use the move files at 70% of cache does that mean it will keep 30% of the cache files on drive???

 

Trying to think of a simple solution to prefer files on cache but move some when necessary BUT the priority is to have files on the cache.

 

So I would like to maintain 70% utilisation of my cache drives rather than mover dumping everything when the cache reaches 70% fullness as then it would be 0% which takes a while to fill up so loose the benefit of the SSD.

 

Any ideas?

Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.