I specifically wanted to avoid the installation headaches that come with something like scoop. Scoop is a nightmare to install. I dread the day I'm going to have to move husi to a new server.
Mastodon comes with a Docker image installation option. You download a few things, change a config file or two, run a few commands and there's your new instance.
Works great. Unless you miss the part in the config file where it says "uncomment this to make your database image persist".
Or something like that.
So you test it out, reboot the server, everything is still there. Off you go.
Then you come to update it. You're not really sure where all the files are that you need to back up, so you take a snapshot of the machine (VMs are good for something). You find the media files, but the database is a bit of a mystery.
Where are the physical files. Why can't you use a database program to do a dump of the database?
Then, after you type "docker-compose down" do you find out what that line you didn't uncomment in the config file is for. They really weren't kidding. You start up your instance again and it's all gone. The database is empty.
So you restore your snapshot, and start again. You dig into docker to try and find out where your physical files are, or how to connect to the database server (hint, you can't without changing some config, which requires restarting the image, which blows away your database)
You wait, you read, you learn, you try again. You do some hopeful searching and find some stack overflow questions where people are asking things like "how do I connect to a running docker instance".
Using that you manage to find a way to connect to your database "server" and make a copy of the database files. Eventually you find a way to point your database "server" at those physical files and get it to use them consistently.
You discover that "redis" isn't just like memcached, and actually mastodon needs it to be persistent as well, so you use your new found knowledge to copy its physical files as well, and put them somewhere you can actually get to without jumping through hoops.
So, finally hulvr.com is running the latest version of Mastodon. Doesn't look too different. You can download all your stuff now, and delete your own account. Toots are a bit prettier since it leaves out horrible looking urls when you post pictures etc now.
And, I have a way to keep it up to date now. Woo, and indeed, hoo.
|< Look at the sky, look at the river | The cop on the corner and the burglar too >|