- 备份与迁移:
magpie backup把 magpie 里的一切打包成一个文件——供应商(连同 Key,或加--no-keys不带 Key)、为它们选的图标、设置、Profile 和每个 agent 选的模型;文件用口令在本机加密(AES-256-GCM,PBKDF2-SHA256 派生密钥),没有口令读不出任何内容。 - 在另一台机器上
magpie restore <文件>即可还原:同 id 的供应商被替换,其余新增;不带 Key 的保留那台机器上已有的 Key;agent 的模型只设置那台机器装了的 agent(--no-agents则不动 agent)。订阅账号不在备份里,需要在每台机器上各自登录。(#28,设置页里的入口和 WebDAV 同步随后提供)
- Backup and move:
magpie backuppacks everything set up in magpie into one file — the providers (with their keys, or none with--no-keys), the pictures picked for them, the settings, the profiles and every agent's model — encrypted on your machine with a passphrase (AES-256-GCM, key from PBKDF2-SHA256); nothing in it reads without the passphrase. - On the other machine,
magpie restore <file>puts it in: providers with the same id are replaced and the rest added; one that came without a key keeps the key already there; agent models are set only for the agents installed there (--no-agentsleaves agents alone). Subscriptions are not in it: sign in to them on each machine. (#28; a Settings entry and WebDAV sync come next)