onedriver¶
技巧:
# 指定同步的文件夹,其他文件夹就不同步了
$ touch ~/.config/onedrive/sync_list
Backup
Documents/latest_report.docx
Work/ProjectX
$ onedrive -h:
Usage: onedrive [OPTION]...
no option Sync and exit
-d --download Only download remote changes
-m --monitor Keep monitoring for local and remote changes
--resync Forget the last saved state, perform a full sync
--syncdir Set the directory used to sync the files
-v --verbose Print more details, useful for debugging
-h --help This help information
--logout 退出登录
登录注意:
# 长时间不登录需要先退出:
$ onedrive --logout
# 登录
$ onedriver
>> 出现一个网址
>> 复制在浏览器打开
>> 把跳转后的网址复制到命令行
>> 完成✅