@@ -92,16 +92,59 @@ retrieval:
92
92
- initialize
93
93
94
94
spec :
95
+ # The initialize stage provides declarative initialization of the PostgreSQL data directory used by Database Lab Engine.
96
+ # The stage must not contain physical and logical restore jobs simultaneously.
95
97
initialize :
96
98
jobs :
97
- # - name: logical-restore
98
- # options:
99
- # dumpFile: /tmp/db.dump
100
- # forceInit: false
101
- # dbName: test
102
- # partial:
103
- # tables:
104
- # - test
99
+ # Dumps PostgreSQL database from provided source.
100
+ - name : logical-dump
101
+ options :
102
+ # The dump file will be automatically created on this location and then used to restore.
103
+ dumpLocation : /tmp/db.dump
104
+
105
+ # The Docker image containing the tools required to get a dump.
106
+ dockerImage : " postgresai/retrieval:12"
107
+
108
+ # Connection parameters of the database to be dumped.
109
+ connection :
110
+ type : local
111
+ dbname : postgres
112
+ host : 127.0.0.1
113
+ port : 5432
114
+ username : postgres
115
+ password : postgres # The environment variable PGPASSWORD can be used instead of this option.
116
+
117
+ # Options for a partial dump.
118
+ partial :
119
+ tables :
120
+ - test
121
+
122
+ # The number of parallel jobs to get a dump.
123
+ parallelJobs : 1
124
+
125
+ # Options for direct restore to Database Lab Engine instance.
126
+ restore :
127
+ # Restore data even if the Postgres directory (`global.dataDir`) is not empty.
128
+ # Note the existing data might be overwritten.
129
+ forceInit : true
130
+
131
+ # Restores PostgreSQL database from the provided dump.
132
+ - name : logical-restore
133
+ options :
134
+ dbname : test
135
+ # The location of the archive file (or directory, for a directory-format archive) to be restored.
136
+ dumpLocation : /tmp/db.dump
137
+
138
+ # Restore data even if the Postgres directory (`global.dataDir`) is not empty.
139
+ # Note the existing data might be overwritten.
140
+ forceInit : false
141
+
142
+ # Options for a partial dump.
143
+ partial :
144
+ tables :
145
+ - test
146
+
147
+ # Restores database data from a physical backup.
105
148
- name : physical-restore
106
149
options :
107
150
tool : walg
0 commit comments