-
[Plugin] Mover Tuning
I uninstalled the old plugin and installed @Masterwishx updated version and it seems to be working well! Thank you
-
Mover is refusing to move any files off the cache from a share with a space in the name
@Masterwishx A few things to note, I removed "-depth" while I was testing, but it should be left in. I will update my comment to reflect that. This command is roughly the same, I broke it out because I was having issues with it being so nested. I prefer my version as it's much more readable. FINDSTR="$FINDSTR -printf '%T@|%s|%S|%n|%i|%p|\0'" FINDSTR="$FINDSTR | awk -v RS='\0' -v FS='|' \ -v SPARSENESS='$SPARSENESS' \ -v PRIMARYSTORAGENAME='$PRIMARYSTORAGENAME' \ -v SECONDARYSTORAGENAME='$SECONDARYSTORAGENAME' \ -v SHARENAME='$SHARENAME' \ -v SHAREUSECACHE='$SHAREUSECACHE' \ -v PRIMARYSIZETHRESH='$PRIMARYSIZETHRESH'" Anyway, thanks for taking the time to push this code up.
-
[Plugin] Mover Tuning
Hi all, I found an issue where the mover would not move files for user shares that have spaces in the name. Examples: "TV Shows", "TV Shows UHD", "Movies UHD" Error Log: I wrote a comment on this thread explaining the fix, see attached. I hope it may help someone in the future!
-
Mover is refusing to move any files off the cache from a share with a space in the name
I found the issue I was having with the "Mover Tuning" plugin on Unraid 7.0.0 by Andrew Zawadzki, hugenbdd, and Reynald. The problem was in handling spaces within share paths. The file /usr/local/emhttp/plugins/ca.mover.tuning/age_mover needs a few code edits. Line 592 (Replace) FINDSTR="find $SHAREPATH ! -path \"/mnt/user*\" -type f -depth " With FINDSTR="find \"$SHAREPATH\" -type f -depth -not -path \"/mnt/user*\"" Line 594 (Replace) FINDSTR="find $SHAREPATH -type f -depth " With FINDSTR="find \"$SHAREPATH\" -type f -depth" Line 677 (Replace) FINDSTR+=" -printf '%T@|%s|%S|%n|%i|%p|\0' | awk -v RS='\0' -v FS='|' -v SPARSENESS=\$SPARSENESS -v PRIMARYSTORAGENAME=\$PRIMARYSTORAGENAME -v SECONDARYSTORAGENAME=\$SECONDARYSTORAGENAME -v SHARENAME=\$SHARENAME -v SHAREUSECACHE=\$SHAREUSECACHE -v PRIMARYSIZETHRESH=\$PRIMARYSIZETHRESH" With these new lines: FINDSTR="$FINDSTR -printf '%T@|%s|%S|%n|%i|%p|\0'" FINDSTR="$FINDSTR | awk -v RS='\0' -v FS='|' \ -v SPARSENESS='$SPARSENESS' \ -v PRIMARYSTORAGENAME='$PRIMARYSTORAGENAME' \ -v SECONDARYSTORAGENAME='$SECONDARYSTORAGENAME' \ -v SHARENAME='$SHARENAME' \ -v SHAREUSECACHE='$SHAREUSECACHE' \ -v PRIMARYSIZETHRESH='$PRIMARYSIZETHRESH'" This change properly handles paths with spaces, preventing errors during the mover operation. Hope this helps others running into the same issue!
DToX_
Members
-
Joined
-
Last visited