Kryten ☕️ :flag_ca: is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

I've detected some errors with my installation, so I need to rebuild everything. It would take a couple of days, I'm a busy man at this moment.

Thanks to people who is already registered (but they can't activate their accounts). Service will be on soon! #mastodonhispano

If anyone knows how to backup a docker database, It would be nice!

Kryten ☕️ :flag_ca: @Kryten

@jsalvador backup scenes for docket containers are many and varied as for servers. If you don't mind taking your instance down periodically it can be as simple as copying you're db files on the host. If you want to keep the installer up it gets more complicated...

@Kryten I need to rebuild everything, so I don't mind taking the instance down for a while.

DB files seems like a bunch of migration instructions. I don't see anything about content of database :(

@jsalvador First, let me say I haven't looked at the mastodon code, so I don't know much about it. But in general, the migrations are instructions to the database to set up the tables the way the application wants them. The users will then fill in those tables with their user information, toots, etc. That's the stuff you want to back up - the migrations let you rebuild an empty database at any time, but the data is what's important.

@Kryten Reading the Mastodon's docs, I've found another solution, but I don't like it... Dumping the database with pghero (implemented at docker container, I guess).

So I need to backup both: migrations and dump files. Anyway, thanks for your help! It was very useful!

@jsalvador Now, depending on the database server used by mastodon and how they're configured, the database can be stored in several different places. One common database is MySQL. The actual data is (usually) stored in /var/lib/mysql and (in some cases) can be backed up just by copying those files. With MySQL you could also use the mysqldump command to save all the data in an SQL file. So, it's a bit more of a project than I can explain in 500 characters...

@Kryten Don't worry. I have a lot of experience with MySQL databases, but not with Docker, PostgreSQL or Redis. The concepts are extrapolable.

@jsalvador Good. The only trick with Docker is finding the files. They're actually stored in your host file system, but they can be tricky to find. The "docker cp" command lets you copy files to/from an existing container.