群晖NAS同步阿里云盘,亲妈级保姆教程,2022年8月4日亲测有效

没用nas之前照片是保存到本地电脑硬盘上的,有100多G的视频与照片,2019年,发现很多照片只显示一半或直接无法打开,导致少了很多美好回忆。所以组了个群晖6,群晖6有一点不太好,相册不支持HEIC格式(占空间少,现在很多手机相机都支持这种格式),到群晖发布了群晖7,相册支持了HEIC格式,马上升级到群晖7.01。毕竟不是白群晖,怕里面的照片那天一不小心有没了,所以想在网盘上做个备份,在网上百度了一下,查询了6、7个小时,只在网上找到大致这二种方法,如下:
方法一、Docker安装“ZX5253/webdav-aliyundriver ” ,这个方法也是网上最多的,现在直接找不到这个,可能开发者已经停止开发了。我测试的“zx5253-webdav-teambition”,也还是不行
方法二、Docker安装“messense/aliyundrive-webdav”,
应该是方法一失效后,才有的方法二。方法二现在也不行了,至少我这是不行(这二咱方法,现在还能正常用的举个手),都是无限重启中,见下图。
![image.png](https://img-blog.csdnimg.cn/img_convert/bfe9be820a44ca2442345fef76ab6fdb.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=933&id=JGrS3&margin=[object Object]&name=image.png&originHeight=933&originWidth=1252&originalType=binary&ratio=1&rotation=0&showTitle=false&size=692945&status=done&style=none&taskId=uee722c40-979d-4080-8c03-fe640bcd202&title=&width=1252)

在Docker上,试了好多与阿里云盘相关的镜像,最终发现了下面这个软件,为了大家方便,把这个软件使用方法总结了一下。因为大家很多与我一样,都是不太懂,我就按照大致方法一步步来一遍(很多都是网上找来的方法),安装过或会的请跳过对应步骤,有不对的地方,请大神指教一下

运行环境

  • 群晖DS918+
  • DSM7.01
  • docker 20.10.3-1239
  • Synology NAS 2.5.1-2226

一、查找要同步的阿里云盘的token(已知的请跳过)

1、浏览器(我用的是360极速浏览器)打开 https://www.aliyundrive.com/drive/ ,扫码或短信登录
2、登录成功后,按F12打开开发者工具,点击Application,点击Local Storage,点击 Local Storage下的 https://www.aliyundrive.com/,点击右边的token,此时可以看到里面的数据,其中就有refresh_token,把其值复制出来即可。(格式为小写字母和数字,不要复制双引号。例如我的是:6a1d…)
![image.png](https://img-blog.csdnimg.cn/img_convert/1a38e6f47c4272b1dfe9d7e674945ad8.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=966&id=u7fc128d5&margin=[object Object]&name=image.png&originHeight=966&originWidth=951&originalType=binary&ratio=1&rotation=0&showTitle=false&size=130589&status=done&style=none&taskId=u09248b7b-2a56-4a6e-a626-339ddb0bd21&title=&width=951)

二、群晖内套件中心下载安装“Docker”与“cloud sync” (已安装的请跳过)

![image.png](https://img-blog.csdnimg.cn/img_convert/559013964592da826499291054605c15.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=822&id=HABkN&margin=[object Object]&name=image.png&originHeight=822&originWidth=1378&originalType=binary&ratio=1&rotation=0&showTitle=false&size=526013&status=done&style=none&taskId=u934464ef-53fb-44a5-83dd-d5eef5abfba&title=&width=1378)

![image.png](https://img-blog.csdnimg.cn/img_convert/7007bd0f2e0901a06f809742abcf301d.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=787&id=u9483285e&margin=[object Object]&name=image.png&originHeight=787&originWidth=1398&originalType=binary&ratio=1&rotation=0&showTitle=false&size=504320&status=done&style=none&taskId=u19ac600b-db0b-4157-8d94-ff20cfab3bc&title=&width=1398)

三、Docker具体设置

![image.png](https://img-blog.csdnimg.cn/img_convert/40adec11603ea7c392bf442da2e2e8fc.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=910&id=u6fe36833&margin=[object Object]&name=image.png&originHeight=910&originWidth=1398&originalType=binary&ratio=1&rotation=0&showTitle=false&size=593048&status=done&style=none&taskId=u2d5f64e8-2c0c-4882-9ced-9bcee4ad8bd&title=&width=1398)

①、登录阿里云( https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors ),找到镜像加速器,复制加速器地址,如下图所示:
![image.png](https://img-blog.csdnimg.cn/img_convert/4773843be42838588988a97ec9407680.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=598&id=ud64ad5d6&margin=[object Object]&name=image.png&originHeight=598&originWidth=979&originalType=binary&ratio=1&rotation=0&showTitle=false&size=89376&status=done&style=none&taskId=u5e864acc-c109-48a7-a4b6-f5d3ae1b860&title=&width=979)
②打开Docker ,按下图操作(①的加速器地址复制到“注册表镜像URL”里面)
![image.png](https://img-blog.csdnimg.cn/img_convert/f47098de7049a9db989319bf65ee18c1.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=697&id=u1ee31eef&margin=[object Object]&name=image.png&originHeight=697&originWidth=1159&originalType=binary&ratio=1&rotation=0&showTitle=false&size=263487&status=done&style=none&taskId=u7cc0a1cc-c915-4cbc-84b3-5dd06335f9d&title=&width=1159)

![image.png](https://img-blog.csdnimg.cn/img_convert/478ad365c50ebfc8c99753f53be100a9.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=491&id=u8eff7d06&margin=[object Object]&name=image.png&originHeight=491&originWidth=982&originalType=binary&ratio=1&rotation=0&showTitle=false&size=30701&status=done&style=none&taskId=u64e430a1-662d-479c-93cf-7fa21f619a2&title=&width=982)

![image.png](https://img-blog.csdnimg.cn/img_convert/9f9f4e268bd2b971f0e7c1caa43b7390.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=487&id=uf42e3b34&margin=[object Object]&name=image.png&originHeight=487&originWidth=700&originalType=binary&ratio=1&rotation=0&showTitle=false&size=22693&status=done&style=none&taskId=ub7e5d7c7-5430-4baf-a8d9-a6b568b612a&title=&width=700)

![image.png](https://img-blog.csdnimg.cn/img_convert/72365b13238077ed6d597536e28832b6.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=595&id=u45a527b9&margin=[object Object]&name=image.png&originHeight=595&originWidth=780&originalType=binary&ratio=1&rotation=0&showTitle=false&size=46498&status=done&style=none&taskId=u9dd8f893-2b47-440b-a80d-75142e9a9b7&title=&width=780)

![image.png](https://img-blog.csdnimg.cn/img_convert/33a9aa9cf3b36c5dbd3fea4b220dec02.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=670&id=u0deaffbb&margin=[object Object]&name=image.png&originHeight=670&originWidth=861&originalType=binary&ratio=1&rotation=0&showTitle=false&size=231391&status=done&style=none&taskId=udfec5c11-39a5-429c-ae60-225b59bab2c&title=&width=861)

![image.png](https://img-blog.csdnimg.cn/img_convert/23ad5b6b99cb149f2ac89f4073b8cac9.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=659&id=uf1e400a4&margin=[object Object]&name=image.png&originHeight=659&originWidth=701&originalType=binary&ratio=1&rotation=0&showTitle=false&size=71445&status=done&style=none&taskId=uc6525662-66af-4c68-8631-d40709e32f5&title=&width=701)

装载路径填写“ /etc/aliyundrive-webdav/ ”,千万不要写错;
![image.png](https://img-blog.csdnimg.cn/img_convert/a4d7b5744b109f09f3fd2599b9821229.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=557&id=u680ea725&margin=[object Object]&name=image.png&originHeight=557&originWidth=661&originalType=binary&ratio=1&rotation=0&showTitle=false&size=26060&status=done&style=none&taskId=u5ba71d65-ae26-43d9-989e-18491ea8e24&title=&width=661)

“本地端口”建议自己填写个自己容易记并没有使用的(如端口已使用,会有提示),“容器端口”我没动。这二个端口都可以自定义,看个人喜好。
![image.png](https://img-blog.csdnimg.cn/img_convert/7a5b76cc8245cb0284a9fce7a6d63236.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=556&id=u4e4d993b&margin=[object Object]&name=image.png&originHeight=556&originWidth=652&originalType=binary&ratio=1&rotation=0&showTitle=false&size=17768&status=done&style=none&taskId=u85c8bc14-d135-45cb-a312-b8eaf8c126a&title=&width=652)

这个是超级爽的,里面所有的参数都是自动生成好的,只需要把“阿里云盘的token”粘贴到下面ALIYUNPAN_REFRESH_TOKEN的值里面即可(下图打码处),“ALIYUNPAN_AUTH_USER ”与“ALIYUNPAN_AUTH_PASSWORD” 的值要记着,这个是后面链接时要用到的用户名与密码,也可以自己修改值;
![image.png](https://img-blog.csdnimg.cn/img_convert/6a2d230bfcca0c42e17e5eadd729a78f.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=552&id=ud34c6234&margin=[object Object]&name=image.png&originHeight=552&originWidth=654&originalType=binary&ratio=1&rotation=0&showTitle=false&size=35819&status=done&style=none&taskId=ue7843ed9-e31e-41b2-b855-b27250ad978&title=&width=654)

![image.png](https://img-blog.csdnimg.cn/img_convert/822aefb11ee73991dec4ee4d7a68b089.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=864&id=ua9bea79e&margin=[object Object]&name=image.png&originHeight=864&originWidth=1227&originalType=binary&ratio=1&rotation=0&showTitle=false&size=289653&status=done&style=none&taskId=u10e3f861-3312-43fe-91b3-f33a1ba4f40&title=&width=1227)

四、cloud sync 具体设置

![image.png](https://img-blog.csdnimg.cn/img_convert/68f9f2a75609fe6e87f20c28c60629e0.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=832&id=u8f7c2c86&margin=[object Object]&name=image.png&originHeight=832&originWidth=1201&originalType=binary&ratio=1&rotation=0&showTitle=false&size=238420&status=done&style=none&taskId=ufc4ce5ac-7a74-4006-85b7-4afe5a145c7&title=&width=1201)

“服务器地址:192.168.15.246:8080 ” ,192.168.15.246为我的局域网IP(你可以填写你的NAS地址),8080为我刚设置的本地端口(你可以填写你自己设置的端口);
用户账户:为 “ALIYUNPAN_AUTH_USER ”的值,如没有修改,默认值为:admin
密码:为 “ALIYUNPAN_AUTH_PASSWORD ”的值,如没有修改,默认值为:admin
![image.png](https://img-blog.csdnimg.cn/img_convert/d440848337bdcb396c79196cfaaa4b33.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=540&id=ub60df6d7&margin=[object Object]&name=image.png&originHeight=540&originWidth=841&originalType=binary&ratio=1&rotation=0&showTitle=false&size=32804&status=done&style=none&taskId=u471b6831-61f6-4c83-a825-8796af5d996&title=&width=841)

连接名称:这个自己起就可以(我是默认);
本地路径:这个是NAS上要备份的文件夹;
远程路径:这个是阿里云盘上要备份到的地方;
数据加密:这个如果选择了,备份到阿里云盘上的文件无法打开(因为文件加密过了),切选

![image.png](https://img-blog.csdnimg.cn/img_convert/96f15d58d7187977c83fb6fb5f0850ab.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=595&id=u51dac2f4&margin=[object Object]&name=image.png&originHeight=595&originWidth=911&originalType=binary&ratio=1&rotation=0&showTitle=false&size=93912&status=done&style=none&taskId=u53d79ad3-d955-4dc9-9d33-84c102e70f6&title=&width=911)
计划设置:这个可以设定备份在那个时间段进行备份
![image.png](https://img-blog.csdnimg.cn/img_convert/bd77fb026d179f9fd78528666796474d.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=438&id=u2afed524&margin=[object Object]&name=image.png&originHeight=438&originWidth=676&originalType=binary&ratio=1&rotation=0&showTitle=false&size=15152&status=done&style=none&taskId=u0a1eed7f-c97c-4ccc-bf84-6ae513b2b1f&title=&width=676)
同步方向:双向、仅下载远程更改、仅上传本地更改 ,选择自己需要的

![lQLPJxaM80gEM5fNAmjNA12wzR9Zbkzw_QMC5__SgEAnAA_861_616.png](https://img-blog.csdnimg.cn/img_convert/45726b0c40ef625585ee7dafe6e2e52f.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=616&id=u99273584&margin=[object Object]&name=lQLPJxaM80gEM5fNAmjNA12wzR9Zbkzw_QMC5__SgEAnAA_861_616.png&originHeight=616&originWidth=861&originalType=binary&ratio=1&rotation=0&showTitle=false&size=165035&status=done&style=none&taskId=u42167448-6b96-42a4-ab78-63de42601ae&title=&width=861)

五、大功告成,网盘已开始同步云盘相片了

![lQLPJxaM9AiKFwPNA5jNB1Ww2KJZM2OX2tsC6AENvsAzAA_1877_920.png](https://img-blog.csdnimg.cn/img_convert/69b351a3993bf673b3afa9f436faf8aa.png#clientId=u2d5d1d0f-f481-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=920&id=u05ff2454&margin=[object Object]&name=lQLPJxaM9AiKFwPNA5jNB1Ww2KJZM2OX2tsC6AENvsAzAA_1877_920.png&originHeight=920&originWidth=1877&originalType=binary&ratio=1&rotation=0&showTitle=false&size=830179&status=done&style=none&taskId=u59fa1758-fb79-4e20-b94e-25ff474d316&title=&width=1877)

原文链接:https://blog.csdn.net/masuisui/article/details/126162207

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享