0.0
No release in over 3 years
Low commit activity in last 3 years
cli for back up redash queries
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

RedashBackup

Simple Redash's query backup tool

Installation

Add this line to your application's Gemfile:

gem 'redash_backup'

And then execute:

$ bundle

Or install it yourself as:

$ gem install redash_backup

Usage

  • EXPORT_DIR_NAME is optional argument
  • YOUR_REDEDASH_DATABASE_URL is like postgres://username:password@host:port/database
  bundle exec redash_backup YOUR_REDEDASH_DATABASE_URL EXPORT_DIR_NAME
  # export...
  #
  # Completed export to ./queries/dashboard1/hoge.sql
  # Completed export to ./queries/dashboard1/page.sql
  # Completed export to ./queries/dashboard2/poko.sql
  # Completed export to ./queries/dashboard2/pako.sql
  # Completed export to ./queries/unused/maru.sql
  # Completed export to ./queries/unused/batu.sql
  #
  # ※ default export path: './queries'