Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 1 commit into from
Feb 20, 2017
Merged

Conversation

jordalgo
Copy link
Owner

No description provided.

@jordalgo
Copy link
Owner Author

@joesepi

Copy link
Contributor

@joesepi joesepi left a 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
Copy link
Contributor

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. ??

Copy link
Owner Author

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.
Copy link
Contributor

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?

Copy link
Owner Author

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.

Copy link
Contributor

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...)
Copy link
Contributor

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'
Copy link
Contributor

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.

Copy link
Owner Author

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.

@jordalgo
Copy link
Owner Author

@joesepi Thanks for the review! 👍

@jordalgo jordalgo merged commit 7cddc79 into master Feb 20, 2017
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

Successfully merging this pull request may close these issues.

2 participants