@bluecadet/bcdb
Easily pull databases and files from Pantheon to a local MAMP instance.
Last updated 9 months ago by baerkins .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bluecadet/bcdb -g
SYNC missed versions from official npm registry.

BCDB

Easily pull databases and files from Pantheon to a local MAMP instance.

Installation

Install MAMP

Install Terminus

In Terminal, run:

$ cd ~

$ curl -O https://raw.githubusercontent.com/pantheon-systems/terminus-installer/master/builds/installer.phar && php installer.phar install

If you do not have a Pantheon Machine token, generate one. Copy the machine token to your clipboard

Authenticate Terminus in Terminal:

$ terminus auth:login --machine-token=[MACHINE_TOKEN_VALUE]

Additionally, generate and/or add an SSH key. This will allow you to easily pull files from a site.

Install BCDB

$ npm install -g @bluecadet/bcdb

Usage

config

After installing BCDB, run bcdb config. You will be asked to enter your Pantheon Machine Token.

init

In a project root directory, run bcdb init. This will ask a series of questions to initialize project configuration.

pull [--force] [-f] [--exclude=file/path]

Run bcdb pull to pull a database or files from a specfic Pantheon enviornment

To override the backup expiration and force a new database backup to be created, use the --force or -f flag:

$ bcdb pull -f

You can optionally pass directories or other rsync exclude parameters with the --exclude= argument. Seperate excludes with a comma:

$ bcdb pull --exclude=files/path
$ bcdb pull --exclude=files/path,another/path

Current Tags

  • 1.1.0                                ...           latest (9 months ago)

8 Versions

  • 1.1.0                                ...           9 months ago
  • 1.0.7                                ...           9 months ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 8
Last Month 16
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |