All Projects → jtpio → trello-full-backup

jtpio / trello-full-backup

Licence: MIT license
Python script to backup everything from Trello: boards, lists, cards and attachments

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to trello-full-backup

trello-habitica
Keep in sync your Trello cards with Habitica
Stars: ✭ 32 (-73.11%)
Mutual labels:  trello
myaas
Fresh Mysql instances for your developers in seconds
Stars: ✭ 26 (-78.15%)
Mutual labels:  backup
proxmox toolbox
A toolbox to get the firsts configurations of Proxmox VE / BS done in no time
Stars: ✭ 158 (+32.77%)
Mutual labels:  backup
piratcloud
an ipfs-based encrypted backup solution
Stars: ✭ 20 (-83.19%)
Mutual labels:  backup
sicksync
Don’t accept the available as the preferable. Go the extra mile with extra speed.
Stars: ✭ 67 (-43.7%)
Mutual labels:  backup
planb
PlanB - automating remote backups and snapshots with zfs/rsync
Stars: ✭ 24 (-79.83%)
Mutual labels:  backup
Whale
Unofficial Trello app 🐳
Stars: ✭ 248 (+108.4%)
Mutual labels:  trello
strelloids
Browser extension for Trello that adds new features.
Stars: ✭ 29 (-75.63%)
Mutual labels:  trello
react-native-dnd-board
A drag and drop Kanban board for React Native.
Stars: ✭ 41 (-65.55%)
Mutual labels:  trello
IAmLazy
Easily backup and restore your tweaks
Stars: ✭ 37 (-68.91%)
Mutual labels:  backup
gatsby-source-trello
Source plugin for pulling data into Gatsby from Trello using
Stars: ✭ 21 (-82.35%)
Mutual labels:  trello
virt-backup
Fully backup your KVM Virtual Machines
Stars: ✭ 27 (-77.31%)
Mutual labels:  backup
butdr
Backup to Cloud( Google Drive, Dropbox ... ) use rclone
Stars: ✭ 49 (-58.82%)
Mutual labels:  backup
borg-rclone-autobackup
Easily automate backups using Borg + RClone
Stars: ✭ 25 (-78.99%)
Mutual labels:  backup
trello-super-powers
Repository of the Firefox add-on. (https://addons.mozilla.org/en-US/firefox/addon/trello-super-powers/)
Stars: ✭ 29 (-75.63%)
Mutual labels:  trello
mysql-backup-golang
Mysql backup golang
Stars: ✭ 25 (-78.99%)
Mutual labels:  backup
vbo365-rest-self-service
Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365
Stars: ✭ 24 (-79.83%)
Mutual labels:  backup
vuejs-trello-clone
A Trello clone using VueJS
Stars: ✭ 85 (-28.57%)
Mutual labels:  trello
open2fa
Two-factor authentication app with import/export for iOS and macOS. All codes encrypted with AES 256. FaceID & TouchID support included. Written with love in SwiftUI ❤️
Stars: ✭ 24 (-79.83%)
Mutual labels:  backup
VestaCP-Sync-Backups-To-Mega
VestaCP: uploading backups to the MEGA cloud
Stars: ✭ 17 (-85.71%)
Mutual labels:  backup

Trello Full Backup

https://img.shields.io/pypi/v/trello-full-backup.svg?style=flat-square https://img.shields.io/pypi/pyversions/trello-full-backup.svg?style=flat-square https://img.shields.io/docker/automated/jtpio/trello-full-backup.svg?style=flat-square

Backup everything from Trello:

  • 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

Run with Docker

The easiest way to execute the script with the default parameters (if you have Docker):

docker run -t -e TRELLO_API_KEY=YOUR_KEY -e TRELLO_TOKEN=YOUR_TOKEN -v /backups:/app jtpio/trello-full-backup

This will create a new folder on your host system in the backups directory. Feel free to adjust it based on your host system (GNU/Linux, Mac OS, Windows...).

To pass different parameters, for example to avoid downloading attachments:

docker run -t -e TRELLO_API_KEY=YOUR_KEY -e TRELLO_TOKEN=YOUR_TOKEN -v /backups:/app jtpio/trello-full-backup trello-full-backup -a 0

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]] [-i] [-t] [-B] [-L] [-C] [-o]
                          [-a [ATTACHMENT_SIZE]]

Trello Full Backup

optional arguments:
  -h, --help            show this help message and exit
  -d [DEST]             Destination folder
  -i, --incremental     Backup in an already existing folder incrementally
  -t, --tokenize        Tokenize the names for folders and files. Useful for
                        scripts
  -B, --closed-boards   Backup closed board
  -L, --archived-lists  Backup archived lists
  -C, --archived-cards  Backup archived cards
  -m, --my-boards       Backup my personal boards
  -o, --organizations   Backup organizations
  -a [ATTACHMENT_SIZE], --attachment-size [ATTACHMENT_SIZE]
                        Attachment size limit in bytes. Set to -1 to disable
                        the limit

If neither the -m or -o switches are specified, the script will default to backing up personal boards only.

Incremental mode

The incremental mode is useful for scripts. It will replace the names of the folders in each board by unique tokens. Furthermore, it allows the user to specify the same directory for backup. This will update all the json and description.md files. However it will download the attachment only if they have changed from the last backup.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].