kizer

Moderators
  • Posts

    3707
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by kizer

  1. 34 minutes ago, vvolfpack said:

    You're a top person! I started using the script you provided (modified ever so slightly for my audio file use-case) and it's working like a charm. Super appreciated!

     

    Your very welcome. I'm a true believer of writing out my code with Comments and doing little tweaks so I can come back later and see what I've broken or what works or don't work. I have a couple scripts with so many little routines because I figure I need 10 things to happen and I might as well type out a list and then address each on my list and pray it works. lol

     

    Some of the things I do generate errors, but its a lot of the time "I couldn't find a file", but oh well next step and keep on moving. 

    • Like 1
  2. Ok, I kinda get it now. One is a Hard Ceiling and the other is a Soft Ceiling. Meaning No matter what this script will not allow files to go higher than 90% and if so will clear until files are below 85%.

     

     

    I did notice a time or two when I manually click the script it said currently already running. Nothing i could tell was running and no matter how long I waited when I clicked the script it said the same thing. 

     

    I did a reboot and tried again and it appeared to be running normal. Waited a few hours and did the same thing and got the same message. I'm not scared of background processes, but not knowing what something is doing and not knowing when it will end sometimes is a little unnerving. 

  3. Ok with your Script and some changes I got it to work.  ;) Thank you so much for your efforts and your patience on this. 

     

            #Plex
            PLEX_TOKEN="xxxxxxxxxxxxxxxx"
            PLEX_HOST="192.168.xxx.xxx:32400"
            PLEX_MAX_CACHED_SESSIONS=10
            PLEX_CONTAINER_PATH="TV"
    
            #Rsync path
            STORAGE_PATH="/mnt/user0/TV/Shows/"
            CACHE_PATH="/mnt/cache/TV/Shows/"
            CACHE_MIN_FREE_SPACE_PCT="90"
            CACHE_MAX_FREE_SPACE_PCT="85"

     

    I'm running Mover Tuning Script to limit my Mover, and now this script. So I have to come up with a Happy Medium on the Settings to make sure its working smoothly. 

     

    Can you Please explain a little bit of these. They almost sound like they are backwards in the Amounts and the Naming.

     

    CACHE_MIN_FREE_SPACE_PCT="90"
    CACHE_MAX_FREE_SPACE_PCT="85"

     

    I'm trying to understand the clean up. I've adjusted the above numbers up and down and haven't seen any files delete. 

  4. On 7/22/2022 at 8:48 PM, vvolfpack said:

    This thread was extremely helpful, thanks! My use-case is slightly different wherein I'm looking to find just my audiobook files (m4a, mp3, etc.) from the downloads folder to a temp folder, where they'll be tagged separately with metadata. I wanted the downloads folder to be untouched since I'm seeding from there. I tried creating this script, but unfortunately, it isn't doing its job and I would love some help from someone who is more proficient in Linux commands.

     

    #!/bin/sh
    find /mnt/user/Downloads/torrents/completed/audiobooks/ -type f \( -iname \*.m4b -o -iname \*.mp3 -o -iname \*.mp4 -o -iname \*.m4a -o -iname \*.ogg \) -mmin -3 -exec cp -n "{}" /mnt/user/Media/Audiobooks/Temp/ \;

     

    I added this as new under User Scripts and nothing happens when I run it. The log file doesn't generate any errors either.

     

    What am I doing incorrectly?

     

    I personally use this in my User.Scripts

     

    #Find Files from Incoming that refuse to move
    find /mnt/cache/uploads/incoming/* -iname "*.mkv" -type f -mmin +10 -exec mv {} /mnt/cache/uploads/Tv-Incoming/ \;
    find /mnt/cache/uploads/incoming/* -iname "*.mp4" -type f -mmin +10 -exec mv {} /mnt/cache/uploads/Tv-Incoming/ \;
    find /mnt/cache/uploads/incoming/* -iname "*.avi" -type f -mmin +10 -exec mv {} /mnt/cache/uploads/Tv-Incoming/ \;

     

    Every 15 Minutes I run a script that does a lot more, but I have this nested in the script that look for files that are at least 10minutes old and if they are .mkv, .mp4 or an .avi they are moved. Obviously you can change the time, but I figured 10minutes was plenty which allowed FileBot to uncompress the files and make sure they are not in the middle of being uncompressed and moved half way done. 

     

    Find /mnt/cache/uploads/incoming/* -mmin +30 -type d -empty -delete

     

    After any files are moved from a Directory after it was unpacked I use the above to check the folders and delete them when they are empty. I set it to longer to give files a chance to be moved a few times. 

     

     

    • Like 1
  5. Checked my setting now I'm seeing this.

     

    Script location: /tmp/user.scripts/tmpScripts/Plex-Caching-Script/script
    Note that closing this window will abort the execution of this script
    Welcome to /tmp/user.scripts/tmpScripts/Plex-Caching-Script/script
    stat: cannot statx '/tmp/user.scripts/tmpScripts/Plex-Caching-Script/log.txt': No such file or directory
    Info: Log size is
    
    ----------------------------
    1 active(s) plex session(s):
    ----------------------------
    - 1/1: Serie: Chuck Season 1 - Episode 13/13: Chuck Versus the Marlin
    -- Info: File 13/13: /TV/Chuck/Season 1/Chuck.-.S01E13.mkv
    --- Debug:Rsync_transfer function parameters:
    ---- Debug: Source file: /mnt/user0/TV/Chuck/Season 1/Chuck.-.S01E13.mkv
    ---- Debug: Dest. file: /mnt/cache/TV/Chuck/Season 1/Chuck.-.S01E13.mkv
    ---- Debug: Source path: /mnt/user0
    ---- Debug: Dest. path: /mnt/cache
    ---- Debug: Options :
    --- Error: Files:
    /mnt/user0/TV/Chuck/Season 1/Chuck.-.S01E13.mkv
    /mnt/cache/TV/Chuck/Season 1/Chuck.-.S01E13.mkv
    does not exist



    ---------------------
    Cache disk usage: 35%
    ---------------------
    - Info: 35% space used, quota is 90%, nothing to do
    -- Info: Cleaning empty directories...

  6. 9 hours ago, itimpi said:

    Yes.

     

    The flash drive is in a standard FAT32 file system so easy to copy all the files off onto a location on the PC.

     

    Exactly what I did. I have a PC I mainly deal with unraid on and I have a folder sitting burried in everything a folder called FlashBackup and every once in a while I'll update it just incase. I've had to do the OH'Crap recovery a couple times luckily having the files handy. 

     

    Now that I'm deploying a backup server I'll have a copy of each others Flash Drive stored on each other just in case as well. 

  7. 58 minutes ago, Nanobug said:

    I've disabled it, and tried to set it to every hour from the regular mover, and also tried manually. And yes, there's 700 GB of data to move.

     

     

    Any of these shares set to Cache Only? That for sure will not let anything move. 

  8. Also very important. Do not move files via /shares to /disks or /disks to /shares 

    When I did mine I copied files from /disk to /disk

    If you mix /shares and /disks you might end up in some kind of loop or cause corruption. 

     

    I think I did mine a long time ago using rsync and Unbalance plugin which took a lot of the guess work out of it. Made me feel really lazy. Lol

     

    Also in settings or is it tools I don't remember. Don't forget to set the default disk formatting for future drives. I'm guessing you have it currently set to btfrs you should change it to xfs unless you don't want future drives to be xfs. 

     

     

    • Like 1
    • Upvote 1
  9. This Plugin is simply awesome. Saves me so much time now. Before I'd have to remote in and change some files or open up a command prompt and do some typing. Now its simply click on a file and use the rename function and done. 

  10. 2 hours ago, Nanobug said:

    Which one? The original mover, or the mover tuner?

     

    I posted my exact settings up above a bit. I also fixed what I posted a couple days ago that you qouted me on. You do not want the top line to be YES, Yes means disable the plugin. The last line setting it to yes means enable TEST mode. You want things to move, you have to use NO on the last line too. 

     

     

    On a side note you can enable Logging and click the button to move and watch files move while watching the logs using Test mode. Or you can disable TEST mode and watch the logs as well. I normally enable TEST and Logging so I can see what the script would do and when I'm happy turn off TEST and let it go. 

     

    I used to keep logging and check things, but I've since disabled Logging and have my files move once a day vs every hour because I have my server setup to move files, do Plex maintenance and other things between the hours of 6AM and 8AM every morning. Otherwise my drives sleep all day. 

     

  11. 43 minutes ago, Krushy said:

    Thanks trurl.

    Yes, all cleared on Safari (on a MacBook Pro)

    As suggested - Using Chrome or Opera getting "Your connection is not private NET::ERR_CERT_INVALID", so won't even connect up.

     

    Very Odd, On my MacbookPro using 10.6.3 I can connect via Chrome, Safari and Brave browser. 

     

    Are you running any kind of ad blocker or safe browsing browser extensions?

  12. Id probably agree its a little bit of everything you did to improve your system. 

    My i7 4790k was getting

    85Mbs when I was using Western Digital Green 2TB drives at 5400RPM

    125Mbs Now I'm running 4TB Iron Wolf drives at 5900RPM

     

    Are you running Parity every 2weeks? I honestly think 1x a month is good since it doesn't trash on your drives as often and gets the same results in the end. 

     

  13. On 7/7/2022 at 3:42 PM, HDT said:

     

    May you please share a screenshot of your settings?

     

    Sure when I get a chance later tonight when I get home I'll take a snap of what I have going on. Its nothing really special, but I know sometimes a little bit of info goes a long way when your trying to explain something or understand something. 

  14. On 6/9/2022 at 2:11 PM, HDT said:

    Is there a way for MOVER to move files by oldest first until x % of space is free?

     

    Not by age, like any file over 9 days old, but by moving the oldest file first out of all the files in the cache pool until the cache pool has  x % of space free.

     

    I have my system setup to check every day in the AM, look for at least 10% used and move files that are 20 days old. 

     

    So in a sense it does move the oldest files first the 20day files and then keeps moving the oldest every day

    • Thanks 1