Trello backup tool

Since the last decennium, I've been a happy Trello user. After one customer added me to their board, I liked it so much, that I started to use Trello for everyday planning with a few personal boards (family planning etc). Later I added a few boards for my small business and volunteer work.

There's just one thing I'm missing: Backups. I haven't been able to find a backup solution that protects my cards, my boards or my workspaces in case something disastrous happens. However, Trello does have an API, and I've been planning to create my own backup tool for multiple years now. But as the saying goes: The painter's house is never painted.

Yesterday, someone I shared a workspace with, deleted that workspace without any warning. It was gone. Boards gone. Cards gone. Irrecoverable. That will never happen to me again. So I quickly created a backup tool, with some help.

Below, you'll find a link to TrelloDownloader.zip. It contains:

  • config.php - Template for your config
  • export.php - The actual exporter. It downloads workspaces, boards, cards and comments. I found that it was impossible to download attachments due to authorisation. Since I don't care about attachments for my purposes, and I couldn't find a solution several hours in, I decided to leave that for now.
  • download_later.php - Using this file you may be able to download attachments that export.php could not get. If you know how to fix it, that is.
  • index.php - When you run php -S localhost:8123 to start php's built-in webserver, you'll be able to browse your download data via http://localhost:8123
  • exports - An empty directory for the exports to be saved in.

To use:

  1. Review the code to check that it is not malware.
  2. Put your API keys in config.php
  3. Then run export.php from the command line. You may use export.sh to run export.php. If you use export.sh from a crob job, it will save the log file.
  4. When done, run php -S localhost:8123 and to go http://localhost:8123 to see if your data is really there.

Apart from the attachment download, I spent very little time on this script. I did some basic security checks, but there may still be bugs. I didn't mean it to run on a public server, but just on your local machine.

Enjoy!

Download TrelloDownloader.zip

© GeekLabInfo Trello backup tool is a post from GeekLab.info. You are free to copy materials from GeekLab.info, but you are required to link back to https://www.geeklab.info

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...