Transfer an instance to an other server

I am runnig an recent Akkoma instance on a Raspi4 - it is running w/o problems.

Now I would like to transfer this instance to an other server (hosting provider).

What is the best and safest way to make such a transfer?

  1. Database
  2. Files (uploads)
  3. Configuration
  4. what else?

Thanks.

ah this is something i’ve done a few times - it’s pretty easy actually

process is more or less:

  1. turn off akkoma - systemctl stop it (or however you run it)
  2. make a database dump. pg_dump is your friend here - pg_dump -d akkoma -Fc -f akkoma_backup.sqlor similar will serve you well
  3. transfer files. copy over your entire akkoma directory, the backup file, and any external directories (like uploads if you put them anywhere non-default)
    == change hosts here ==
  4. restore backup. inverse of above. pg_restore -Fc -d akkoma akkoma_backup.sql
  5. open up your config file and correct any paths that changed in the migration. if you’re still at like /opt or wherever then this should be fine
  6. basically do the install process again but don’t bother setting up the database, you’re good

Thanks.

That seems to be a bit more complicated. According to the instructions here
Installing on Linux using OTP releases - Akkoma Documentation ,
there are ‘akkoma’ files in various locations.
/opt/akkoma
/var/lib/akkoma
/etc/akkoma

ah, the OTP release. pretty similar, just has the external config file and uploads in a weird place. wonder why it’s in /var/lib

but same dealio