Hello Lemmy people,

I’m trying to wrap my head around where editable files ultimately ‘live’ after Ansible install to a VPS.

For example:

  1. If you want to modify a specific cell in a Postgres table using Arctype (or another SQL GUI) - would you be:
  • directly modifying the VPS instance?
  • or modifying a mirrored database on your local computer?

  1. If you setup Lemmy using a ‘1 year free trial’ from a VPS (like digital ocean)…and then want to migrate the Lemmy instance to another VPS (like Hetzner), would you be:
  • ‘pushing’ the custom Lemmy instance from your local computer to a new VPS?
  • or directly migrating the files from one VPS to the other?

I realize these are noob questions.

Thank you for your patience.

Lemmy looks really cool.

@masterofballs
link
fedilink
2
edit-2
7M

The ansible install just installs lemmy via docker-compose. All your files will be stored in,

/srv/lemmy/DOMAINNAME

The database files and pictures are stored in In a folder called Volumes.

To move lemmy you can just move that volumes directory. If you change domain names you’ll have to run some scripts on your data. I do this to run a production db locally. Changing all the references to the domain name to 0.0.0.0 or what ever the new domain name is

@picoblaanket
creator
link
fedilink
2
edit-2
7M

Thank you for the reply.

To ensure I understand:

  1. Ansible installs lemmy on the VPS via docker-compose. The directory “/srv/lemmy/DOMAINNAME” lives on the VPS.

  2. Within that directory is a folder called “Volumes”.

  3. To migrate - I make a fresh Lemmy install on a new VPS, modify config, and move the “Volumes” folder from VPS1 to VPS2.

Is that correct?

Yeah that sounds right. If you run into any problems just ask here and someone will answer.

@picoblaanket
creator
link
fedilink
27M

Cool, thank you again.

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.

  • 0 users online
  • 1 user / day
  • 20 users / week
  • 47 users / month
  • 193 users / 6 months
  • 1.42K subscribers
  • 409 Posts
  • 2.92K Comments
  • Modlog