Under Centos, synchronize files and folders to OneDrive and OneDrive for Business

888u

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

Using OneDrive Free Client

1. Install necessary applications

yum install libcurl-devel yum install sqlite-devel curl -fsS https://dlang.org/install.sh | bash -s dmd

2. Install OneDrive Free Client

git clone https://github.com/skilion/onedrive.git cd onedrive make make install

Then

make DC=ldmd2

3. Enter onedrive, there will be a link, open it in the browser, and then allow it.

The page will be completely white after that. Copy the link in the browser to the ssh window and press Enter.

4. Configuration file

$ cat ~/.config/onedrive/config sync_dir = "/OneDrive" skip_file = ".*|~*|thumbs.db|Games/*.iso" skip_dir = ".*|Music|Movies/FullHD"

5. Use commands

a. Start synchronization directly

onedrive

b. Help information

onedrive -h

Usage: onedrive [OPTION]… no option Sync and exit. -m –monitor Keep monitoring for local and remote changes. –resync Forget the last saved state, perform a full sync. -v –verbose Print more details, useful for debugging. -h –help This help information.

Recommended site search: server rental US high-defense, Hong Kong proxy server, cn domain name personal registration mainland China proxy server IP, free virtual host application, overseas virtual host space, registration website, free IP, domain name resolution query, foreign virtual space ,

Under Centos, synchronize files and folders to OneDrive and OneDrive for Business

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