New Setup for Offline Browsing ZIP File Backup

2025-05-11 - [54] 2:22

For about 9 months now, my Website and Gemini capsule data has been available to browse offline. I posted about this in August of last year.

My Site Is Now Available Offline

Until today, my ZIP file generation script was a python script that created a new ZIP file each and every time. That's not efficient, especially because I was repeating work each time by including every file anew. Well, now I have fixed that problem! Only files that have changed will get added, updated, or removed from the ZIP file now, saving a LOT of work and a LOT of processing time. On my raspberry pi server, it would take well over a minute to generate the ZIP file each and every time, but now it's only a few seconds or less.

As a result of the change, the directory at the root of the ZIP file is now just `vigrey.com/` instead of `vigrey.com-YYYY-MM-DDTHH:MM:SSZ/`.

Also, instead of using a complicated python script, I'm now using a bash script and the `zip` command. This all feels a lot cleaner to me. All in all, I'm pretty darn happy with the progress I have made on my Website, Gemini Capsule, and Git Forge, and backup ZIP file handler. It all feels a bit like Spring cleaning to me.

Contact/Reply

If you would like to reply to this post, feel free to send me an email.

Email: vi@vigrey.com

PGP Public Key [515F AD67 F931 0A2B 9B93 CE19 814F ECB1 A398 63CE]


Source