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

some changes #88

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
a6eacc7
major update
notslang Dec 29, 2013
39e2ce3
update again
notslang Dec 29, 2013
1702ebb
another big update
notslang Dec 29, 2013
6bc42f4
rename a little
notslang Dec 29, 2013
8a1d30d
get rid of presstrends
notslang Dec 29, 2013
3c74fa3
remove plugin updater, addons ad, and license mgmt
notslang Dec 29, 2013
e4e4bf3
finish removing "pro" suffix
notslang Dec 29, 2013
12245ad
rename & reorganize readme
notslang Dec 29, 2013
bd9eacf
add a screenshot
notslang Dec 29, 2013
cccea5f
update the readme & use github-updater for updates
notslang Dec 30, 2013
f3c75c5
explain the connection to WP Migrate DB Pro
notslang Dec 30, 2013
bac872b
talk about WP Migrate DB Media Files
notslang Dec 30, 2013
8134675
fix the markup for the readme screenshot
notslang Dec 30, 2013
82218d6
update to 1.4
notslang Dec 30, 2013
6e97877
added another video & reformatted a little
notslang Mar 25, 2014
5d28a14
remove trailing whitespace
notslang Mar 25, 2014
ca3433e
refactor to use get_wpmdb_basename function
notslang Mar 31, 2014
c6be94a
replace config.rb with a readme
notslang Mar 31, 2014
2cee331
recompile css with updated scss & compass
notslang Mar 31, 2014
29c200b
small css updates
notslang Mar 31, 2014
d3a6374
remaining updates from v1.3.2 of official
notslang Mar 31, 2014
5ab3ab9
add another video to the readme
notslang Mar 31, 2014
6099b11
remove email help section, replace with GH issues
notslang Mar 31, 2014
3ce6ee4
rename wp-migrate-db to wp-sync-db
notslang Jun 16, 2014
f8ee517
remove sass
notslang Jun 21, 2014
596a236
reformat CSS
notslang Jun 21, 2014
2b120fa
update css to v1.4
notslang Jun 21, 2014
d2324a7
remove media files addon icon
notslang Jun 21, 2014
3dc36cd
reformat code
notslang Jun 21, 2014
32f9785
update js to 1.4b
notslang Jun 21, 2014
927e82a
upgrade to 1.4b
notslang Jun 22, 2014
e9238fe
update github urls
notslang Jun 22, 2014
98cc4dd
add back diverse_array function
notslang Jun 22, 2014
6ee30e4
add an editorconfig
notslang Jun 22, 2014
d4542be
bump version
notslang Jun 22, 2014
f5d07f3
Bad link referring to old package name.
zamoose Jul 10, 2014
80d46f5
Merge pull request #4 from zamoose/patch-1
notslang Jul 12, 2014
acd33bb
Whoops, bum URL here, too.
zamoose Jul 14, 2014
d369f65
Merge pull request #5 from zamoose/patch-2
notslang Jul 15, 2014
b835a7f
fix yet another broken link - closes #7
notslang Jul 25, 2014
7bff4a3
Allow plugin to reside in mu-plugins
joshlevinson Aug 5, 2014
ffd6ab2
composer.json
etcook Aug 26, 2014
87c990b
Fix spacing
etcook Aug 26, 2014
03a7fcd
Merge pull request #13 from etcook/master
notslang Aug 26, 2014
df5d289
move validate URL function to bottom
notslang Aug 27, 2014
c0475de
use native trim & json functions
notslang Aug 27, 2014
4d7856a
Merge pull request #10 from joshlevinson/patch-1
notslang Feb 11, 2015
9eddb83
Remove concatenation
dseguy May 2, 2015
d331c82
Merge pull request #37 from dseguy/fixecho
notslang May 2, 2015
1e3751b
reformat readme with tidy-markdown
notslang Mar 1, 2016
85a619a
add composer files to gitignore
notslang Mar 7, 2016
0dd453b
remove sass-cache from gitignore - we don't use it
notslang Mar 7, 2016
63617ed
use valid SPDX identifier for license
notslang Mar 7, 2016
20af301
add basic tests
notslang Mar 7, 2016
b7dfaf6
Merge pull request #79 from wp-sync-db/add-basic-tests
notslang Mar 7, 2016
4e247de
Update README.md
ipmidev Apr 22, 2016
8f18390
Merge pull request #90 from ipmidev/patch-1
notslang Apr 24, 2016
f8f2117
prevent notices in PHP 7.1 that break admin ui
jaredh159 May 17, 2017
e33bd2d
Merge pull request #142 from jaredh159/bugfix/php-71
notslang Aug 7, 2018
575aef7
add "Looking for a Maintainer" note
notslang Aug 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

root = true

[*]
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.sass-cache
/vendor/
*.lock
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: php
php:
- '5.4'
- nightly
install: composer install
script: composer test
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

98 changes: 98 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# WP Sync DB

WP Sync DB eliminates the manual work of migrating a WP database. Copy your db from one WP install to another with a single-click in your dashboard. Especially handy for syncing a local development database with a live site.

<p align="center"><img src="https://raw.github.com/slang800/psychic-ninja/master/wp-migrate-db.png"/></p>

## Looking for a Maintainer

I've moved away from PHP & WordPress work and don't have time to maintain this. If you're a talented PHP developer I'd be happy to give you this repo. Grab the latest code from [delicious-brains](https://github.com/wp-sync-db/wp-sync-db/tree/delicious-brains), remove the license checking, branding, & other cruft, and open up a PR to show me your work.

## Description

WP Sync DB exports your database as a MySQL data dump (much like phpMyAdmin), does a find and replace on URLs and file paths, then allows you to save it to your computer, or send it directly to another WordPress instance. It is perfect for developers who develop locally and need to move their WordPress site to a staging or production server.

### Selective Sync

WP Sync DB lets you choose which DB tables are migrated. Have a huge analytics table you'd rather not send? Simply deselect it and it won't be synced.

### Bi-directional Sync

#### Pull: Replace a Local DB with a Remote DB

If you have a test site setup locally but you need the latest data from the production server, just install WP Sync DB on both sites and you can pull the live database down, replacing your local database in just a few clicks.

#### Push: Replace a Remote DB with a Local DB

If you're developing a new feature for a site that's already live, you likely need to tweak your settings locally before deploying. Once you've perfected your configuration on your development machine, it's easy to send the settings to your production server. Just push to the server, replacing your remote database with your local one.

### Database Export & Backup

Not only can WP Sync DB pull and push your DB: it can export your DB to an SQL file that you can save and backup wherever you want. No need to ssh into your machine or open up phpMyAdmin.

### Encrypted Transfers

All data is sent over SSL to prevent your database from being read during the transfer. WP Sync DB also uses HMAC encryption to sign and verify every request. This ensures that all requests are coming from an authorized server and haven't been tampered with en route.

### Automatic Find & Replace

When migrating a WordPress site, URLs in the content, widgets, menus, etc need to be updated to the new site's URL. Doing this manually is annoying, time consuming, and very error-prone. WP Sync DB does all of this for you.

### Stress Tested on Massive Sites

Huge database? No prob. WP Sync DB has been tested with tables several GBs in size.

### Detect Limitations Automatically

WP Sync DB checks both the remote and local servers to determine limitations and optimize for performance. For example, we detect the MySQL `max_allowed_packet_size` and adjust how much SQL we execute at a time.

### Sync Media Libraries Between Installations

Using the optional [WP Sync DB Media Files](https://github.com/wp-sync-db/wp-sync-db-media-files) addon, you can have media files synced between installs too.

## Installation

1. Install [github-updater](https://github.com/afragen/github-updater) by downloading the latest zip [here](https://github.com/afragen/github-updater/releases). We rely on this plugin for updating WP Sync DB directly from this git repo.
2. Install WP Sync DB by downloading the latest zip [here](https://github.com/wp-sync-db/wp-sync-db/releases). Both github-updater and WP Sync DB will now download their own updates automatically, so you will never need to go through that tedious zip downloading again.
3. Access the WP Sync DB menu option under Tools.
4. Install the optional [WP Sync DB Media Files](https://github.com/wp-sync-db/wp-sync-db-media-files) addon.

## Help Videos

### Feature Walkthrough

<https://www.youtube.com/watch?v=u7jFkwwfeJc>

A brief walkthrough of the WP Sync DB plugin showing all of the different options and explaining them.

### Pulling Live Data Into Your Local Development Environment

<http://www.youtube.com/watch?v=IFdHIpf6jjc>

This screencast demonstrates how you can pull data from a remote, live WordPress install and update the data in your local development environment.

### Pushing Local Development Data to a Staging Environment

<http://www.youtube.com/watch?v=FjTzNqAlQE0>

This screencast demonstrates how you can push a local WordPress database you've been using for development to a staging environment.

### Media Files Addon Demo

<http://www.youtube.com/watch?v=0aR8-jC2XXM>

A short demo of how the [Media Files addon](https://github.com/wp-sync-db/wp-sync-db-media-files) allows you to sync up your WordPress Media Libraries.

## Similar Tools

- [Interconnect IT's Search & Replace](https://github.com/interconnectit/Search-Replace-DB)

## Isn't this the same as WP Migrate DB Pro?

No, of course not, don't be silly. I took out the license verification code, a really shady looking PressTrends reporter, and the tab for installing the Media Files addon before I published 1.4. Release 1.3 was the same as [WP Migrate DB Pro](https://deliciousbrains.com/wp-migrate-db-pro), but I've made several improvements since then.

## Is this Illegal?

**No.** Just because this is based on the paid-for WP Migrate DB Pro, it doesn't mean I can't release it. WP Migrate DB Pro is released under GPLv2, a copyleft license that guarantees my freedom (and the freedom of all users) to copy, distribute, and/or modify this software.

I _was_ forced to rename it from "WP Migrate DB" to "WP Sync DB" after Delicious Brains decided to trademark the name "WP Migrate DB", [filed a DMCA takedown](http://wptavern.com/dmca-takedown-notice-issued-against-fork-of-wp-migrate-db-pro) against the repo, and threatened to take me to court. But they should be OK with it now.
24 changes: 0 additions & 24 deletions asset/config.rb

This file was deleted.

Loading