Proxmox

Speed up homelab patching with a CACHE



Today I’m setting up a simple nginx proxy, so I can store updates used by my many Linux systems. Most of them run a derivative of …

[ad_2]

source

Related Articles

33 Comments

  1. While looping over files with find, variable mirror gets emptied after first loop. This results in first file to be ok and subsequent files to write incomplete URLs. I am however not familiar with bash scripting enough to explain why. Edit: Also in your blog you place nginx log files in /var/debcache/ but at the end of blog you tail files in /etc/debcache/

  2. Very nice video and overall good idea! I personally like Ansible more than a shell script – especially because you plan to reconfigure all your servers. But that doesn't matter as long as it works for you. 🙂

  3. Man I was just reading about this. Does anyone know how this compares to something like a Squid cache in pf/OPNsense? I've been planning on getting a dedicated machine for *sense, wondering how much I need to worry about storage on it.

  4. For reference, the .sources files are deb822 format.

    Its intended to reduce the need for separate keyring files, iirc.

    Also, I can't help but want to try and write an ansible playbook to replace that bash script.😂

  5. I was actually recently thinking about looking into caching for fun, but decided it was too much work for not enough gain. Thanks a bunch, it's now basically a turnkey solution for me (not quite, but close enough), so that equation has flipped and I can "just do it". Neat!

  6. long time ago I thought about the same but honestly it is a lot to set up – I am surprised nobody made it yet as a package or container that are already preconfigured

  7. Was running apt-cacher-ng on a Pi, before, and a Debian vm most recently. This was 'easier' to set up, mostly. I have a dozen or so iron and vm Debians, and at least that many Pis. Took less than an hour to spin up a minimal VM and install, another 20-30 minutes to get the rest set up, and it's cooking away for them all. It'd be nice to have a text doc with what needs to be changed on your scripts from your domain and particular setup, but other than that, very nice.

  8. Hmm.. not in a place to try this, but one might rewrite all repos, but put the repo hostname as first part of the URL, where one can extract it in the nginx config again, making it able to cache arbitrary repos.

  9. Sweet! This actually gave me some ideas about copying the config files onto my fresh Debian installs. I was using self hosted gitea but having a simple wget command and piped it to bash is a better idea.

  10. I just really liked the nginx-fu needed to get this working. Learned a lot there. Have only like one Ubuntu server in Proxmox, and one unRAID which doesn't really benefit from caching

  11. Now that i have more than 20 LXCs i'm starting to automate updates with ansible and this will come handy to save some bandwidth (not that I'm behing a metered connection, but if the servers are up 24/7 better put them to good use). Thanks for the video.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button