Comments (3)
我也有这个需求,希望大佬能抽空搞一下
from aliyunpan.
现在想要同步多个目录需要给每个目录开一个容器,感觉不太方便,还占用登陆设备数量。
试了下sync_handler.js 插件,查看文档的说明也只有针对文件的关键词屏蔽。目前没摸索出屏蔽某个文件夹的配置。
from aliyunpan.
可以支持的,但是需要手动编辑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
"""
from aliyunpan.
Related Issues (20)
- 下载的时候,如果文件名中有空格,会当成两个文件 HOT 1
- 树莓派上运行很难保持登录状态 HOT 3
- 请问下有没有单次备份功能,就是只运行一次备份任务
- 关于v0.3.2版本移除相册、分享、回收站等功能的说明 HOT 2
- file already closed: 上传出错,只能上传特小文件 HOT 3
- [feat] `upload` 增加上传限速 HOT 1
- `aliyunpan_config.json` 中没有 openapi 的 `refresh_token` ? HOT 3
- 考虑支持华硕路由器吗,可以赞助💰 HOT 3
- 同步模式重命名源文件后会重新上传/下载一次 HOT 1
- 授权页面打开不了
- change default config and command history file to be under ~/.config HOT 1
- rename 命令为什么那么慢啊 HOT 4
- 打开上传未完成数据库错误 HOT 2
- 同步能配置多线程吗?速度有些慢啊。 HOT 2
- After scaning the QR Code, the browser shows that "The input parameter redirect_uri is not valid." HOT 1
- upload能否实现增量上传? HOT 1
- winget 不能使用 HOT 1
- sync start 上传的文件目录错乱 HOT 2
- Ubuntu unable to upload folder HOT 1
- 使用sync的upload模式,某些文件上传失败,一直重试上传
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aliyunpan.