Skip to content
A simple ruby-script to create backup from checkvist
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
checkvist_api.rb
checkvist_backup.rb

README.md

checkvist_backup

A simple ruby-script to create backup from checkvist

Requirements: ruby 1.9.2 tar

How to use

Usage: checkvist_backup.rb [options]
  -v, --verbose                    Output information
  -l, --login <email>              Your login (email)
  -k, --api_key <key>              Your API key
  -d, --output_dir <dir>           Where to place the output file (defaults to current directory)
  -f, --output_filename <file>     Name of the output file (defaults to "checkvist.tar.gz")
  -a, --include_archived           Set to include archived checklists
  -h, --help                       Display this screen

Example

./checkvist_backup.rb -avl yourname@domain.com -k yoursupersecretkey

This will produce the file checkvist.tar.gz in the current directory containing all lists including the archived lists.

Cron

Cron is a great way of scheduling a backup.

If you're using RVM, you need to load that from Cron before it can execute the script.

This will produce a daily backup that will override the previous each day:

0 0 * * * bash -c 'source /home/<username>/.rvm/scripts/rvm && /usr/bin/env ruby /path/to/checkvist_backup/checkvist_backup.rb -al <checkvist login> -k <checkvist api key> -d /path/to/backup/output/file/'
Something went wrong with that request. Please try again.