usememos / memos

An open source, lightweight note-taking service. Easily capture and share your great thoughts.
https://usememos.com
MIT License
30.31k stars 2.27k forks source link

关于改变储存路径,改动无反应 #3917

Closed asasn closed 1 week ago

asasn commented 1 week ago

Describe the bug

image 试图从数据库的方式改变成为文件系统,这样改变之后,下次启动,仍然还是使用sqlite

Steps to reproduce

我不确定是否跟我的部署方式有关,我是在win10系统上面,自行编译和部署的,并没有通过docker…… 如果是的话,应该用什么办法手动迁移一下?

The version of Memos you're using.

0.22.5

Screenshots or additional context

No response

Issues-translate-bot commented 1 week ago

Issue is not in English. It has been translated automatically.


Title: Regarding changing the storage path, the change does not respond.

RoccoSmit commented 1 week ago

How are you identifying the storage method did not change? Is it not changing on the ui or your resources are not stored in the new location?

asasn commented 1 week ago

How are you identifying the storage method did not change? Is it not changing on the ui or your resources are not stored in the new location?

I was deployed locally and I didn't see any changes in the folder, still using memos_dev.db I'm not sure if my deployment is wrong? image

image I created this folder myself

RoccoSmit commented 1 week ago

Your memo text and general information to run the site will live in your db. The storage setting is for resources such as images or documents. I see you have the assets folder. Local storage files will go in there

asasn commented 1 week ago

Your memo text and general information to run the site will live in your db. The storage setting is for resources such as images or documents. I see you have the assets folder. Local storage files will go in there

I know the new assets will be there, but... Maybe I have not stated clearly, how can I transfer the old data to the past? It was stored in .db file Wait, it seems that manual migration is only possible through database operations! I found blob, reference fields in the table resource... Maybe I can do it from here But I still want to add one-click migration to the frontend

lincolnthalles commented 1 week ago

Your memo text and general information to run the site will live in your db. The storage setting is for resources such as images or documents. I see you have the assets folder. Local storage files will go in there

I know the new assets will be there, but... Maybe I have not stated clearly, how can I transfer the old data to the past? It was stored in .db file Wait, it seems that manual migration is only possible through database operations! I found blob, reference fields in the table resource... Maybe I can do it from here But I still want to add one-click migration to the frontend

Changing the storage location won't affect existing assets. They stay where they were first saved, as there is no automated migration built in.