webDAV + aliyundriver + Alibaba Cloud Disk realizes free cloud storage cloud synchronization

With just a few simple configurations, Alibaba Cloud Disk can be transformed into a file server using the webdav protocol. Based on this, you can mount the Alibaba Cloud disk as a disk in Windows, Linux, and Mac systems, and you can perform file management or file synchronization through the NAS system;

1. Window

Tutorial reference: https://github.com/gylang/aliyundriver-webdav-software-ui

  1. Download this git: https://github.com/gylang/aliyundriver-webdav-software-ui and unzip it
  2. Download aliyundrive-webdav
  • Download the zip installation package according to the system: https://github.com/messense/aliyundrive-webdav/releases,
  • After decompression, get aliyundrive-webdav.exe and put the file into the bin directory of the file downloaded in 1.
  1. Run aliyundriver-webdav.exe in the root directory of the file downloaded in 1 (the root directory, not the bin folder) to start the service
  2. Get the Alibaba Cloud token, https://messense-aliyundrive-webdav-backendrefresh-token-ucs0wn.streamlit.app/. Click this website and scan the QR code, or click aliyundriver-webdav.exe in the bin directory. You can also get the token by scanning the QR code. ;
  3. Install RaiDrive: The file is in the guide directory
  4. Configuration:
    Open raiDrive and click Add in the upper left corner
    Please add image description

then click:
Please add image description

Change the ip part to http, just uncheck the address
and fill in the relevant configuration. The refreshToken here is the Alibaba Cloud token obtained earlier
Please add image description
and click connect.

Effect:
Please add image description

You can see the 8T network disk locally.

2. Mac

  1. Download Alibaba Cloud Disk on your mobile phone and log in
  2. Click https://github.com/messense/aliyundrive-webdav/releases/download/v2.2.2/aliyundrive-webdav-v2.2.2.apple-darwin.tar.gz, download and unzip to get the aliyundrive-webdav file, Remember the path
  3. Enter the terminal shell, and then run Your_path/aliyundrive-webdav qr login. A QR code will appear. Scan the code with your mobile phone's Alibaba Cloud Disk to get refresh-token.
  4. Your_path/aliyundrive-webdav --host 127.0.0.1 -p 8080 -U admin -W admin --root / -I The port here can be changed to what you need. -U is the user name, -W is the password and then browse Enter http://127.0.0.1:8080 on the server, enter your account and password, and you can see the contents of the cloud disk.
  5. Ctrl+k can log in and put it on your network disk. The download and upload speed depends on your network.

If port 8080 is occupied, ls of -i:8080find the process number, and thenkill -9 进程号

Guess you like

Origin blog.csdn.net/qq_30129009/article/details/131880793
Recommended