AlistGo / AlistGo/alist

请求一个简单镜像功能

Open
#7,331 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
50.2k
Forks
7.9k
Avg merge
7d 21h
Merged PRs (30d)
6

Description

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
- [X] I'm sure there are no duplicate issues or discussions.
- [X] I'm sure this feature is not implemented.
- [X] I'm sure it's a reasonable and popular requirement.

### Description of the feature / 需求描述

nas都有一个功能叫是硬盘镜像,alist虽然不是nas,但是有没有一种可能也内置这种功能(个人第三方python脚本一天一备份实现,但是也只是备份,没办法做到实时)。
考虑到延迟各个硬盘之间的延迟比较大,也不需要实时,退而求其次,能否实现两种网盘之间的主从关系功能。

### Suggested solution / 实现思路

设置网盘2的某个路径作为网盘1的从备份。
每次增删改的时候,先增删改网盘1的文件,完成后再增删改网盘2的文件。
全部完成后能检测做文件检测(即文件名,大小等,md5码这个应该不容易),不能就算了。
每次查询的时候,先查看硬盘1的文件,假如失败,则查看网盘2的文件,再失败再返回失败。

### Additional context / 附件

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.