Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

mongoq: is mongoq support local backup? #29

Open
hong318500 opened this issue Nov 14, 2016 · 3 comments
Open

mongoq: is mongoq support local backup? #29

hong318500 opened this issue Nov 14, 2016 · 3 comments

Comments

@hong318500
Copy link

strata supports local backup, is mongoq support local query?
checked mongoq --help and seems no options for local backup query.

@AGFeldman
Copy link
Contributor

Currently, mongoq only queries S3

@AGFeldman
Copy link
Contributor

If anyone is interested in adding support for mongoq querying local backups, here are some steps:

  • Make sure that the mongod processes started by mongoq cannot modify the backed-up SST files. A few ways to do this:
    • Make sure that lstorage creates read-only copies of SST files upon backup, and restores appropriate permissions upon restore. This seems like the cleanest way.
    • Or start mongod read-only. This might require you to enable authentication and create read-only users.
    • Or use a read-only FUSE filesystem like rofs
  • Modify mongoq's command-line flags to use the backup directory or rofs instead of mounting S3

@hong318500
Copy link
Author

thank you for the advises.

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

No branches or pull requests

2 participants