PHPackages                             trellis-sync/trellis-sync - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. trellis-sync/trellis-sync

ActiveScript[Utility &amp; Helpers](/categories/utility)

trellis-sync/trellis-sync
=========================

Synchronization Tool for Trellis

0.1(8y ago)281025[7 issues](https://github.com/jasperf/trellis-sync/issues)MITShellPHP &gt;=5.6.0

Since Jun 13Pushed 8y ago5 watchersCompare

[ Source](https://github.com/jasperf/trellis-sync)[ Packagist](https://packagist.org/packages/trellis-sync/trellis-sync)[ Docs](https://github.com/jasperf/trellis-sync)[ RSS](/packages/trellis-sync-trellis-sync/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Trellis Sync
============

[](#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
-------------------------

[](#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 -&gt; Dev)
------------------------------------

[](#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](https://roots.io/leveraging-wp-cli-aliases-in-your-wordpress-development-workflow/). It is set up to sync the database from production and update the one on development or on the local server.

Sync All
--------

[](#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](https://discourse.roots.io/t/leveraging-wp-cli-aliases-in-your-wordpress-development-workflow/8414/12) . 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)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3257d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01563ca58ee6cd8347183741d139584749756ca5e02cd062915ca0b5edcc8057?d=identicon)[jasperf](/maintainers/jasperf)

---

Top Contributors

[![jasperf](https://avatars.githubusercontent.com/u/344138?v=4)](https://github.com/jasperf "jasperf (44 commits)")[![strarsis](https://avatars.githubusercontent.com/u/9271436?v=4)](https://github.com/strarsis "strarsis (3 commits)")[![frederikvdbe](https://avatars.githubusercontent.com/u/4490821?v=4)](https://github.com/frederikvdbe "frederikvdbe (1 commits)")

---

Tags

trelliswp-clibackupsyncwp-cli

### Embed Badge

![Health badge](/badges/trellis-sync-trellis-sync/health.svg)

```
[![Health](https://phpackages.com/badges/trellis-sync-trellis-sync/health.svg)](https://phpackages.com/packages/trellis-sync-trellis-sync)
```

###  Alternatives

[php-stubs/wp-cli-stubs

WP-CLI function and class declaration stubs for static analysis.

302.3M79](/packages/php-stubs-wp-cli-stubs)[laravel-admin-ext/backup

Backup extension for laravel-admin

7671.6k6](/packages/laravel-admin-ext-backup)[menatwork/synccto

Synchronize multiple contao installations with each other

2613.3k1](/packages/menatwork-synccto)[zenstruck/backup-bundle

Symfony Bundle that wraps backup commands

1710.2k](/packages/zenstruck-backup-bundle)[weareferal/remote-sync

Sync your database and assets across Craft environments

1216.0k](/packages/weareferal-remote-sync)[phpbu/phpbu-laravel

Laravel backup package - integrates phpbu with the laravel artisan command line tool

196.1k](/packages/phpbu-phpbu-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
