AFFiNE icon indicating copy to clipboard operation
AFFiNE copied to clipboard

How to change local data directory?

Open LjyYano opened this issue 3 years ago • 4 comments

LjyYano avatar Feb 13 '23 08:02 LjyYano

@darkskygit maybe this is a guide intro about docker

tzhangchi avatar Feb 13 '23 14:02 tzhangchi

@LjyYano Hi, could you give more introduction about your problem?

tzhangchi avatar Feb 13 '23 14:02 tzhangchi

@LjyYano Hi, could you give more introduction about your problem?

  1. 我是否可以在本地查看笔记存储的文件夹?
  2. 我是否可以指定笔记在本地存储的位置?(case:换电脑 or 自行云备份)

LjyYano avatar Feb 14 '23 02:02 LjyYano

@LjyYano Hi, could you give more introduction about your problem?

  1. 我是否可以在本地查看笔记存储的文件夹?
  2. 我是否可以指定笔记在本地存储的位置?(case:换电脑 or 自行云备份)

Simply put, if you use docker to start the container, you only need to add -v [LOCAL_PATH]:/app/data after docker run. Your data will be saved in [LOCAL_PATH].

For a more detailed tutorial, please refer to here: https://community.affine.pro/c/user-guide/self-host-affine-with-docker-pre-alpha-and-alpha-local-setup-user-guide

The docker version is designed to run in a server, and you can indeed synchronize container data in multiple devices through cloud services, but we recommend that you should run it in a server, or wait for our client release.

Our client can save data locally and move it between devices through cloud synchronization, or synchronize data through the docker server.

darkskygit avatar Feb 14 '23 07:02 darkskygit