Sync Zotero Using Existing Cloud Storage Service

3 minute read

Published:

Zotero is a great tool. But it only has 300MB free cloud storage. After that, you have 3 options:

  1. Buy their cloud storage service. (why do I buy yet another cloud storage after I already have two?)
  2. Use 3rd party WebDAV service. (basically yet another cloud storage service)
  3. Do it your own.
    1. Manually sync the whole database. (dumb)
    2. Sync only attachment files using existing cloud service. (doesn’t require WebDAV support!)
zotero storage after
Figure 1: Zotero storage is used up

Solution

Idea: Let Zotero sync your metadata and sync your own file attachment data using your cloud service.

Implementation

The storage folder inside Zotero data directory contains your attachment files.

So just use a symbolic link to link the stroage to your cloud service location.

# backup your current storage folder **after closing Zotero**
mv ~/Zotero/storage ~/Zotero/storage.bak
# copy it to your cloud storage
cp -r ~/Zotero/storage.bak /Users/<username>/Library/CloudStorage/OneDrive/Zotero/sync/storage
# Example symbolic link to my OneDrive folder
ln -s /Users/<username>/Library/CloudStorage/OneDrive/Zotero/sync/storage ~/Zotero/storage

Done! Your file is synced by your cloud service provider and you can free up your Zotero cloud storage now!

zotero storage after
Figure 2: Zotero stroage is freed after sync

References