Skip to content

Commit 4e4c72d

Browse files
committed
update readme
1 parent 47e21f2 commit 4e4c72d

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,27 @@ $ pmdump -c examples/source_3_3_pg.yaml -f pm3.3_pg.tar.gz export
128128
### Import
129129

130130

131-
Create `dest.yaml` file
131+
Create `dest_pg.yaml` file
132132

133133
```yaml
134-
version: 3.4
135-
media_root: /path/to/media/folder/
136-
database_url: /path/to/data/papermerge.db
134+
media_root: /home/eugen/DockerCompose/pm3.4-pg/media/
135+
database_url: postgresql://coco:[email protected]:5432/pmg34?sslmode=disable
136+
app_version: 3.4
137137
```
138138

139-
```
140-
$ pmdump -c dest.yaml -f /path/to/archive.tar.gz import
139+
Run import command (notice that `import` is at the end of parameters)
140+
141+
```bash
142+
pmdump -c dest_pg.yaml -f /path/to/archive.tar.gz import
141143
```
142144

143-
Note that `export` or `import` commands are at the end of parameters list.
145+
If you are importing into SQLite database, configuration file will look like:
146+
147+
```yaml
148+
media_root: /home/eugen/DockerCompose/pm3.4-sqlite/media/
149+
database_url: sqlite:///home/eugen/DockerCompose/pm3.4-sqlite/data/db.sqlite3
150+
app_version: 3.4
151+
```
144152

145153

146154
## Development

0 commit comments

Comments
 (0)