ifour-db

Dump Remote DB to local machine


Keywords
ifour
License
ISC
Install
npm install ifour-db@1.0.0

Documentation

ifour database dump


Commands:

ifour-db pull [-l, --local] LOCAL_DB_NAME [-L, --live] LIVE_DB_NAME

Usage:


If your current working directory contains a package.json file, it will look for these keys/values below:

Example package.json file

{
	"name": "website",
	"ifour": {
		"db": {
			"local": "LOCAL_DB_NAME",
			"live" : "LIVE_DB_NAME"
		},
	},
}

But if you want to sync DB's whilst in a different directory without a package.json file, you can use the params as shown at the top of this page.

.ifour-global.json file:


This file contains all the default parameters to use for stuff like server configs

{
	"name": "ifour-global",
	"description": "Global config file",
	"private": true,

	"ifour": {
		"remoteServers": {
			"default": "EXAMPLE_SERVER",
			"EXAMPLE_SERVER": {
				"hostname": "192.168.33.10",
				"username": "USERNAME",
				"privateKey": "/Users/USER/insecure_private_key"
			}
		}
	}
}

TODO:


- interface to parse commands and call config functions with params,