Giter VIP home page Giter VIP logo

trellis-sync's Introduction

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!

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.