How sync my database into zotero.sqlite directly from Zotero Web API in commandline?

More specifically, how to download my database from Zotero Web API and generate a zotero.sqlite, not in Zotero GUI, but in command line?


I have 2 PC and 1 Laptop, all of them have Zotero installed and sync with my account. I also have a NAS in my home, and now I want to backup my Zotero database automatically into my NAS.
Just backup the zotero.sqlite file is not good for me since I can not go back home and upload zotero.sqlite file every night.

So, I want to find a command line program to download my database from Zotero Web API and generate a zotero.sqlite in command line, so that I can just deploy it in my home and automatically backup my zotero.sqlite to my NAS every midnight, even if I am not at home.

Does this command line program exist?
  • I responded on GitHub, but to reiterate here, no, what you're asking for doesn't exist and doesn't make sense. zotero.sqlite is the database for the Zotero app, which has hundreds of thousands of lines of code — it's not something that can just be recreated via the command line. And a Zotero backup includes more than just zotero.sqlite.

    Just back up your Zotero data directory incrementally with the rest of your computer data:

    https://www.zotero.org/support/zotero_data#backing_up_your_zotero_data

    If you don't want to back up from a computer you actively use, you can leave Zotero running with auto-sync enabled on a computer you back up from.
Sign In or Register to comment.