You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+70-2Lines changed: 70 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,16 +17,67 @@ Command line tool useful for migration, transformations, backup, and restore of
17
17
18
18
## Usage
19
19
20
-
1. Use the command `solrcopy backup` for dumping documents from a Solr core into local zip files.
20
+
### Process
21
+
22
+
1. Use the command `solrcopy backup` for dumping documents from a Solr core into local zip files:
21
23
1. Use the switch `--query` for filtering the documents extracted by using a [Solr](https://lucene.apache.org/solr/guide/8_4/the-standard-query-parser.html)[Query](https://lucene.apache.org/solr/guide/8_4/the-standard-query-parser.html)
22
24
2. Use the switch `--order` for specifying the sorting of documents extracted.
23
25
3. Use the switches `--limit` and `--skip` for restricting the number of documents extracted.
24
26
4. Use the switches `--select` and `--exclude` for restricting the columns extracted.
25
-
2. Use the command `solrcopy restore` for uploading the extracted documents from local zip files into the same Solr core or another with same field names as extracted.
27
+
2. Use the command `solrcopy restore` for uploading the extracted documents from local zip files into the same Solr core or another with same field names as extracted:
26
28
1. The documents are updated in the target core in the same format that they were extracted.
27
29
2. The documents are inserted/updated based on their `uniqueKey` field defined in core.
28
30
3. If you want to change the documents/columns use the switches in `solrcopy backup` for extracting more than one slice of documents to be updated.
29
31
32
+
### Workflow
33
+
34
+
```mermaid
35
+
flowchart LR
36
+
A[(Source Solr Core)] --> B(solrcopy backup)
37
+
B --> F[/Local zip archives/]
38
+
F --> G(solrcopy restore)
39
+
G --> M[(Target Solr core)]
40
+
```
41
+
42
+
#### Backup Workflow
43
+
44
+
```mermaid
45
+
flowchart TD
46
+
A[(Source Solr Core)] --> B(solrcopy backup)
47
+
B --> C{Backup options}
48
+
C --> C1[Filter: --query / --fq]
49
+
C --> C2[Select columns: --select / --exclude]
50
+
C --> C3[Slice and order: --order / --skip / --limit / --iterate-by]
0 commit comments