Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: db data must be deleted before restoring backup #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sergiofenoll
Copy link

Otherwise, Virtuoso logs:

app-kaleidos-triplestore-1  | 06:46:27 Remove database file before recovery
app-kaleidos-triplestore-1  | 06:46:27 Could not restore database using prefix backup_
app-kaleidos-triplestore-1  | 06:46:27 Server exiting

Although the message should be clear to the user as to what they are required to do, mentioning it specifically in the README might be useful for anyone restoring a backup for the first time (perhaps in a more stressful setting where seeing unexpected logs is the last thing they want to see).

Backups can be restored either in the running container, or through an environment variable. The existing database data must be removed before restoring a backup. You can do this using the following command:

```sh
rm data/db/virtuoso.{db,trx,pxa} data/db/virtuoso-temp.db data/db/.data_loaded data/db/.dba_pwd_set data/db/.backup_restored
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about removing .data_loaded. By removing it, we will try loading it again after restoring the database.
This may or may not be what you want. It will result in loading any file in toLoad that does not have an entry with status 2 (loaded) in select * from DB.DBA.load_list;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants