2019-10-02 22:19:02 +00:00
|
|
|
# Magnetico database migrator
|
|
|
|
|
|
|
|
[![pipeline status](https://gitlab.com/skobkin/magnetico-go-migrator/badges/master/pipeline.svg)](https://gitlab.com/skobkin/magnetico-go-migrator/commits/master)
|
|
|
|
|
|
|
|
This simple utility will help you to migrate your data from legacy
|
|
|
|
Python version of `magneticod` to the new Go version which uses new
|
|
|
|
persistence layer.
|
|
|
|
|
2019-10-18 21:14:56 +00:00
|
|
|
## Installation
|
2019-10-02 22:19:02 +00:00
|
|
|
|
|
|
|
TBW
|
|
|
|
|
2019-10-18 21:14:56 +00:00
|
|
|
## Usage
|
2019-10-02 22:19:02 +00:00
|
|
|
|
2019-10-18 21:14:56 +00:00
|
|
|
### Important notes:
|
|
|
|
|
2019-10-18 21:15:49 +00:00
|
|
|
- `--py-database` syntax is similar but not the same. But if you'll use just
|
2019-10-18 21:14:56 +00:00
|
|
|
`sqlite3://` schema and path to the database you'll be ok.
|
2019-10-18 21:15:49 +00:00
|
|
|
- `--go-database` you can use the same syntax as used in `magneticod` CLI interface.
|
2019-10-18 21:14:56 +00:00
|
|
|
|
|
|
|
### Merging with magneticod-go's PostgreSQL
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./magnetico-go-migrator --py-database=sqlite3:///path/to/old/database.sqlite3 --go-database=postgres://username:password@hostname/db_name?port=5432&sslmode=disable
|
|
|
|
```
|
|
|
|
|
|
|
|
### Merging into magneticod-go's Beanstalk
|
|
|
|
|
|
|
|
```shell
|
|
|
|
./magnetico-go-migrator --py-database=sqlite3:///path/to/old/database.sqlite3 --go-database=beanstalk://127.0.0.1:11300/magneticod_tube
|
|
|
|
```
|