Skip to content

Commit

Permalink
Remove complete-insert from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mpchadwick committed Nov 1, 2020
1 parent ee2e627 commit 8fdbf0d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Download [the latest release from GitHub](https://github.com/mpchadwick/dbanon/r
`dbanon` reads from `stdin` and writes to `stdout`.

```
mysqldump --complete-insert mydb | dbanon -config=myconfig.yml | gzip > mydb.sql.gz
mysqldump mydb | dbanon -config=myconfig.yml | gzip > mydb.sql.gz
```

The `-config` flag can use bundled configurations or point to the path of a custom configuration file.
Expand All @@ -29,15 +29,15 @@ At minimum, you'll first need to run the `map-eav` subcommand. This translates E
You must feed it a `mysqldump` of `eav_entity_type` and `eav_attribute` (in that order).

```
mysqldump --complete-insert mydb eav_entity_type eav_attribute | dbanon -config=magento2 map-eav > ~/magento2-mapped.yml
mysqldump mydb eav_entity_type eav_attribute | dbanon -config=magento2 map-eav > ~/magento2-mapped.yml
```

`map-eav` will replace the attribute codes in the config file with attribute ids and print an updated config to `stdout`.

Next you'd run `dbanon` with the config generated by `map-eav`.

```
mysqldump --complete-insert mydb | dbanon -config=~/magento2-mapped.yml | gzip > mydb.sql.gz
mysqldump mydb | dbanon -config=~/magento2-mapped.yml | gzip > mydb.sql.gz
```


Expand All @@ -51,7 +51,7 @@ For this you'll first want to create a new configuration file based off the bund
Specify the path to your config file via the `-config` flag

```
mysqldump --complete-insert mydb | dbanon -config=myconfig.yml | gzip > mydb.sql.gz
mysqldump mydb | dbanon -config=myconfig.yml | gzip > mydb.sql.gz
```

See [the `etc` directory](etc/) for examples.
Expand All @@ -62,7 +62,6 @@ Columns are specified as key / value pairs. The value string winds up getting pa
## Limitations

- Currently only supports MySQL
- Currently requires `mysqldump` be run with `--complete-insert` flag.

## Updating

Expand Down

0 comments on commit 8fdbf0d

Please sign in to comment.