PHPackages                             cdgrph/craft-offsite - 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. [Database &amp; ORM](/categories/database)
4. /
5. cdgrph/craft-offsite

ActiveCraft-plugin[Database &amp; ORM](/categories/database)

cdgrph/craft-offsite
====================

Off-site database backups for Craft you can actually restore — integrity-verified, monitored, and recoverable from the bucket alone.

1.0.1(1mo ago)017↓75%[1 PRs](https://github.com/cdgrph/craft-offsite/pulls)proprietaryPHPPHP ^8.2CI passing

Since Jul 17Pushed 1w agoCompare

[ Source](https://github.com/cdgrph/craft-offsite)[ Packagist](https://packagist.org/packages/cdgrph/craft-offsite)[ Docs](https://github.com/cdgrph/craft-offsite)[ RSS](/packages/cdgrph-craft-offsite/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

Offsite
=======

[](#offsite)

Scheduled, generation-managed off-site database backups for Craft CMS — with integrity-verified uploads, a remote catalog as the single source of truth, and failure notifications you can actually rely on.

Requirements
------------

[](#requirements)

- Craft CMS `^5.0`
- PHP `^8.2` with `ext-zip` and `ext-curl`
- `mysqldump` or `pg_dump` on the server — *the same requirement as Craft's own Database Backup utility* (Offsite delegates to Craft core's native backup)
- Craft's default plain-SQL backup format, or on PostgreSQL (Craft 5.2+) the pg\_dump custom format (`backupCommandFormat = 'custom'`). `tar` and `directory` are not supported and are rejected before the dump starts
- An S3-compatible object storage bucket
- Craft's `backupCommand` config setting must not be disabled (`false`) — Offsite delegates database dumps to Craft's native backup

Quick start
-----------

[](#quick-start)

```
composer require cdgrph/craft-offsite
php craft plugin/install offsite
```

Then either configure everything in the control panel (**Settings → Plugins → Offsite**) — connection and notification fields take environment variable references like `$OFFSITE_BUCKET`, with the real values in `.env` — or create `config/offsite.php`:

```
