Hello all, thought I would share since the recent plugin update as of today, 8/19/2024:
I thank all that are working on this CA Mover Tuning Plugin, most recent @Reynald. I noticed a bug when running the Mover manually on a share, in my example "/mnt/user/media". The command below has a slight typo near the end, where "move" should be "mover".
Original/Before:
"find "/mnt/cache/media" -depth | /usr/local/sbin/move -d 1"
Correction/After:
"find "/mnt/cache/media" -depth | /usr/local/sbin/mover -d 1"
The script as it was (below), gave me the following output and made me wonder, "hey, this plugin uses mover, not move, so let me investigate":
mvlogger: *********************************MOVER -SHARE- START*******************************
mvlogger: Mon Aug 19 17:23:47 EDT 2024
mvlogger: Share supplied media
Sharecfg: /boot/config/shares/media.cfg
mvlogger: Cache Pool Name: cache
mvlogger: Share Path: /mnt/cache/media
mvlogger: Complete Mover Command: find "/mnt/cache/media" -depth | /usr/local/sbin/move -d 1
mvlogger: Mon Aug 19 17:23:47 EDT 2024
mvlogger: ********************************Mover Finished*****************************
_________________________________________________________________________________________________
##Edit:
The bug is located on line # 96 of file "share_mover", snippet below of what line the issue was found on:
File & File Location: "/usr/local/emhttp/plugins/ca.mover.tuning/share_mover"
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#81#SHAREPATH="/mnt/$CACHEPOOLNAME/$SHARE"
mvlogger "Share Path: $SHAREPATH"
if [ "$SHAREPATH" = "/mnt/cache" ] ; then
echo "Exiting, can't determine cache name used"
exit 2
else
if [ -d $SHAREPATH ] ; then
FINDSTR="find \"$SHAREPATH\" -depth"
if [ "$TESTMODE" = "yes" ] ; then
mvlogger "Running in Test Mode: $FINDSTR"
eval "$FINDSTR"
else
#Add Mover to find string
#96: Fix ME--># FINDSTR+=" | /usr/local/sbin/move -d $LOGLEVEL"
mvlogger "Complete Mover Command: $FINDSTR"
eval " $FINDSTR"
fi
else
mvlogger "Directory does not exist: $SHAREPATH"
fi
fi
fi
rm -f $PIDFILE
$NOW=`date`
mvlogger "$NOW"
mvlogger "********************************Mover Finished*****************************"