GithubHelp home page GithubHelp logo

cabrerahector / database-sync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tamlyn/database-sync

0.0 2.0 0.0 16 KB

WordPress database sync plugin

Home Page: http://wordpress.org/plugins/database-sync/

PHP 100.00%

database-sync's Introduction

Database Sync

Contributors: tamlyn Tags: database, db, sync, synch, copy, deploy, stage Requires at least: 3.0 Tested up to: 4.0 Stable tag: 0.5

Sync databases across servers with a single click.

Description

WARNING: This plugin is for advanced users. If used incorrectly it could wipe out all your content!

Keeping databases in sync between development, staging and live servers can be a pain. This plugin lets you link together several WordPress installations by sharing a secret token. Once linked, administrators can pull or push the entire database between servers with just a click.

Currently syncs database only, not uploaded files.

Backups

The plugin will attempt to make local backups of the database before overwriting. These are stored as gzipped SQL files in wp-content/plugins/database-sync/backups/dbYYYYMMDD.HHMMSS.sql.gz The backups directory should be made writable, and you should keep an eye on it if you sync often as it will grow in size.

Usage

See Installation instructions.

Plugin by Outlandish

Installation

  1. Install as usual.
  2. Activate plugin.
  3. Repeat 1 & 2 on each server that you want to link.
  4. Go to Tools > Database Sync on the main server and copy the token.
  5. On the other server(s), go to Tools > Database Sync and paste the token.

You are now set up to pull from and push to the main server.

ChangeLog

Version 0.5

  • Fixed XSS vulnerability.

Version 0.4

  • Support for dumping and syncing MySQL VIEWs.

Version 0.3.1

  • Fixed E_NOTICE warning. Thanks to miniragnarok.

Version 0.3

  • Use $wpdb instead of deprecated mysqli extension. Thanks to Simon East.
  • Fixed manual dump download filename. Thanks to Ronald Mansveld.

Version 0.2

  • Initial public release.

Version 0.1

  • Internal testing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.