承接 pixelstudio/wp-sync-db 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pixelstudio/wp-sync-db

Composer 安装命令:

composer require pixelstudio/wp-sync-db

包简介

WordPress plugin to sync database between different installs

README 文档

README

Note: This is the combination of WP-Sync-DB and 2 of its Addons: Media Files and CLI.

Copy your database from one WP install to another with a few clicks in your dashboard.

Especially handy for syncing a local development database with a live site.

TABLE OF CONTENTS

  1. How to Use
  2. Sync Media Files
  3. WP-CLI Integration
  4. Help Videos
  5. How it Works
  6. Features Detail

How to Use

The guide below assume you're using it to sync online db with local one.

  1. Install this plugin on BOTH your online and local installation.

  2. In your online installation, go to Tools > Migrate DB > Settings tab. Tick all: "Accept pull", "Accept push", and "Enable SSL".

  3. Copy the Connection Info.

  4. In your local installation, go to Tools > Migrate DB > Migrate tab. Choose Pull or Push and paste in the Connection Info.

    PULL means downloading the online db and use it to overwrite your local db.
    PUSH is uploading your local db to overwrite online db.

  5. Configure the Search & Replace. Usually you also need to replace "https" to "http" or vice versa.

  6. Click "Migrate DB" and wait for it to finish.

Sync Media Files

Tick "Media Files" when pulling / pushing.

Currently doesn't seem to work for multisite.

WP-CLI Integration

  1. First you need to install WP-CLI. (Guide for Windows10 »)

  2. Create a migration profile in WP-Admin.

  3. Choose the migration profile you want to do and take note of the number. You will use it in the command:

    wp wpsdb migrate [profile-number]
    

    For example wp wpsdb migrate 2 will do the migration "Pull from example production".

Help Videos

Title Description Link
Feature Walkthrough A brief walkthrough of the WP Sync DB plugin showing all of the different options and explaining them. Youtube
Pulling Live Data Into Your Local Development Environment This screencast demonstrates how you can pull data from a remote, live WordPress install and update the data in your local development environment. Youtube
Pushing Local Development Data to a Staging Environment This screencast demonstrates how you can push a local WordPress database you've been using for development to a staging environment. Youtube
Media Files Addon Demo A short demo of how the Media Files addon allows you to sync up your WordPress Media Libraries. Youtube

How it works

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.

Features Detail

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

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

pixelstudio/wp-sync-db 适用场景与选型建议

pixelstudio/wp-sync-db 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.46k 次下载、GitHub Stars 达 47, 最近一次更新时间为 2019 年 03 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「database」 「plugin」 「sync」 「wordpress」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 pixelstudio/wp-sync-db 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 pixelstudio/wp-sync-db 我们能提供哪些服务?
定制开发 / 二次开发

基于 pixelstudio/wp-sync-db 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 47
  • 点击次数: 8
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 47
  • Watchers: 6
  • Forks: 509
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2019-03-19