how is the RestoreBackup in the datahub-upgrade me...
# all-things-deployment
b
how is the RestoreBackup in the datahub-upgrade meant to be used? I assume that it would be something like
Copy code
java -jar datahub-upgrade.jar -u RestoreBackup
but what would be the arguments after that? something something -a dump_file? What format is expected? Seems like parquet? running the command as-is resulted my DB being wiped 😅. Also see ES indices being cleared except for metadata_service_v1 and datasetprofileaspect_v1
e
Sorry about that. It is meant for parquet backup files as of now. We didn’t get to using sql dumps
But if you have a regular sql dump of your local db that powers datahub, the easiest way is to recreate the db first then run restore indices with -a clean (which will clean the indices before syncing them with the restored db so there is no drift between the two)
s
We have a brief doc https://datahubproject.io/docs/how/backup-datahub/ for how to take backup of datahub