From 5430abc3c24aaba41a594b207f074b702909ed80 Mon Sep 17 00:00:00 2001 From: johnnyaug Date: Thu, 8 Oct 2020 13:15:03 +0300 Subject: [PATCH] document merge after import (#788) --- docs/reference/import.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/reference/import.md b/docs/reference/import.md index 48801cf534a..fd66149d7cd 100644 --- a/docs/reference/import.md +++ b/docs/reference/import.md @@ -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.