pbowden-msft / MAUCacheAdmin

Microsoft AutoUpdate Cache Admin
70 stars 15 forks source link

Possible to add cleanup? #33

Open matthewbassett opened 3 years ago

matthewbassett commented 3 years ago

Hi, wondering if it would be possible to add some automatic cleanup of older packages into the script? I keep running into issues where my cache is growing a bit too big, and I manually go through and clean out some older packages to free space. Thoughts? Thanks again for an awesome script (: Matt

kevinmcox commented 3 years ago

Deja Vu! I was just thinking about this same thing earlier in the week (now that I plan to convert my server to caching only and use one of the Microsoft curated custom URLs for delaying updates).

I was going to just do a separate script, but if others are interested it would make sense to incorporate it into MAUCacheAdmin.

nixtar commented 3 years ago

I've written a powershell script based on MAUCacheAdmin that syncs the repo (including cleaning up old files, robocopy /mir style).

I've validated it on PS5.1 and also 7 so it's not exclusive to Windows. My plan was to eventually replicate the full MAU Cache Admin functionality but in the form of a powershell module.

My motivation for the project has kind of died off as my use case is currently just to sync the repo for caching and its doing its job for now.

If this sounds useful to anyone please let me know and it might be motivation enough for me to at least clean up what I have currently for syncing the updates.

kevinmcox commented 3 years ago

Submitted #34 to address this request.