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容器同时备份2个本地目录到阿里云盘? #400

Closed
ncist2011 opened this issue Mar 25, 2024 · 2 comments
Closed

Comments

@ncist2011
Copy link

No description provided.

@xiaoyaofenfen
Copy link
Collaborator

需要自己手动去配置,你需要了解docker文件映射的知识

1,把这个文件映射出来到本地,然后启动容器
"""
version: '3'
services:
sync:
image: tickstep/aliyunpan-sync:
container_name: aliyunpan-sync
restart: always
volumes:
...
# (推荐)挂载sync_drive同步数据库到本地,这样即使容器销毁,同步数据库还可以用于以后使用
- ./sync_drive:/home/app/config/sync_drive
...
"""
2,然后你就会看到sync_drive_config.json这个文件
按照手册的教程去配置这个文件,可以配置多个任务
"""
https://github.com/tickstep/aliyunpan/blob/main/docs/manual.md#%E5%A4%87%E4%BB%BD%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E8%AF%B4%E6%98%8E
"""
然后重启容器即可

@xiaoyaofenfen
Copy link
Collaborator

你可以参考 #401 这个issue的例子

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants