PHPackages                             cohesiondx8/drupal-archive - 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. [CLI &amp; Console](/categories/cli)
4. /
5. cohesiondx8/drupal-archive

ActiveLibrary[CLI &amp; Console](/categories/cli)

cohesiondx8/drupal-archive
==========================

Console helper to archive/restore drupal websites.

1.0.9(7y ago)28221MITPHP

Since Nov 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cohesiondx8/drupal-archive)[ Packagist](https://packagist.org/packages/cohesiondx8/drupal-archive)[ RSS](/packages/cohesiondx8-drupal-archive/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (12)Used By (0)

Cohesion Drupal Archive
=======================

[](#cohesion-drupal-archive)

Since drush 9.x does not support `drush archive-dump` and `drush archive-restore`, we decided to create this little tool which does pretty much the same thing in a more primitive way.

There are 2 commands: `drupal-archive cda:dump && drupal-archive cda:restore` with optional parameters `--use-drush` in case you have drush &lt;= 8.1.17 and you want to use the native drush commands.

Installing
----------

[](#installing)

You will need composer installed with php &gt;= 7.1 and `mysql` client tools (mysqladmin) on your machine.

It is best to install the package globally with composer:

```
composer global require cohesiondx8/drupal-archive

```

Usage
-----

[](#usage)

### Archiving a drupal website

[](#archiving-a-drupal-website)

```
drupal-client cda:dump   [--overwrite] [--use-drush]

```

- `source` is your drupal website docroot (usually `/var/www/html`).
- `destination` is the created target archive location.
- `--overwrite` is whether you want to overwritte your archive.
- `--use-drush` if you have drush &lt;= 8.1.17 installed then you can use this parameter to call `drush archive-dump` internally.

Example:

```
drupal-client cda:dump /var/www/html/web /tmp/backup.tar --overwrite --use-drush -vvv

```

### Restoring a drupal website

[](#restoring-a-drupal-website)

```
drupal-client cda:restore   [--db-url=mysql_url] [--overwrite] [--use-drush]

```

- `source` is the archive previously created with `cda:dump`
- `destination` is the target directory where your drupal website will be extracted.
- `--overwrite` is whether you want to overwritte your archive.
- `--use-drush` if you have drush &lt;= 8.1.17 installed then you can use this parameter to call `drush archive-dump` internally.

Example:

```
drupal-client cda:restore /tmp/backup.tar /var/www/html/web-new --db-url=mysql://username:password@localhost:3306/drupal --overwrite -vvv

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Every ~8 days

Total

10

Last Release

2661d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd1709d1b0ab2bb5e2fa76c4b370286ea70287767f2453c9075bc3d5554642e6?d=identicon)[CohesionDX8](/maintainers/CohesionDX8)

### Embed Badge

![Health badge](/badges/cohesiondx8-drupal-archive/health.svg)

```
[![Health](https://phpackages.com/badges/cohesiondx8-drupal-archive/health.svg)](https://phpackages.com/packages/cohesiondx8-drupal-archive)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)[civicrm/cv

CLI tool for CiviCRM

4219.8k](/packages/civicrm-cv)

PHPackages © 2026

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