httpd-ack Dumping Script
I recently got a broadband adapter, and have been dumping my collection. One of the dumping guides linked a script by darcagn, and it generally does what you'd want it to do with automating most of the workflow. I wanted it a step further so I had less to worry about on the filesystem, and made some modifications to the script:
https://github.com/BigRobotBil/scripts/blob/main/bash/dcdump.sh
Originally I was going to translate it to Powershell for fun, but I kept running into some annoyances where Powershell just wouldn't support what wget does on a single line without being overly complicated. I settled for just modifying the behavior of the original script to do the following:
- Extract the title from the index.html
- Create a folder with that name (sanitize it if there's special characters)
- Move everything to that folder
With this method, you can just keep calling dcdump.sh <your Dreamcast's IP> over and over without having to cleanup the current directory or anything. I have been running it via Debian under WSL on Win10 without issues. The checksum verification can likely be removed if you don't care about it.
Everything else is largely the same, however. I didn't need to post this information anywhere, so I stripped out all of the postinfo.txt generation, and left the index.html as a point of reference. I checked a few dumps generated by this with my GDEmu clone, and they worked without issue (the ones generated when I dumped via the SD method didn't for whatever reason).