用于备份Turtl帐户的工具。
turtl-backup的Python项目详细描述
TURTL备份
这个程序允许离线下载一个完整的turtl帐户 备份并可选地解密备份文件,然后可选地 将解密文件导出到标记。
安装
您可以使用pip:
安装turtl-backup
pip3 install turtl-backup
用法
有一个图形用户界面:
turtl-backup-gui
还有一个命令行工具,其用法如下:
usage: turtl-backup [-h]{backup,get_auth_token,export} ... Backup a turtl account. positional arguments: {backup,get_auth_token,export} Backup can be done with a login/password pair or using an auth token. backup Backup a turtl account (with a password or an auth token) get_auth_token Get a turtl auth token export Decrypt and export all notes in the given directory. optional arguments: -h, --help show this help message and exit
因此通常要创建加密备份:
$ turtl-backup backup https://api.framanotes.org backup.json
username: test
password:
解密备份:
$ turtl-backup decrypt backup.json backup/
username: test
password:
要将解密的备份导出到标记,请执行以下操作:
$ turtl-backup export backup/ backup-md/ $ cat backup-md/Hello.md type: text title: Hello tags: [] url: None username: None password: None world
常见问题解答
Is it possible to setup a cron to backup my notes without storing my login/password in plaintext in my crontab?
是的,turtlauth_token
足以备份帐户。你可以
使用turtl-backup get_auth_token
获取身份验证令牌,但仍然
小心别漏了。然后使用turtl-backup backup --auth-token YOUR_AUTH_TOKEN
。
Is it possible to decrypt my notes using my
auth_token
?
不,您需要再次输入登录名和密码。