mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 15:10:49 +08:00
14 lines
623 B
Markdown
14 lines
623 B
Markdown
# FAQ
|
||
|
||
## 1. Polaris 能否使用硬链接代替直接拷贝来节省空间?
|
||
|
||
可以。
|
||
|
||
使用本地存储时,默认使用硬链接移动文件,如果下载路径和媒体路径不在同一个挂载路径,硬链接会失败,然后会尝试使用拷贝的方式移动文件。
|
||
|
||
基于这一点,我们只需要改造一下docker挂载路径,既可以实现硬链接功能。
|
||
|
||
1. 媒体路径(e.g. /data)同时挂载到polaris和下载器容器,
|
||
2. polaris *设置 -> 下载路径* 设为媒体路径下面的文件夹 (e.g. /data/downloads)
|
||
|
||
然后Polaris就是使用硬连接,而非拷贝的方式 |