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.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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_dumpto create a consistent PostgreSQL backup.Changes
pg_backup.shfor PostgreSQL backup/restore.backup.sql.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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.