mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
Fix migrations backup/restore (#4055)
This commit is contained in:
parent
91286ab1e6
commit
e489cc5d1a
@ -333,10 +333,13 @@ export async function backup (transactorUrl: string, workspaceId: WorkspaceId, s
|
||||
})) as unknown as CoreClient & BackupClient
|
||||
console.log('starting backup')
|
||||
try {
|
||||
const domains = connection
|
||||
.getHierarchy()
|
||||
.domains()
|
||||
.filter((it) => it !== DOMAIN_TRANSIENT && it !== DOMAIN_MODEL)
|
||||
const domains = [
|
||||
...connection
|
||||
.getHierarchy()
|
||||
.domains()
|
||||
.filter((it) => it !== DOMAIN_TRANSIENT && it !== DOMAIN_MODEL),
|
||||
'_migrations' as Domain
|
||||
]
|
||||
console.log('domains for dump', domains.length)
|
||||
|
||||
let backupInfo: BackupInfo = {
|
||||
|
BIN
tests/sanity-ws/000005/_migrations-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/_migrations-1700802816425-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/_migrations-data-1700802816425-1.tar.gz
Normal file
BIN
tests/sanity-ws/000005/_migrations-data-1700802816425-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/channel-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/channel-1700802816425-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/channel-data-1700802816425-1.tar.gz
Normal file
BIN
tests/sanity-ws/000005/channel-data-1700802816425-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/contact-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/contact-1700802816425-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/contact-data-1700802816425-1.tar.gz
Normal file
BIN
tests/sanity-ws/000005/contact-data-1700802816425-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/doc-index-state-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/doc-index-state-1700802816425-0.snp.gz
Normal file
Binary file not shown.
Binary file not shown.
BIN
tests/sanity-ws/000005/fulltext-blob-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/fulltext-blob-1700802816425-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/fulltext-blob-data-1700802816425-1.tar.gz
Normal file
BIN
tests/sanity-ws/000005/fulltext-blob-data-1700802816425-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/space-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/space-1700802816425-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/space-data-1700802816425-1.tar.gz
Normal file
BIN
tests/sanity-ws/000005/space-data-1700802816425-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/task-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/task-1700802816425-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/task-data-1700802816425-1.tar.gz
Normal file
BIN
tests/sanity-ws/000005/task-data-1700802816425-1.tar.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/tx-1700802816425-0.snp.gz
Normal file
BIN
tests/sanity-ws/000005/tx-1700802816425-0.snp.gz
Normal file
Binary file not shown.
BIN
tests/sanity-ws/000005/tx-data-1700802816425-1.tar.gz
Normal file
BIN
tests/sanity-ws/000005/tx-data-1700802816425-1.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
11
tests/tool-local.sh
Executable file
11
tests/tool-local.sh
Executable file
@ -0,0 +1,11 @@
|
||||
|
||||
export MINIO_ACCESS_KEY=minioadmin
|
||||
export MINIO_SECRET_KEY=minioadmin
|
||||
export MINIO_ENDPOINT=localhost:9000
|
||||
export MONGO_URL=mongodb://localhost:27017
|
||||
export TRANSACTOR_URL=ws://localhost:3333
|
||||
export ELASTIC_URL=http://localhost:9200
|
||||
export SERVER_SECRET=secret
|
||||
|
||||
# Restore workspace contents in mongo/elastic
|
||||
node ../dev/tool/bundle.js $@
|
Loading…
Reference in New Issue
Block a user