mgx

backing up my bearblog with a telegram bot

I use bearblog.dev directly to jot down all of my blog posts. And I am not properly backing up the content outside of Bear. To address this, I created a simple Telegram bot that pushes backups of my blog posts to my server and other services. The bot only responds to the /update command from my Telegram ID.

It retrieves the latest CSV export from Bear, converts each blog post into neatly formatted Markdown files with front matter, and uploads/syncs them to a directory on my server, GitHub, and my cloud storage provider.

I also set up a basic PHP script to render these Markdown files -- just in case. I've also set the no index meta tags and canonical URLs to avoid confusing search engines with the backup domain mgx.my.id.

#bear blog #technology