feat: add backup and restore support #65

Open
ChasquiLabo wants to merge 1 commits from escuela-comun/mastodon:integracion-backup-bot-two-pr into main
First-time contributor

Summary

Adds Backup Bot Two backup and restore support to the Mastodon recipe.

The implementation backs up Mastodon's persistent application data and uses pg_dump to create a consistent PostgreSQL backup.

Changes

  • Back up the Mastodon application volume.
  • Exclude Redis.
  • Add pg_backup.sh for PostgreSQL backup/restore.
  • Store only backup.sql.
  • Restore PostgreSQL using a post-restore hook.
  • Add ENABLE_BACKUPS.

Testing

Tested in the Abya Yala CoopCloud environment with a real Mastodon instance containing a user, post and media attachment.

I created a snapshot, deleted the application and its volumes, recreated the instance from scratch, and restored it successfully. The user, post, media and database content were recovered correctly.

I worked on the implementation, debugging and recovery testing with help from ChatGPT.

Summary Adds Backup Bot Two backup and restore support to the Mastodon recipe. The implementation backs up Mastodon's persistent application data and uses `pg_dump` to create a consistent PostgreSQL backup. Changes - Back up the Mastodon application volume. - Exclude Redis. - Add `pg_backup.sh` for PostgreSQL backup/restore. - Store only `backup.sql`. - Restore PostgreSQL using a post-restore hook. - Add `ENABLE_BACKUPS`. Testing Tested in the Abya Yala CoopCloud environment with a real Mastodon instance containing a user, post and media attachment. I created a snapshot, deleted the application and its volumes, recreated the instance from scratch, and restored it successfully. The user, post, media and database content were recovered correctly. I worked on the implementation, debugging and recovery testing with help from ChatGPT.
ChasquiLabo added 1 commit 2026-11-10 19:03:27 +00:00
feat: add backup and restore support
continuous-integration/drone/pr Build is failing
a41c0e0999
Some required checks failed
continuous-integration/drone/pr Build is failing
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u https://git.coopcloud.tech/escuela-comun/mastodon integracion-backup-bot-two-pr:escuela-comun-integracion-backup-bot-two-pr
git checkout escuela-comun-integracion-backup-bot-two-pr
Sign in to join this conversation.