News for hackers. Stuff that matters.
Re:Ask HN: What's on your home server? by natebc on Friday January 06, 2023 @05:29PM (#34282199)
I just do this. Update the ubuntu line every 2 years or so. This runs as a cronjob on my synology with the working directory set to a directory that the Synology "Download Station" is watching. It picks up the torrents and does its thing. I come in every now and then and clean out the dot releases. It's not the best but it's not the worst either.

  #!/bin/bash
  wget -nH --cut-dirs=4 -r -l1 --no-parent -R "*.tmp" -A "*.torrent" https://cdimage.debian.org/debian-cd/current/amd64/bt-dvd/
  wget -nH --cut-dirs=4 -r -l1 --no-parent -R "*.tmp" -A "*.torrent" https://cdimage.debian.org/debian-cd/current/amd64/bt-cd/
  wget -nH --cut-dirs=4 -r -l1 --no-parent -R "*.tmp" -A "*.torrent" https://releases.ubuntu.com/22.04/
  rm *-DVD-{2,3}.iso.torrent debian-mac-*.torrent *.tmp *.loaded
Re:Ask HN: What's on your home server? by c0wb0yc0d3r on Tuesday January 10, 2023 @09:55AM (#34325744)
Wow, thanks!

Much simpler than my glue using changedetection.io and huginn.

I also learned some new tricks with wget.

For others interested: https://explainshell.com/explain?cmd=wget+-nH+--cut-dirs%3D4...