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

Disable automatic database backups? #1596

Closed
sahibalejandro opened this issue Aug 1, 2018 · 4 comments
Closed

Disable automatic database backups? #1596

sahibalejandro opened this issue Aug 1, 2018 · 4 comments

Comments

@sahibalejandro
Copy link

@sahibalejandro sahibalejandro commented Aug 1, 2018

Hi, I just installed a new VVV box and noted that when I run vagrant halt it does an automatic database backup, although this is a cool feature, in my case is a pain because my DB is 20GB big.

Is there a way to disable this feature? I did Google it but can't find anything.

Expected Behavior

Do not make automatic database backups when runningvagrant halt

Current Behavior

Automatic database backups

Possible Solution

An option to enable/disable automatic database backups

Steps to Reproduce (for bugs)

Run vagrant halt

Context

Database backups

Your Environment

  • VVV version: 2.2.1
  • VVV Git Branch: develop
  • Vagrant version: 2.1.2
  • VM Provider name: VirtualBox
  • VM Provider version: 5.2.16
  • Operating System and version: macOS 10.13.5
@tomjn
Copy link
Member

@tomjn tomjn commented Aug 1, 2018

You can create vagrant_halt_custom and vagrant_halt_custom, vagrant_destroy_custom, and vagrant_suspend_custom scripts in the config/homebin folders then reprovision. Those scripts will be ran instead of db_backup

@tomjn
Copy link
Member

@tomjn tomjn commented Aug 1, 2018

Of note, you could use that to call a custom db_backup_compressed script, that does the same thing but gzips the database files, they should compress very well

@tomjn tomjn closed this Aug 1, 2018
@sahibalejandro
Copy link
Author

@sahibalejandro sahibalejandro commented Aug 1, 2018

Would be nice to have this in the official documentation. ☝🏼
On the note, I'm not worried about compressing or disk space, I was worried by the time it takes to dump the database. 😛

Thank you so much!

@lock
Copy link

@lock lock bot commented Feb 22, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants