usememos / dotcom

https://www.usememos.com website
https://www.usememos.com
28 stars 51 forks source link

Is it possible to provide a tutorial for data backup or migration? #143

Open eMUQI opened 2 months ago

eMUQI commented 2 months ago

Describe the solution you'd like

I checked the issue list and noticed that the developers have clearly stated that memos will not provide backup or export functionality for the time being (#3843, usememos/memos#3802, usememos/memos#2636, usememos/memos#2965). I understand this is an open-source project, and the author has the right to freely decide whether or not to adopt suggestions from the community. I respect that.

Currently, I'm facing a challenge and would like to ask if there are any tutorials available on how to export all records stored in memos. I hope to export the data and redeploy memos on a new device. If direct exporting isn't possible, I'm also very willing to accept any method that can save the data locally.

Below is my configuration file, but there's no data under ~/Docker/memos/data.

version: "3.0"
services:
  memos:
    image: neosmemo/memos:stable
    restart: unless-stopped
    container_name: memos
    volumes:
      - ~/Docker/memos/data/:/var/opt/memos
    ports:
      - 80:5230

Thank you very much for your help and support! Looking forward to receiving your valuable advice.

Type of feature

Documentation

Additional context

No response

RoccoSmit commented 2 months ago

What are you using for storage (s3 vs local) and what db are you using.

A default install should have all your files (sqlite db file and cache folder for thumbnails) stored under ~/Docker/memos/data/. If you use local storage you should see an assets folder as well for resources.

You can lift and shift the files in this directory to the directory set for your new instance and things should work as normal.

I believe the above changes if you use S3 for storage and non sqlite dbs