bexem / PlexCache

Automate Plex media management: Efficiently transfer media from the On Deck/Watchlist to the cache, and seamlessly move watched media back to their respective locations.
64 stars 7 forks source link

Feeling dumb... #13

Closed teshiburu2020 closed 1 year ago

teshiburu2020 commented 1 year ago

I'm currently going through the setup.py on this in PowerShell on server 2019, when it gets to the point of asking about my cache drive it defaults to /mnt/cache which is the correct location on my unraid server... but it's not giving me an option to specify any unraid details? have i missed something? or can this not communicate with my unraid server, and will i need to "cache" it on the windows machine locally?

teshiburu2020 commented 1 year ago

No worries I'll wait for you to let me know there is a new thing to test

As for PayPal and such do let me know!

bexem commented 1 year ago

I’ll deserve a coffee only if I solve it 😁 But thank you 😊

I have updated it with a new logic, might not have been obvious from my comment, apologies.

teshiburu2020 commented 1 year ago

Ahh ok I'll look

Do you think the issues lay in the setup or rather that's the place to get it right for the cache script to work as is

teshiburu2020 commented 1 year ago

plexcache_script_latest.log

latest log :) settings_test.json.txt

and settings file :)

bexem commented 1 year ago

Do you think the issues lay in the setup or rather that's the place to get it right for the cache script to work as is

I don't think it works as it is, but I would prefer to have a standardized settings file that the script files can reliably work with. I understand that the primary issue lies in the caching logic, but since the problem is related to paths, I want to ensure that I always work with the same style of paths rather than having a mix-and-match situation.

Sorry I must have pressed "close with comment" this time. Definitely not a closed issue.

Don't worry with the cache script yet, I'll tell you when to test it ☺️

Also, I've updated the setup script again, I really don't want that "P://" in the libraries, I know it confuses the cache script.

teshiburu2020 commented 1 year ago

new version gives this error

image

bexem commented 1 year ago

Sorry about that 😞 I've theoretically fixed it...

bexem commented 1 year ago

So...I've made progress on both scripts, and they seem to be functioning properly from my end. However, I haven't been able to test the Windows paths, so there's a possibility that they might not work for you.

I've streamlined and optimized some of the functions in the setup script. Although it will ask you about the operating system you're using, I don't plan on using that information in the future because the cache script now detects the operating system and dynamically converts the paths accordingly. It should ideally handle the paths correctly, even when running on Windows. Additionally, I've incorporated a Python utility for file copying, which is not specific to Linux.

I'm hopeful that these changes will work, but I'm still a bit skeptical. Nonetheless, I believe we're heading in the right direction, and it shouldn't be too long before you're up and running (plus, I have a couple of days off).

teshiburu2020 commented 1 year ago

Ok - I think we MAY be there one potential issue with setup_test.py in that when it generated my paths for:

cache_dir - which should have been /mnt/cache/MediaShare real_source - which should have been /mnt/user/MediaShare

it generated these

\mnt\cache\MediaShare \mnt\user\MediaShare

as you can see here settings_test.old.txt

When then running plexcache_test

The following errors occurred

 2023-05-24 08:20:38,108 - ERROR - Error checking free space and moving media files: [Errno 2] No such file or directory: '\\mnt\\user\\MediaShare\\/Movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man and the Wasp Quantumania (2023) WEBRip-1080p.mkv'

And as youc an see in the log file all paths were rendered like this :

plexcache_test_script_latest.old.log

whereas if i "corrected" the settings_test.json file to have the paths like this

/mnt/cache/MediaShare /mnt/user/MediaShare

this was the final settings_test file

settings_test.txt

it seemed to yield positive results in the log file insinutating that content would be moved:

plexcache_test_script_latest.log

teshiburu2020 commented 1 year ago

on further review of the successful log file above i spotted that the cache_dir and real_dir ended up with a slash at the end of the path, and a slash on the media directory as seen here between MediaShare and TV Shows

2023-05-24 08:23:18,421 - INFO - ('/mnt/user/MediaShare//TV Shows/Bitten/Season 2/Bitten.-.S02E10.-.Fine.Temporum.WEBDL-1080p.-.x264 EAC3.mkv', '/mnt/cache/MediaShare/TV Shows/Bitten/Season 2')

The rest of the path seems fine, so i assume tidying up this would allow it to move data :)

EDIT: i removed the trailing slash from the cache_dir and real_source and everything seemed ready to work :) now im 100% sure trhat i didnt add the trailing slash in manually, on those paths, but i may have added a leading slash to the library folders... but this isnt in the settings file?

bexem commented 1 year ago

Sorry I'm a bit confused, probably my brain hasn't woken up completely yet and likely I'm just missing the obvious:

The setup script is giving you exactly what paths?

As far I've understood it gave you:

But then you noticed that the trailing "/" at the end of this path is actually giving you issue with the cache script and if removed it actually works?

Sorry if you have to ELI5 to me, just need another coffee today I guess πŸ€¦πŸ»β€β™‚οΈπŸ˜…

EDIT: I can definitely see the "//" issue in the cache script, I have completely missed it last night, easy to fix. I just need to be sure on what paths the setup is giving you and it should be all easy to fix! πŸŽ‰

EDIT2: In the meanwhile I'm adjusting the cache script to automatically fix the trailing slashes and saving it in the settings file (if someone did not use the setup script for example). I will need a windows user running the cache script to know for sure if it works, but until then I guess it does.

teshiburu2020 commented 1 year ago

Hey - we all have that first thing in the morning wake up issue haha! and it seems i did as well, i absent mindedly typed "Windows"... my brain farted it seems.

Now the settings file looks correct and plexcache seems to work? settings_test.json.txt

plexcache_test_script_latest.log

I'm gonna give the script a run and see what happens :)

bexem commented 1 year ago

So........... I've updated the scripts now...happy to test? I hope it works!!!

teshiburu2020 commented 1 year ago

I will give it a go in a short while :)

teshiburu2020 commented 1 year ago

ok tested, and we seem to have taken a step back. file paths seem ok now. but it was missing

    "watched_move": true,
    "debug": true

settings_test_new.txt

And it decided nothing needed to be moved?

plexcache_test_script_latest (1).log

teshiburu2020 commented 1 year ago

I am wondering if its because some of these are present on cache already? im just running a mover to test will update soon

edit: mover ran, tested again no joy

bexem commented 1 year ago

Setup Script: I've dones quite few tests and both of them work fine, they use the exact same logic as all the other questions asking yes or no, and in fact it works. But I did notice a bug in the watched media cache expiration variable, it now actually asks for the value instead of putting a defined value. Still, I could be wrong and missing the obvious, so I'm keeping an eye on it and doing further tests.

Cache script: I think the error was the new logic to edit the path to make them compatible, it was handling the windows path incorrectly, now it should behave...

Have a look at the new scripts...

EDIT: I've rechanged the logic of the debug question just in case, as I said it was working for me, but that's not good enough, so I've changed it and it will hopefully work for you too.

teshiburu2020 commented 1 year ago

Not sure which of the debug logics i got inbetween you updating and editing, but this time it seemed to work :)

I had a positive looking log file, now to run a test and see if it moves...

plexcache_test_script_latest (2).log

I'm assuming when it says a file has moved if i go to /mnt/cache/MediaShare - the relevant folder i should see the files present there

bexem commented 1 year ago

If you don't mind testing it but it should work.

The log seems fine, it should work and move all the files correctly.

My favourite word apparently is "should" 🀣

PS: I like that Jurassic Park in there!

teshiburu2020 commented 1 year ago

I'm at a bit of a loss as to what some aspects of the log are showing me, but I'm assuming the section after "moving media files to the cache" is what is actually going to move?" because Jurassic park isn't on deck, or watch list anywhere haha

bexem commented 1 year ago

No the Jurassic Park was completely random, I noticed it while scrolling up in the log file. I should have specified πŸ€¦πŸ»β€β™‚οΈ

I'm assuming the section after "moving media files to the cache" is what is actually going to move?

Absolutely yes.

teshiburu2020 commented 1 year ago

I mean cache drive available space is reducing, and the log looks positive

2023-05-24 16:08:42,050 - INFO - Moving media files to cache...
2023-05-24 16:09:01,966 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Gotham/Season 1/Gotham.-.S01E01.-.Pilot.WEBDL-720p.h264.AC3.[EN].-ECI.mkv to /mnt/cache/MediaShare/TV Shows/Gotham/Season 1
2023-05-24 16:09:10,680 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bellevue/Season 1/Bellevue.-.S01E01.-.Pilot.WEBRip-1080p.-.x264 AC3.mkv to /mnt/cache/MediaShare/TV Shows/Bellevue/Season 1
2023-05-24 16:09:50,913 - INFO - Moved file from /mnt/user0/MediaShare/Movies/John Wick Chapter 4 (2023)/John Wick Chapter 4 (2023) WEBDL-1080p.mkv to /mnt/cache/MediaShare/Movies/John Wick Chapter 4 (2023)
2023-05-24 16:09:55,184 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Gifted/Season 1/The Gifted.-.S01E01.-.eXposed.WEBRip-1080p.-.h265 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Gifted/Season 1
2023-05-24 16:12:14,792 - INFO - Moved file from /mnt/user0/MediaShare/Movies/Lazer Team 2 (2017)/Lazer.Team.2.2017.Remux-1080p.DTS-HD.MA.AVC-LEGi0N.mkv to /mnt/cache/MediaShare/Movies/Lazer Team 2 (2017)
2023-05-24 16:12:51,503 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Lord of the Rings - The Rings of Power/Season 1/The Lord of the Rings - The Rings of Power.-.S01E01.-.A.Shadow.of.the.Past.WEBDL-2160p Proper.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/The Lord of the Rings - The Rings of Power/Season 1
2023-05-24 16:12:58,808 - INFO - Moved file from /mnt/user0/MediaShare/Movies/The Super Mario Bros. Movie (2023)/The Super Mario Bros. Movie (2023) HDTV-1080p.mp4 to /mnt/cache/MediaShare/Movies/The Super Mario Bros. Movie (2023)
2023-05-24 16:13:07,979 - INFO - Moved file from /mnt/user0/MediaShare/Movies/Bullet Train (2022)/Bullet.Train.2022.1080p.WEB-HD.x264.6CH-Pahe.in.mkv to /mnt/cache/MediaShare/Movies/Bullet Train (2022)
2023-05-24 16:13:10,593 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Vikings/Season 2/Vikings.-.S02E05.-.Answers.in.Blood.WEBRip-1080p.-.h265 AAC.mp4 to /mnt/cache/MediaShare/TV Shows/Vikings/Season 2
2023-05-24 16:13:40,426 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Mandalorian/Season 1/The.Mandalorian.-.S01E01.-.Chapter.1.The.Mandalorian.WEBDL-2160p.h265.EAC3.[EN+DA+NL+FI+FR+DE+IT+NB+PL+PT+ES+SV].-DEFLATE.mkv to /mnt/cache/MediaShare/TV Shows/The Mandalorian/Season 1
2023-05-24 16:14:18,639 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Wheel of Time/Season 1/The Wheel of Time.-.S01E01.-.Leavetaking.WEBRip-1080p.-.x264 EAC3 [EN+AR+CS+DA+DE+EL+ES+FI+fil+FR+HE+HI+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TA+TE+TH+TR+ZH].mkv to /mnt/cache/MediaShare/TV Shows/The Wheel of Time/Season 1
2023-05-24 16:14:26,124 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Wednesday/Season 1/Wednesday.-.S01E01.-.Wednesdays.Child.is.Full.of.Woe.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/Wednesday/Season 1
2023-05-24 16:14:41,536 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Angie Tribeca/Season 1/Angie Tribeca.-.S01E01.-.Pilot.WEBDL-1080p.-.h264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Angie Tribeca/Season 1
2023-05-24 16:14:49,911 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Order/Season 1/The Order.-.S01E02.-.Hell.Week.2.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/The Order/Season 1
2023-05-24 16:14:56,335 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bull (2016)/Season 1/Bull (2016).-.S01E01.-.The.Necklace.WEBRip-1080p.-.h265 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bull (2016)/Season 1
2023-05-24 16:15:22,344 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Shadow and Bone/Season 1/Shadow and Bone.-.S01E01.-.A.Searing.Burst.of.Light.WEBDL-2160p.-.HEVC EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/Shadow and Bone/Season 1
2023-05-24 16:15:32,605 - INFO - Moved file from /mnt/user0/MediaShare/Movies/The Hobbit (1977)/The Hobbit (1977) WEBDL-720p.mkv to /mnt/cache/MediaShare/Movies/The Hobbit (1977)
2023-05-24 16:15:43,890 - INFO - Moved file from /mnt/user0/MediaShare/Movies/Ant-Man and the Wasp Quantumania (2023)/Ant-Man and the Wasp Quantumania (2023) WEBRip-1080p.mkv to /mnt/cache/MediaShare/Movies/Ant-Man and the Wasp Quantumania (2023)
2023-05-24 16:16:10,533 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Mayor of Kingstown/Season 1/Mayor of Kingstown.-.S01E01.-.The.Mayor.of.Kingstown.WEBDL-2160p Proper.-.x265 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Mayor of Kingstown/Season 1
2023-05-24 16:16:27,177 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E06.-.Nine.Circles.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:16:38,686 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E07.-.Bad.Dreams.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:16:51,163 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E08.-.Dark.Arts.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:17:04,918 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E09.-.Scavengers.Daughter.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:17:19,064 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 2/Bitten.-.S02E10.-.Fine.Temporum.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 2
2023-05-24 16:17:41,335 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bitten/Season 3/Bitten.-.S03E01.-.Family.Of.Sorts.WEBDL-1080p.-.x264 EAC3.mkv to /mnt/cache/MediaShare/TV Shows/Bitten/Season 3
2023-05-24 16:17:48,664 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E02.-.Dance.Dance.Resolution.WEBDL-1080p.-.h264 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:17:56,234 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E03.-.Team.Cockroach.WEBDL-1080p.-.h264 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:05,308 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E04.-.Existential.Crisis.Bluray-1080p.-.x264 DTS [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:14,008 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E05.-.The.Trolley.Problem.Bluray-1080p.-.x264 DTS [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:20,950 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E06.-.Janet.and.Michael.WEBDL-1080p.-.h264 EAC3 [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:29,322 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/The Good Place/Season 2/The Good Place.-.S02E07.-.Derek.Bluray-1080p.-.x264 DTS [EN].mkv to /mnt/cache/MediaShare/TV Shows/The Good Place/Season 2
2023-05-24 16:18:38,545 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E15.-.The.Princess.and.the.Pear.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:18:45,983 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E16.-.The.Bones.That.Foam.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:18:53,510 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E17.-.The.Salt.in.the.Wounds.WEBDL-1080p.-.h264 AC3.mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:00,724 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E18.-.The.Doctor.in.the.Den.WEBDL-1080p.-.h264 AC3.mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:07,870 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E19.-.The.Science.in.the.Physicist.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:13,538 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Bones/Season 4/Bones.-.S04E20.-.The.Cinderella.in.the.Cardboard.WEBDL-1080p.-.h264 AC3 [DA+NB+SV+FI+EN].mkv to /mnt/cache/MediaShare/TV Shows/Bones/Season 4
2023-05-24 16:19:17,876 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E04.-.The.Fight.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:21,875 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E05.-.The.Calling.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:27,803 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E06.-.The.Pyramid.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:32,344 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E07.-.The.Storm.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:36,073 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/1899/Season 1/1899.-.S01E08.-.The.Key.WEBDL-1080p.-.h265 EAC3 Atmos.mkv to /mnt/cache/MediaShare/TV Shows/1899/Season 1
2023-05-24 16:19:51,223 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Stranger Things/Season 4/Stranger Things.-.S04E04.-.Chapter.Four.Dear.Billy.WEBDL-1080p.-.HEVC EAC3 Atmos [EN+AR+CS+DA+DE+EL+ES+FI+FR+HE+HR+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TH+TR+UK+VI+ZH].mkv to /mnt/cache/MediaShare/TV Shows/Stranger Things/Season 4
2023-05-24 16:20:05,926 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Stranger Things/Season 4/Stranger Things.-.S04E05.-.Chapter.Five.The.Nina.Project.WEBDL-1080p.-.HEVC EAC3 Atmos [EN+AR+CS+DA+DE+EL+ES+FI+FR+HE+HR+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TH+TR+UK+VI+ZH].mkv to /mnt/cache/MediaShare/TV Shows/Stranger Things/Season 4
2023-05-24 16:20:20,541 - INFO - Moved file from /mnt/user0/MediaShare/TV Shows/Stranger Things/Season 4/Stranger Things.-.S04E06.-.Chapter.Six.The.Dive.WEBDL-1080p.-.HEVC EAC3 Atmos [EN+AR+CS+DA+DE+EL+ES+FI+FR+HE+HR+HU+ID+IT+JA+KO+MS+NB+NL+PL+PT+RO+RU+SV+TH+TR+UK+VI+ZH].mkv to /mnt/cache/MediaShare/TV Shows/Stranger Things/Season 4
bexem commented 1 year ago

Nice! Yeah the command is correct, path look fine and as you've said the space is actually decreasing.. I shall wait for your confirmation to call it a win!

teshiburu2020 commented 1 year ago

image

Success on the scripts end.

and the cache drive concurs

image

bexem commented 1 year ago

So now if you run it again it will said nothing to be moved, right? And you are happy about the fact that there is nothing to be moved from cache to array?

teshiburu2020 commented 1 year ago

Second run says nothing to move to cache, and nothing to move to array.

image

I suppose with this - the only "issue" is to determine when to run this alongside unraids mover?

bexem commented 1 year ago

I suppose so. The mover would move back all the media residing on the cache drive if configured to do so, ignoring the script all togheter. I am using the plugin Mover Tuning for this reason:

Screenshot 2023-05-24 at 16 29 00

And I also run the script in chronos docker container in with chron, running it every X hours.

teshiburu2020 commented 1 year ago

So you move all from cache when you get above 80% usage on your cache drive?

bexem commented 1 year ago

Basically yes, I've never reached that threshold yet as the script also moves the files back to the array so the drive keep enough space free. Of course it means you need to have a good backup measures because you have no parity on the cache drive as you do with the array.

teshiburu2020 commented 1 year ago

Yeah - ive got backblaze running on that so not an issue there for backups i dont think.

ok - Chronos i couldnt get my head around not to mention having just done all the scripts in my system drive haha!

bexem commented 1 year ago

Yeah - ive got backblaze running on that so not an issue there for backups i dont think.

Yeah that should be more than enough!

ok - Chronos i couldnt get my head around not to mention having just done all the scripts in my system drive haha!

I can post the screenshots of my chronos configuration if it is of any help?

teshiburu2020 commented 1 year ago

Yeah - ive got backblaze running on that so not an issue there for backups i dont think.

Yeah that should be more than enough!

ok - Chronos i couldnt get my head around not to mention having just done all the scripts in my system drive haha!

I can post the screenshots of my chronos configuration if it is of any help?

Oh yeah that would really help!

bexem commented 1 year ago

Screenshot 2023-05-24 at 16-45-52 Chronos Screenshot 2023-05-24 at 16-45-33 Chronos Screenshot 2023-05-24 at 16-44-10 Tower_UpdateContainer

Use chron.guru For the chron syntax

teshiburu2020 commented 1 year ago

image

Looks good to me - you Mr Bexem have earnt many cups of coffee :)

bexem commented 1 year ago

WOW thank you!!! ❀️ I'm so glad we managed to fix it!!

I'm still improving it as we speak but mostly for windows users, I will then merge our achievements to the main script.

I shall close the issues now, but feel free to contact me (I'm sure I've put my discord on my website) if you need a hand or if script related, just open another issue!

teshiburu2020 commented 1 year ago

Spot on no worries, ill reach out with issues dont worry haha!

When you do update the cache script i just paste it back into Chronos right :)

bexem commented 1 year ago

Spot on no worries, ill reach out with issues dont worry haha!

When you do update the cache script i just paste it back into Chronos right :)

Hey, thank you again for the support! I just wanted to ask a small favour: In case you have a couple of minutes, would you mind testing the new _rc scripts? Testing branch I just want to be sure they work for you as well before merging. I've left the old _test scripts as failover because I know they work for both of us.

PS: You are now mentioned in the script ☺️

teshiburu2020 commented 1 year ago

Sure thing ill take a look for you in a bit, been one of those days here so far!

teshiburu2020 commented 1 year ago

Managed to test all of these _rc releases and they work perfectly

bexem commented 1 year ago

Managed to test all of these _rc releases and they work perfectly

Amazing! Thank you so much for testing them out!!!

They are now completely merged in the main branch (I was ready to backtrack!).

teshiburu2020 commented 1 year ago

No worries sorry for the delay in letting you know, I wanted to let it run a few days :)