PHPackages                             gkimball/backup2s3 - 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. gkimball/backup2s3

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

gkimball/backup2s3
==================

Backup files to S3

1.1(9y ago)019PHP

Since Feb 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/yourlocalwebmaster/backup2s3)[ Packagist](https://packagist.org/packages/gkimball/backup2s3)[ RSS](/packages/gkimball-backup2s3/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

DESCRIPTION
===========

[](#description)

This script should backup the files in any directory, as well as X databases, and add them to a ZIP and shoot off to S3

\##AWS CONFIGURATION##

1. Create a USER (IAM)
2. Assign that user a IAM POLICY (below)
3. Create a Bucket for that users site.
4. Get the Users credentials and add to the Child class of Backup

Example Backup Policy
---------------------

[](#example-backup-policy)

**Create a user with the PutObject IAM policy**

The policy should look like this: (Where BUCKETNAME is the lowercase name of bucket)

```

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:PutObject"
            ],
            "Resource": "arn:aws:s3:::BUCKETNAME/*”
        }
    ]
}

```

\##INSTALLATION ON SITE

1. clone this repo or `composer require "gkimball/backup2s3":"^1.0"`

\##USAGE

1. Create an entry point like "examples/backup.php" and configure credentials.
2. Add to a secure directory and run via CRON every month or so in the middle of the night.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

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 ~7 days

Total

2

Last Release

3407d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1467542?v=4)[Grant Kimball](/maintainers/yourlocalwebmaster)[@yourlocalwebmaster](https://github.com/yourlocalwebmaster)

### Embed Badge

![Health badge](/badges/gkimball-backup2s3/health.svg)

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.7k277.8M969](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k37.3M83](/packages/aws-aws-sdk-php-laravel)[andersundsehr/aus-driver-amazon-s3

Provides a FAL driver for the Amazon Web Service AWS S3.

24269.9k](/packages/andersundsehr-aus-driver-amazon-s3)[flownative/aws-s3

This Flow package allows you to store assets (resources) in Amazon's S3

18187.3k](/packages/flownative-aws-s3)[kolay/xlsx-stream

Streaming XLSX reader and writer for PHP and Laravel. Constant memory regardless of file size, direct S3 multipart streaming, optional born-indexed random access.

436.0k](/packages/kolay-xlsx-stream)[mreduar/s3m

Multipart Uploads using Laravel and AWS S3

174.2k](/packages/mreduar-s3m)

PHPackages © 2026

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