-
Notifications
You must be signed in to change notification settings - Fork 2
Add: instructions on creating basic db backups #5
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! (with comments)
|
||
!setup/package.json | ||
backup-db.sh | ||
!setup/backup-db.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is my understanding that the bang prefix for gitignore means that you will not ignore those files. I was expecting to see that you had set setup/
as a gitignore and were making all those other files exceptions. ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want the setup files to not be gitignored for this repo incase someone wants to pull updated ones from the repo. The ones that get copied to the root from setup are gitignored
@@ -42,11 +42,19 @@ On your server: | |||
#### Adding more Wordpress Plugins | |||
Add the plugins to composer.json (search for the [here](https://wpackagist.org)); a few are in there already as examples. | |||
|
|||
#### Connecting to the MySql Container from Sequel Pro? | |||
#### Connecting to the MySql Container from Sequel Pro. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this specific to Sequel Pro or might there be other SQL tools that could work as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now specific to Sequel pro but I'm sure others could also do the job.
- Then on your local machine, copy the generated mysql dump files: `scp -P 2222 -r USER_NAME@HOST_ADDRESSS:/absolute/path/to/_db_backups/ .` | ||
- You can then use these gzipped mysql files locally when you spin up your dev environment. | ||
- *Note* You can also setup a crontab (example in the setup folder) to run this script on a certain schedule. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great.
- Remove gulp (or make it more agnostic to the setup). | ||
- Create better/safer way to backup whole site (db, uploads, etc...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -6,6 +6,7 @@ customized_files=( | |||
'deploy-exclude-list.txt' | |||
'gulpfile.js' | |||
'package.json' | |||
'backup-db.sh' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do a back up on setup? I guess it makes sense. Just curious.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. This just copies this backup shell script into the root for users to customize.
@joesepi Thanks for the review! 👍 |
No description provided.