Skip to content

kLOsk/WP-DBSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WP DB Sync Script

This repository contains a script to synchronize WordPress databases between local and remote environments using wp-cli. It serves as an alternative to the broken functionality of WordMove's database push/pull feature and works alongside WordMove's Movefile.

For more information on WordMove, visit the WordMove repository.

Requirements

  • wp-cli: Ensure wp-cli is installed and properly configured on both local and remote environments.
  • SSH Key-based Authentication: The script requires SSH key-based authentication for secure connections. Password logins are not supported.

Installation

To install the wp-dbsync script, run the following command:

sudo ./installer.sh

Usage

After installation, you can use the wp-dbsync command as follows:

wp-dbsync {push|pull} {environment_name}
  • {push|pull}: Specify whether you want to push to or pull from the environment.
  • {environment_name}: The name of the environment (must be defined in the Movefile and not be local).

Example

wp-dbsync pull staging

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages