PHPackages                             webiny/backup-service - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. webiny/backup-service

ActiveLibrary[File &amp; Storage](/categories/file-storage)

webiny/backup-service
=====================

Simple library to do backups and store them to AWS S3

v1.0.0(8y ago)29911MITPHPPHP &gt;=7.0

Since Apr 3Pushed 8y ago8 watchersCompare

[ Source](https://github.com/Webiny/BackupService)[ Packagist](https://packagist.org/packages/webiny/backup-service)[ Docs](http://www.webiny.com/)[ RSS](/packages/webiny-backup-service/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (7)Versions (10)Used By (1)

Backup Service
==============

[](#backup-service)

This library is used to create an encrypted backup archive of one or more folders on your server and one or more MongoDb databases. Once the backup archive is created, it will be stored to the defined S3 bucket.

The library automatically manages the backups on the S3 bucket and it only uploads the backup archive once. If required to keep a weekly, monthly or yearly, using the S3 API backup copies are made, so we don't need to re-upload the same archive multiple times.

The backup is a `tar gzip` archive, which is then encrypted with either `openssl` or `gpg` with the defined passphrase and only then, in this encrypted state, is transferred to the S3 bucket.

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

[](#installation)

The best way to install the component is using Composer.

```
composer require webiny/backup-service
```

For additional versions of the package, visit the [Packagist page](https://packagist.org/packages/webiny/backup-service).

Configuration
-------------

[](#configuration)

To run the backup script, just create a small PHP script and point it to your config file:

```
