centos 多台 文件夹同步_Centos下,同步文件及文件夹到OneDrive、OneDrive for Business...

1、安装必须的应用

yum install libcurl-devel

yum install sqlite-devel

curl -fsS https://dlang.org/install.sh | bash -s dmd

2、安装OneDrive Free Client

git clone https://github.com/skilion/onedrive.git

cd onedrive

make

make install

然后

make DC=ldmd2

3、输入 onedrive ,之后会有个链接,在浏览器打开,然后允许。

之后页面会全白,把浏览器里的链接复制到 ssh 窗口,回车,即可。

4、配置文件

$ cat ~/.config/onedrive/config

sync_dir = "/OneDrive"

skip_file = ".*|~*|thumbs.db|Games/*.iso"

skip_dir = ".*|Music|Movies/FullHD"

5、使用命令

a、直接开始同步

onedrive

b、帮助信息

onedrive -h

用法: 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.

你可能感兴趣的:(centos,多台,文件夹同步)