Mastodon: Manual backups

Prepare the folder

  1. Log in as root
  2. cd /home/mastodon
  3. mkdir backups
  4. cd backups

Making the backup

  1. Database (two steps)
    su - mastodon
    pg_dump -U mastodon mastodon_production -F t > DATE_FILENAME.tar
  2. Settings file (two steps)
    exit
    cp /home/mastodon/live/.env.production /home/mastodon/backups/DATE_.env.production
  3. Redis
    cp /var/lib/redis/dump.rdb /home/live/backups/DATE_dump.rdb

If you wish to backup your assets like images and stuff (User-uploaded files), backup the folder named “public/system”. Keep in mind that this folder can be rather large. Actually, it can become rather massive.

Loading

Garden sheds and stuff

Some stuff I get inspiration from:

https://www.lowes.com/n/how-to/she-shed
https://www.familyhandyman.com/project/how-to-build-a-portable-sauna/
http://thegardenfrog.me/my-300-rustic-picket-garden-shed/
https://www.buitenlevengevoel.nl/zelf-een-tuinhuis-bouwen/

Do Not Buy Ted’s 16,000 Woodworking Plans without Reading This

Spoiler: It’s a very terrible scam. More: https://3xn.nl/projects/2022/08/23/do-not-buy-teds-woodworking/

Loading

Mastodon: “There are pending database migrations. Please run them to ensure the application behaves as expected”

“There are pending database migrations. Please run them to ensure the application behaves as expected” or “Niet alle databasemigraties zijn voltooid. Je moet deze uitvoeren om er voor te zorgen dat de applicatie blijft werken zoals het hoort” can be solved with the following command, executed as user mastodon:

1.
su - mastodon
2. 
cd live
3.
RAILS_ENV=production bundle exec rails db:migrate

results in:

Loading