The OneIndex program mounts the OneDrive network disk so that files can be displayed visually

888u

Last update at :2024-07-03,Edit by888u

Nowadays, more and more of our friends are giving up using free network disk programs and starting to build their own network disk storage. And there are currently many open source network disk storage programs. At the same time, with today's lower-cost VPS and servers, you can indeed build your own storage and ensure data security and management. However, since storage resources consume server resources (space and traffic), we also need to back up the data ourselves.

Relatively speaking, the network disks of overseas service providers are relatively stable and secure. Among them, OneDrive from Microsoft is still used by many users. In this article, Snail compiled a friend on the Internet who created a OneIndex program that can be hung on the OneDrive network disk via API, so that the data can be displayed in a visual list and managed.

The characteristic of this method is that it does not occupy the storage resources and traffic of the server, and all the OneDrive space and traffic are directly used. At least the data security is safer and more stable than the ordinary VPS chamber we choose.

First, prerequisites

1. PHP space WEB environment is required, supports PHP5.6 and above, and supports CURL.

2. Onedrive business account is required (enterprise version or education version/work or school account), free account is not acceptable.

3. OneIndex program

Download address: https://github.com/donwa/oneindex

Put it directly into our website directory and give it read and write permissions.

Second, OneIndex installation process

Open the website program, you can see the above interface, and bind OneDrive directly.

Fill in our onedrive business account to bind automatic authorization.

This is similar to the tree directory display information we have seen in other network disk programs.

Third, set up scheduled refresh

# Refresh token0 every hour * * * * /specific path/php /program specific path/one.php token:refresh

# Refresh the cache in the background every ten minutes*/10 * * * * /specific path/php /program specific path/one.php cache:refresh

Here we can refresh regularly.

Recommended site searches: Japanese server website, registration number, Dongguan server rental, Japanese server rental Japanese server, dynamic IP dialer, asp.net host, Google permanently free server, Hong Kong's best virtual host, American website server, cn domain name personal registration,

The OneIndex program mounts the OneDrive network disk so that files can be displayed visually

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码