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

FAQ item for Git as a backing store - will DB be rebuilt from Git content? #852

Closed
paul-hammant opened this issue May 28, 2019 · 5 comments

Comments

3 participants
@paul-hammant
Copy link

commented May 28, 2019

https://docs-beta.requarks.io/storage/git

^ I can't find which repo that content is in.

Git as a backing store: livin' the dream, but what's that about making a RDBMS choice too? Is that an cache/index? Can it be wiped and then rebuild from Git content? I'm asking because I'm interested in knowing if it is possible to backup (he he, clone) the Git store and consider that all needed to rebuild the content and navigation of a wiki.js site is in there. Sure, there's some user/password database that's needed too - but thing needing backup in order to claim "no content/history lost chief" is the Git repo, or the Git repo and some other bits and pieces?

@NGPixel

This comment has been minimized.

Copy link
Member

commented May 29, 2019

The DB is the primary content source, along with stuff like users, permissions, tags, etc.

Content can be backed up in a git repository and kept in sync. New content created outside of the wiki will automatically be imported as part of the sync.

So can you start brand new wiki and import content only found in a git repository? Yes. Just keep in mind that data that only lives in the DB (users, permissions, etc.) will not be restored.

@paul-hammant

This comment has been minimized.

Copy link
Author

commented May 29, 2019

Thanks for the update - when restoring from Git (after recreating users in the RDBMS), are all the historical changes linked to the original user?

I ask because it looks like the commits to the repo being done via a single user ID. If the users making individual wiki/content changes are preserved in some way, it it not as multiple committers as in conventional Git concepts.

@JLopeDeB

This comment has been minimized.

Copy link

commented May 29, 2019

The DB is the primary content source, along with stuff like users, permissions, tags, etc.

Content can be backed up in a git repository and kept in sync. New content created outside of the wiki will automatically be imported as part of the sync.

So can you start brand new wiki and import content only found in a git repository? Yes. Just keep in mind that data that only lives in the DB (users, permissions, etc.) will not be restored.

I've tried reinstalling several times using the same repo which holds all my pages but the mongodb is not loading all the entries. I can navigate to all pages by manually entering the url, is jus that I can't see them in the "all" pages navigation bar, just like described in https://github.com/Requarks/wiki/issues/261. Any idea on what could be happening?

@NGPixel

This comment has been minimized.

Copy link
Member

commented May 29, 2019

@paul-hammant Git history is not imported at the moment. However I suggest requesting it on https://requests.requarks.io/wiki

@JLopeDeB This discussions concerns v2 only and is unrelated to your issue. Please create a separate issue for your problem.

@paul-hammant

This comment has been minimized.

Copy link
Author

commented May 30, 2019

Thanks @NGPixel - I'll request the feature. See here and here.

@NGPixel NGPixel closed this Jun 1, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.