PHPackages                             aaronmk44/ci4-db-backup - 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. aaronmk44/ci4-db-backup

ActiveLibrary[Database &amp; ORM](/categories/database)

aaronmk44/ci4-db-backup
=======================

A CodeIgniter 4 database backup utility

432PHP

Since Jun 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/AaronMk44/ci4-db-backup)[ Packagist](https://packagist.org/packages/aaronmk44/ci4-db-backup)[ RSS](/packages/aaronmk44-ci4-db-backup/feed)WikiDiscussions main Synced 1mo ago

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

Ci4 Database Backup
===================

[](#ci4-database-backup)

[![Packagist Version](https://camo.githubusercontent.com/b70f16f1a6be1ad1d0766d557a784e3d0283ca4db868753ca2317424675b0f1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6161726f6e6d6b34342f6369342d64622d6261636b7570)](https://camo.githubusercontent.com/b70f16f1a6be1ad1d0766d557a784e3d0283ca4db868753ca2317424675b0f1e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6161726f6e6d6b34342f6369342d64622d6261636b7570)[![Packagist License](https://camo.githubusercontent.com/f27bf0c6e5837f3ae0623529f3c42cae1687be8bb7eb4a362a4ea894dc365828/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6161726f6e6d6b34342f6369342d64622d6261636b7570)](https://camo.githubusercontent.com/f27bf0c6e5837f3ae0623529f3c42cae1687be8bb7eb4a362a4ea894dc365828/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6161726f6e6d6b34342f6369342d64622d6261636b7570)

Overview
--------

[](#overview)

Ci4 Database Backup is a PHP library designed to facilitate database backups for applications built with CodeIgniter 4 and other PHP Frameworks. It's able to operate in native PHP project too. This library provides an easy way to create SQL dumps of your MySQL databases.

Features
--------

[](#features)

- Simple and easy to use
- Generates SQL dumps of your database
- Supports CodeIgniter 4

Installation
------------

[](#installation)

You can install this library via Composer. Run the following command:

```
composer require aaronmk44/ci4-db-backup
```

Usage
-----

[](#usage)

Here is an example of how to use the `Ci4 Database Backup` library:

### Basic Usage

[](#basic-usage)

1. **Include Autoload File**: Ensure you include the Composer autoload file in your script.
2. **Create a Backup Script**:

```
