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

Provide an option to download DB without caches #698

Open
deiviic opened this issue Mar 1, 2024 · 0 comments
Open

Provide an option to download DB without caches #698

deiviic opened this issue Mar 1, 2024 · 0 comments

Comments

@deiviic
Copy link

deiviic commented Mar 1, 2024

When downloading database, if production hasn't had caches cleared in a while, the database size gets quite big. It would be beneficial to have an option provided in the release information to download database without cache and session data, without having to clear production caches and impacting performance of the site.

Downloading database (without cache):
ssh {{ include "drupal.shellHost" . }} -J {{ include "drupal.jumphost" . }} "drush sql-dump --structure-tables-list=cache,cache_*,history,search_*,sessions" > my_database_dump.sql

--structure-tables-list flag instructs to keep the tables but not to download the data.

This could be added as an additional download option, not a replacement of the original one.

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