Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marioidival/dumpyme
Command line package to get dumps of databases
https://github.com/marioidival/dumpyme
Last synced: about 2 months ago
JSON representation
Command line package to get dumps of databases
- Host: GitHub
- URL: https://github.com/marioidival/dumpyme
- Owner: marioidival
- License: mit
- Created: 2015-02-12T14:11:26.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-05T04:55:47.000Z (over 9 years ago)
- Last Synced: 2024-09-19T15:38:09.449Z (3 months ago)
- Language: Python
- Homepage:
- Size: 3.78 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dumpy Me
Command line package to get dumps of databases
## Install
pip install dumpyme
## Usage
### 1 - Create dumpyfile
dumpy init
Creating dumpyfile...
dumpyfile in your home directory as ~/.dumpyfile.ini##### Initial dumpyfile:
[local_info]
dump_location = /Users/marioidival/dumpys/[my_project]
host = 187.111.44.100
db_name = mongodb
db = my_project_db
user = root[my_project2]
host = 192.191.190.89
db_name = mongodb
db = my_project2_db
user = my_root##### help:
Usage: dumpy init [OPTIONS]Create dumpyfile and move to home directory. `dumpyfile` is configuration
file of dumpyme, there exists informations of projects like host, user,
database to get dump, database types (mongodb, postgresql).Options:
--help Show this message and exit.### 2 - Add some project in dumpyfile
dumpy add
Project name: my_project
Host of project: 187.111.44.100
User of host: root
Name of database: my_project_db
Database Type (e.g: mongodb, postgresql...): mongodbAdding in dumpyfile:
Project: my_project
Host: 187.111.44.100
Database: my_project_db
Database Type: mongodb##### help:
Usage: dumpy add [OPTIONS]Add new project in dumpfile. If you want, you can add manually in
~/.dumpyfile.ini.[project_name]
host = host_to_project
user = user_of_host
db = database_type (e.g: mongodb, postgresql...)
db_name = database_nameOptions:
--project TEXT
--host TEXT
--user TEXT
--db_name TEXT
--db [mongodb]
--help Show this message and exit.### 3 - List projects in dumpyfile
dumpy projects
Projects:
========================================
-------> my_project
host: 187.111.44.100
db_name: my_project_db
db mongodb
user: root
-------> my_project2
host: 192.191.190.89
db_name: my_project2_db
db: mongodb
user: my_root
-------> project2
host: 182.182.82.82
db_name: project2_production
db: mongodb
user: riit
========================================or list name of projects:
dumpy projects --name
Projects:
========================================
my_project
my_project2
project2
========================================##### help:
Usage: dumpy projects [OPTIONS]List informations of projects in dumpyfile
Options:
--name Show only name of projects
--help Show this message and exit.### 4 - Get dump of project
dumpy me my_project
##### help:
Usage: dumpy me [OPTIONS] PROJECTGet dump database of project
Options:
--help Show this message and exit.### 5 - Delete projects in dumpyfile
dumpy delete my_project
Project removed sucessfully#### help:
Usage: dumpy delete [OPTIONS] PROJECTDelete project of dumpfile
Options:
--help Show this message and exit.### Databases supported
* MongoDB