All Projects → jasperf → trellis-sync

jasperf / trellis-sync

Licence: MIT license
Trellis Database and Uploads Folder Synchronisation scripts and example WP CLI Aliases

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to trellis-sync

Trellis
WordPress LEMP stack with PHP 8.0, Composer, WP-CLI and more
Stars: ✭ 2,295 (+8400%)
Mutual labels:  wp-cli, trellis
bedrock-site-protect
Ansible role: Add htpasswd protection to Trellis (Bedrock-Ansible) WordPress sites.
Stars: ✭ 79 (+192.59%)
Mutual labels:  trellis
ds-cli
DS-CLI is now a core runtime component of DesktopServer (https://serverpress.com). This project is an ensemble of the latest command line interface tools such as Composer, PHPUnit, WP-CLI, and other cross-platform components that are important to professional WordPress developers.
Stars: ✭ 19 (-29.63%)
Mutual labels:  wp-cli
scaffold-command
Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
Stars: ✭ 149 (+451.85%)
Mutual labels:  wp-cli
server-command
Launches PHP's built-in web server for a specific WordPress installation.
Stars: ✭ 69 (+155.56%)
Mutual labels:  wp-cli
WordPress-Distribution
This repository helps you to get a local new and fresh WordPress for everything you want (e.g. Developing, Testing, etc.).
Stars: ✭ 16 (-40.74%)
Mutual labels:  wp-cli
Wp Cli Login Command
Log in to WordPress with secure passwordless magic links.
Stars: ✭ 200 (+640.74%)
Mutual labels:  wp-cli
import-command
Imports content from a given WXR file.
Stars: ✭ 19 (-29.63%)
Mutual labels:  wp-cli
checksum-command
Verifies file integrity by comparing to published checksums.
Stars: ✭ 29 (+7.41%)
Mutual labels:  wp-cli
wp-super-cache-cli
A CLI interface for the WP Super Cache plugin
Stars: ✭ 53 (+96.3%)
Mutual labels:  wp-cli
tiller-circleci
Deploy Trellis, Bedrock and Sage via CircleCI
Stars: ✭ 14 (-48.15%)
Mutual labels:  trellis
enveigle
Deceive Ansible to template Trellis .env files to local Bedrock
Stars: ✭ 18 (-33.33%)
Mutual labels:  trellis
wordpress-project
Generic project structure for WordPress website industrialisation.
Stars: ✭ 28 (+3.7%)
Mutual labels:  wp-cli
regolith
A WordPress installation template that's a little bit looser than Bedrock
Stars: ✭ 24 (-11.11%)
Mutual labels:  wp-cli
wp-cli-build
Fetch specific versions of plugins/themes from wordpress.org using a build file
Stars: ✭ 45 (+66.67%)
Mutual labels:  wp-cli
Wplib Box
The Best Local Dev Server for WordPress Developers
Stars: ✭ 204 (+655.56%)
Mutual labels:  wp-cli
susa
High Performance Computing (HPC) and Signal Processing Framework
Stars: ✭ 55 (+103.7%)
Mutual labels:  trellis
wp-cli-seed-command
WP CLI Seed Command is extension for WP-CLI to seed database with sample data
Stars: ✭ 20 (-25.93%)
Mutual labels:  wp-cli
wp-cli-dev
🛠 WP-CLI development environment that allows for easy development across all packages
Stars: ✭ 29 (+7.41%)
Mutual labels:  wp-cli
media-command
Imports files as attachments, regenerates thumbnails, or lists registered image sizes.
Stars: ✭ 40 (+48.15%)
Mutual labels:  wp-cli

Trellis Sync

This is a repository for the Trellis Database and Uploads Folder Synchronisation scripts and WP CLI Aliases. Two scripts have been added here. The database backup script or sync-db-from-prod.sh to synch the production database with the one on the local server and sync-all.sh to synchronize both the database and uploads folder.

File location and changes

Make sure you change the domain in both the shell script and your wp-cli.yaml files. For using the sync-db-from-prod.sh script it should be placed in the Wordpress root. For using the sync-all.sh it is setup to be run from site/scripts/. Or at least it is setup from a subdirectory inside your WordPress root or site folder.

Database Sync (Production -> Dev)

The Database sync script sync-db-from-prod.sh and aliases setup has been created by Raquelle. See Roots Blog post. It is set up to sync the database from production and update the one on development or on the local server.

Sync All

The Sync All script sync-all.sh which can be used to synchronize the uploads folder and database has been created by Ben Word and thread post where he added can be found at Roots Discourse . It will work for synching to and from production to local and to and from staging to local. It is located in the scripts folder, but will work from any sub directory in your WordPress root which often tends to be site witha standard Trellis setup with Bedrock.

Installation

Installation can be done using composer require trellis-sync/trellis-sync. This is still not fully tested so do make a backup first!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].