Linux下使用maestral同步dropbox文件

前面写过一篇 《Obsidian通过Dropbox同步实现文章自动发布》 但是没有具体写Linux下怎么使用maestral的介绍。之前在使用的时候,为了实现只同步制定目录下的文件,经历过惨痛的教训,把dropbox里上传的内容整个删除了好几次,好在有备份重新上传,这里记录下来,希望大家能避坑。 maestral的GitHub地址:https://github.com/samschott/maestral Maestral: https://maestral.app/ 安装maestral mkdir maestral cd maestral/ python3 -m venv venv source venv/bin/activate python3 -m pip install --upgrade maestral 授权maestral访问dropbox maestral auth link # 多账号可以加 -c 选项 # maestral auth link -c home # 如果没有多账号的情况,最好是不加-c选项,要不然后面所有的命令都需要这个参数,太麻烦了 出现提示后,选择第二项,在控制台打印授权URL - Linking new account for 'test' config - Retrieving auth code from Dropbox ? How would you like to you link your account? > Open Dropbox website Print auth URL to console 将URL复制到浏览器,登录dropbox账号之后,将页面上生成的访问码粘贴到命令行,粘贴过程中出现打字效果,耐心等待即可...

五月 25, 2024 · 2 分钟 · 241 字 · Byter ·  软件 ·  Maestral