My existing home/dev install of Seafile is running Seafile 10.x Pro on bare metal Centos v7 which is of course EOL. So I’m looking at build a new Linux VM. Aside from which distro to use (a separate topic in itself), I’m planning to leverage docker tech as Seafile bare metal upgrades make my head hurt! I’ve often considered sticking pins in my eyes in preference to a Seafile bare metal upgrade
But I’d prefer to migrate the entire configuration and data across. Any guides on this? I’m assuming the Seafile server stores it’s data in a both the MariaDB databases and the Seafile folder.
Bumping this - it must be a reasonably common requirement? I’ve had a look on https://manual.seafile.com/ and there isn’t anything there. Allied to this is migrating Seafile to a new server with a bare metal install. My thoughts are rsync (maybe) the folder to the new server and backup/restore the MariaDB database.
I made a post about how I upgraded from non-docker v11 to docker v12. You will want to setup a test setup without data first to test with, and then do the setup again but with your data. Also make sure you have an undo plan (backups, snapshot the VM, zfs snapshot, whatever).
I dislike docker, so the instructions talk about using podman instead. I think you can just skip the podman parts, and look at how I moved the data to make an upgrade work for me.
Since writing this, I have moved the database into a podman container too (not because I like it, but it fixed a bug where sometimes seafile would start before the database was ready). I also stopped bypassing the nginx built into the docker image. I don’t like it, but it should make future updates easier.