This Node.js script will take all your boards from an organization and export them in the same JSON format as you would have by exporting manually (trello.com/b/{board_id}.json) BUT will do it with the Trello API and not the /b/{board_id}.json path.
The /b/{board_id}.json path is limited to small boards, it gets a 504 timeout for big boards (over 600 cards, 3500 attachments and 1600 checklists), something that would create a JSON file over 10 Mo. So I wrote this script to be able to back up my biggest Trello boards.
Credits : I used this node wrapper for Trello API
- Clone this repository on your computer
- Make sure node.js and npm are installed on your computer
node -v && npm -v
. This script has been developed with node v18.17.1 and npm 9.9.2 - Log in to Trello and visit trello.com/app-key to get a token and app key. Fill the file
config.json
with them. - Fill also the organizationIds which is what you have in the URL of your organization dashboard (trello.com/w/{organizationId}).
Note you can provide multiple organization IDs in the array (
"organizationIds": ["YOUR_ORGANIZATION_ID_1", "YOUR_ORGANIZATION_ID_2"]
) - Install packages
npm i
- Run it
npm run export
- Your export will be available in the directory
export/YYYY-MM-DD
with one folder per organization having one json file per board
v1.0 - 2023-01-04
- Functional script to fetch all boards of an organization, their lists, cards (with attachments), actions, custom fields, checklists and members
v1.1 - 2024-03-22
- Changed organizationId to organizationIds in config.json to allow multiple organizations to be exported
- Bumped node version from 16 to 18
You found a bug? You need a new feature? You can create an issue if needed or contact me on Twitter.