Skip to main content

Backup everything from Trello

Project description

Python 3 script to backup everything from Trello.

The script does a backup of:

  • boards, open and closed, as json files

  • lists, open and archived, as json files

  • cards, open and archived, as json files

  • attachments, downloaded as raw files

The script also creates a folder tree structure corresponding to the way data is organized. This is to make it more convenient to navigate locally between folders, as it mimics the flow you have when using the web and mobile apps.

Here is an example of what the tree structure looks like:

2015-11-12_23-28-36_backup/
└── me
    └── A Test Board
        ├── 0_To Do
        │   ├── 0_Task3
        │   │   ├── attachments
        │   │   │   └── 0_chessboard.png
        │   │   ├── card.json
        │   │   └── description.md
        │   └── 1_Task4
        │       ├── card.json
        │       └── description.md
        ├── 1_In Progress
        │   └── 0_Task2
        │       ├── card.json
        │       └── description.md
        ├── 2_Done
        │   └── 0_Task1
        │       ├── attachments
        │       ├── card.json
        │       └── description.md
        └── A Test Board_full.json
  • Lists and cards have their names prefixed by their position to keep the order

  • For each card:

  • The description is saved to a separate Markdown file

  • The attachments are downloaded to a separate folder

  • The rest stays in the json file

Install

pip install trello-full-backup

Usage

Make sure the environment variables TRELLO_API_KEY and TRELLO_TOKEN are correctly set.

Then you can run the following commands:

export TRELLO_API_KEY=yourapikey
export TRELLO_TOKEN=yourtoken

And execute the script:

trello-full-backup

By default the script creates a folder with the current date as a name. Example: 2015-11-12_18-57-56_backup

You can specify your own destination directory, but the script does not create the intermediate directories in case they don’t exist:

trello-full-backup -d path/to/dir

Options

trello-full-backup -h
usage: trello-full-backup [-h] [-d [DEST]] [-B] [-L] [-C] [-o] [-a ATTACHMENT_SIZE]

Trello Full Backup

optional arguments:
  -h, --help            show this help message and exit
  -d [DEST]             Destination folder
  -B, --closed-boards   Backup closed board
  -L, --archived-lists  Backup archived lists
  -C, --archived-cards  Backup archived cards
  -o, --organizations   Backup organizations
  -a ATTACHMENT_SIZE, --attachment-size ATTACHMENT_SIZE
                        Attachment size limit in bytes. Set to -1 to disable
                        the limit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trello-full-backup-0.2.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

trello_full_backup-0.2.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file trello-full-backup-0.2.1.tar.gz.

File metadata

File hashes

Hashes for trello-full-backup-0.2.1.tar.gz
Algorithm Hash digest
SHA256 160cbb7de7c3daada3f64b6b8b8ae602fc8ed83b8d25345e1b5b50271905de7a
MD5 4cf92baabbf304d3de4bc80ded1a1eea
BLAKE2b-256 c5abf4ef66058b425f5af3faa97563f768b842335d9d4aaaf0ffdf10def75241

See more details on using hashes here.

File details

Details for the file trello_full_backup-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trello_full_backup-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b0bcd67db3d09f636ced56a703b8be12ab3659e07d415165d777d8baa3c237
MD5 2118a00f303e42de0e87321de82a62ce
BLAKE2b-256 23b89ae7b769cbbb9a088b7cd5f5331b5f60bdd8df89b1e60b409a4185a885e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page