Trello – backup to your linux machine

Just in case, you are looking for backing up your trello account boards, you can use the following bash script to do so:

 

#!/bin/bash -
#===============================================================================
#
#          FILE: backup-trello.sh
#
#         USAGE: ./backup-trello.sh
#
#   DESCRIPTION:
#
#       OPTIONS: ---
#  REQUIREMENTS: ---
#          BUGS: ---
#         NOTES: ---
#        AUTHOR: Amit Agarwal (aka)
#  ORGANIZATION: Mobileum
# Last modified: Thu Dec 22, 2016  01:14PM
#       CREATED: 08/12/2016 09:41:08 AM IST
#      REVISION: $Revision: 1.0 $$
#===============================================================================

# Your backup directory
BDIR=/backup

# Your trello api token and key goes here ūüôā
token=<>
key=<>


# IDs of the boards go here. This is easy to get, just go to your 
# board and check the last part of URL
BOARDS=( a b )


URL="https://trello.com/b/"
POST='&actions=all&actions_limit=1000&cards=all&lists=all&members=all&member_fields=all&checklists=all&fields=all'

for i in ${BOARDS[*]}
do
    /usr/bin/curl -H 'Accept-Encoding:gzip, deflate, br' -H 'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' "$URL$i.json?&key=$key&token=$token$POST" > "$BDIR/$i.json.gz"
    # gzip -f "$BDIR/$i.json"
done

 

You can add this script in cron, if you wish to do so ūüôā

Oh, and BTW the script gets the details in zipped format so output is created as <id of board>.json.gz.

Some nice fonts in Fedora for coding

Here is link to fedoramagazine article on this:

6 great monospaced fonts for code and terminal in Fedora

And what the article does not mention is how to install these from terminal. You can use the following command to install them all

sudo dnf install levien-inconsolata-fonts.noarch \
adobe-source-code-pro-fonts.noarch mozilla-fira-fonts-common.noarch \
 mozilla-fira-sans-fonts.noarch google-droid-sans-fonts.noarch \
 google-droid-sans-mono-fonts.noarch nethack-bitmap-fonts.noarch \ 
nethack-bitmap-fonts-core.noarch

 

sysreporter on Fedora – basic system report in email

From the packages github page:

 

SysReporter

SysReporter (System Reporter) is a bash script that runs and aggregates a set of reports about its host system. The report can then be emailed to the system administrator on a daily, hourly, minutely basis.

and from dnf info

Name        : sysreporter
Arch        : noarch
Epoch       : 0
Version     : 3.0.4
Release     : 1.fc24
Size        : 17 k
Repo        : @System
From repo   : updates
Summary     : Basic system reporter with emailing
URL         : https://github.com/onesimus-systems/sysreporter
License     : MIT
Description : Basic system reporter with emailing

To install the package:

dnf install sysreporter

 

and to run :

sysreport run email
# OR
sysreport run stdout