--pg
is specified, the metadata will be stored in the specified external PostgreSQL database. Below shows how to back up and restore the Bytebase metadata, let’s assume the metadata is stored in metadb
.
metadb
metadb_new
:
postgres
.metadb
to metadb_old
:
metadb_new
to the metadb
, which will serve as the new metadata db:
metadb2
metadb
to metadb2
first, which means to transfer
the change history to metadb2
.
Locate the migration_history
table in the dump file, and for each record, find the value metadb
which corresponds to the namespace
column, change each occurrence from metadb
to metadb2
.
metadb2
metadb2
:
--data
directory.
You can back up the --data
directory or the pgdata
subfolder.
--data
directory if any data is stored there.If Bytebase is running and not in the --readonly
mode, and you want to take the backup, then the underlying data volume must support snapshot feature where the entire directory can take a snapshot at the same time, otherwise it may produce a corrupted backup bundle.MAJOR
version change usually happens once a year. It might require manual effort from the customer. Bytebase will
try to avoid that if possible.MINOR
version is changed when the underlying database schema changes. While the upgrade does not require customer involvement. MINOR
version change usually happens about once every month.PATCH
version is changed when the new version does not include underlying database schema changes. PATCH
version change usually happens bi-weekly following our release schedule.org.opencontainers.image.revision
is the git commit hash, in the example, it corresponds to the particular git commitorg.opencontainers.image.version
is the release version, in the example, it corresponds to the 3.7.0 release branch.