Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker 部署时如何方便地备份和导入数据? #34

Open
aecra opened this issue Feb 10, 2022 · 9 comments
Open

Docker 部署时如何方便地备份和导入数据? #34

aecra opened this issue Feb 10, 2022 · 9 comments
Labels
docker issues about docker image enhancement New feature or request

Comments

@aecra
Copy link

aecra commented Feb 10, 2022

看了看文档并没有这方面的描述。

@cubicwork
Copy link
Contributor

@aecra 目前还没有自动备份和备份导入的功能,如果你希望能定期备份仓库,可以参照 #17 中的描述。

@cubicwork cubicwork added docker issues about docker image enhancement New feature or request labels Feb 10, 2022
@wssnail
Copy link

wssnail commented Feb 11, 2022

目前只发现了/data/www/codefever-community/git-storage/目录,不过没看到文件存储在哪里,是只需要将这个目录完整备份就可以了吗

@cubicwork
Copy link
Contributor

@wssnail 这个目录是所有仓库的备份,每一个目录都是一个 git 仓库。 只要保留这个目录里所有文件的备份和数据库完整备份就可以完成备份工作。

@li-wilbur
Copy link

建议增加docker部署方式的详细参数,比如持久化目录,哪些目录需要挂载到本地,防止容器重启丢失数据。

@du5
Copy link

du5 commented Feb 24, 2022

docker-compose 容器部署比较好吧 现在 all-in-one 确实不太行

@LuoCang
Copy link

LuoCang commented May 7, 2022

@wssnail这个目录是所有仓库的备份,每一个目录都是一个 git 仓库。 只要保留这个目录里所有文件的备份和数据库完整备份就可以完成备份工作。

我使用docker镜像安装的 这个data目录为空呢,

@cubicwork
Copy link
Contributor

cubicwork commented May 7, 2022

@LuoCang 所有的项目工程都在 /data 目录下,如果项目可以正常启动 这个目录一定不为空。

@203579397
Copy link

我把/data/www/codefever-community/git-storage这个目录挂载到外面,就无法新建仓库了

@node-c
Copy link

node-c commented Feb 18, 2023

我把/data/www/codefever-community/git-storage这个目录挂载到外面,就无法新建仓库了

给外面的目录授权就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker issues about docker image enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants