Git Product home page Git Product logo

Comments (3)

birdxs avatar birdxs commented on August 16, 2024

我也有这个需求,希望大佬能抽空搞一下

from aliyunpan.

birdxs avatar birdxs commented on August 16, 2024

现在想要同步多个目录需要给每个目录开一个容器,感觉不太方便,还占用登陆设备数量。

试了下sync_handler.js 插件,查看文档的说明也只有针对文件的关键词屏蔽。目前没摸索出屏蔽某个文件夹的配置。

from aliyunpan.

xiaoyaofenfen avatar xiaoyaofenfen commented on August 16, 2024

可以支持的,但是需要手动编辑sync_drive_config.json这个文件然后映射给docker容器使用
“”“
配置文件需要保存在:(配置目录)/sync_drive/sync_drive_config.json,样例如下:

{
"configVer": "1.0",
"syncTaskList": [
{
"name": "设计文档备份",
"localFolderPath": "D:/tickstep/Documents/设计文档",
"panFolderPath": "/备份盘/我的文档",
"mode": "upload",
"driveName": "backup"
},
{
"name": "手机图片备份",
"localFolderPath": "D:/tickstep/Photos/手机图片",
"panFolderPath": "/备份盘/手机图片",
"mode": "upload",
"driveName": "resource"
}
]
}

相关字段说明如下:
name - 任务名称
localFolderPath - 本地目录
panFolderPath - 网盘目录
mode - 模式,支持: upload(备份本地文件到云盘),download(备份云盘文件到本地)
driveName - 网盘,支持:backup(备份盘), resource(资源盘)
”“”

在docker-compose.yml命令需要映射
"""
version: '3'
services:
sync:
image: tickstep/aliyunpan-sync:
container_name: aliyunpan-sync
restart: always
volumes:

(推荐)挂载sync_drive同步数据库到本地,这样即使容器销毁,同步数据库还可以用于以后使用

  #- ./sync_drive:/home/app/config/sync_drive

"""

详细可以参考:https://github.com/tickstep/aliyunpan/blob/main/docs/manual.md#%E5%90%8C%E6%AD%A5%E5%A4%87%E4%BB%BD%E5%8A%9F%E8%83%BD

from aliyunpan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.