Was going through backup and restore doc for QuestDB here: https://questdb.io/docs/operations/backup/
Is restoring a database backup a manual process as I can't always have a backup dir mounted from docker otherwise it completely ignores my current DB dir. If yes, then can't I simply replace the current DB dir when I want to restore my backup instead of mounting a different directory to docker manually?
Yes.
Restoring a backup is essentially replacing
db
directory with the backed-up directory.https://questdb.io/docs/reference/sql/backup/#restoring-from-a-backup
So if I have my db root at
/var/data/questdb
And my backup root configured as in
/var/data/questdb/conf/server.conf
When I run
it creates new directory with the date under backup root configured:
So to restore the backup I can simply overwrite
/var/data/questdb/db
with/var/data/questdb/backup/2023-10-18/db
With the latest version of QuestDB SNAPSHOT is the preferable way to do backups.