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

Database dump option - enhancements #483

Open
mennodekker opened this issue Aug 20, 2019 · 2 comments
Open

Database dump option - enhancements #483

mennodekker opened this issue Aug 20, 2019 · 2 comments

Comments

@mennodekker
Copy link
Contributor

Added code that does this for Gemstracker specific.
It takes all tabels in Gemstracker and can create a mysql dump from it. Currently hardcoded are the tables that are safe to export as they do not contain any sensitive data.
The mysqldump file gets stored in a specific folder, but currently is not downloadable in the interface.
In some environments it can be safer to call this controller on the commandline, as it can take a while to process.

Possible improvements:

  • Possibly add the whitelist of non-respondent data to a table or as prefix comment to the sql files.
  • Add something similar for limesurvey sources.
  • Maybe a separate option to whitelist staff accounts?
  • Add option for compression (e.g. gzip the .sql output)
  • Possibly add other options from the mysqldump-php library

Originally posted by @jvangestel in #435 (comment)

@mennodekker
Copy link
Contributor Author

It might be good to at least create a way to delete backups from the interface. Downloading is a risk, but in some setups the created files can not be deleted by the one downloading them.

If it is possible to split in smaller (appending) chunks and create a task for this the timeout won't be a problem anymore. This would break the single transaction.

@mennodekker
Copy link
Contributor Author

I noticed a nice function to filter data on export: https://github.com/ifsnop/mysqldump-php#table-specific-export-conditions could be nice to export more data while still keeping security and privacy in mind.

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

No branches or pull requests

1 participant