Skip to content

Commit

Permalink
document merge after import (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyaug authored Oct 8, 2020
1 parent 10a211c commit 5430abc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/reference/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ To merge the changes to your main branch, run:
$ lakectl merge lakefs://example-repo@import-from-inventory lakefs://goo@master
```

#### Merging imported data to the main branch

As previously mentioned, the above command imports data to the dedicated `import-from-inventory` branch.
By adding the `--with-merge` flag to the import command, this branch will be automatically merged to your main branch immediately after the import.

```bash
lakefs import --with-merge lakefs://example-repo -m s3://example-bucket/path/to/inventory/YYYY-MM-DDT00-00Z/manifest.json --config config.yaml
```

#### Notes for using the import CLI
{: .no_toc }
1. Perform the import from a machine with access to your database, and on the same region of your destination bucket.
Expand Down

0 comments on commit 5430abc

Please sign in to comment.