PHPackages                             tobischulz/rsync-backup-server - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tobischulz/rsync-backup-server

AbandonedArchivedProject[Utility &amp; Helpers](/categories/utility)

tobischulz/rsync-backup-server
==============================

self-host rsync backup server for laravel

0.1.2(5y ago)8164[4 issues](https://github.com/tobischulz/rsync-backup-server/issues)MITPHPPHP ^7.3

Since Oct 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/tobischulz/rsync-backup-server)[ Packagist](https://packagist.org/packages/tobischulz/rsync-backup-server)[ RSS](/packages/tobischulz-rsync-backup-server/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (11)Versions (4)Used By (0)

Rsync Backup Server
===================

[](#rsync-backup-server)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This package let you handle all of your off-site backups by your own laravel project on your own hosted server. Add your source to the database and dispatch a new backup job through the artisan command. Laravel queue system will handle all steps to backup your databases or files.

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

[](#installation)

Pull this package in using composer:

```
composer require tobischulz/rsync-backup-server
```

Publish the package files:

```
php artisan vendor:publish --provider="TobiSchulz\RsyncBackupServer\RsyncBackupServerProvider"
```

Add a backup destination storage disk `config/filesystems.php`, where to store all the backup files. Driver **has** to be **`local`**.

```
'disks' => [

    //...

    'my_backup_disk' => [
        'driver' => 'local',  // must be local
        'root' => '/Volumes/Share/rsync-backups',  // your own path
    ],

    //...
]
```

Add backup dispatch schedule command to `app\Console\Kernel.php`:

```
/**
 * Define the application's command schedule.
 *
 * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    $schedule->command('backups:dispatch')->hourly();
}
```

Set your queue system in your .env file:

```
QUEUE_CONNECTION=database  // redis for horizon
```

This package should work with every laravel queue system. Currently i tested it only with database. Make sure your migrations has been run for database queue driver.

You can publish the queue migrations with this artisan command: `php artisan queue:table`

Usage
-----

[](#usage)

Creating your first source:

```
$source = SourceServer::create([
    'name' => 'mySource',   // source name
    'host' => '123.123.123.123',    // ip of the source server
    'ssh_user' => 'forge',  // ssh user on the source server
    'ssh_private_key_path' => '~/.ssh/id_rsa',  // path to the ssh private key from backup server
    'ssh_port' => 22,   // ssh port, default 22
    'backup_hour' => 5, // this sets the schedule for 5am UTC
    'source_path' => '~/backups/*', // folder on source to backup
    'destination_disk' => 'my_backup_disk',  // disk we created in /config/filesystems.php
    'type' => 'rsync' // set 'rsync' or 'backup'
]);
```

### backup\_hour

[](#backup_hour)

Set your hour when the backup should be scheduled every day. The schedule command in `app\Console\Kernel.php` will read all source servers from database that backup\_hour is equal to the current time and dispatch the new backup job.

### ssh\_private\_key\_path

[](#ssh_private_key_path)

You will need to add your ssh public key from your backup server to every source server you want to connect to and make backups from. In this configuration you will need to set the private key of the backup server, that will be used to connect to your source server. With this database path of your private key you will be able to use different keys for each source server.

### type

[](#type)

There are two types of backups in this package. The default `backup` will create a new folder every time a backup runs. This will increase the disk usage on every backup but this should be handeld by the `cleanup` command later.

The second type is `rsync`. This type will sync the source folder with the destination folder.

### Manually dispatch Backup

[](#manually-dispatch-backup)

You can manually dispatch a new backup job by using the artisan command `php artisan backup:run mySource` where *mySource* is the source name in your database.

### Schedule Backups

[](#schedule-backups)

Backup jobs will be scheduled based on your `backup_hour` configuration on your source servers. This is handeld by the added artisan schedule command `php artisan backups:dispatch` in `app\Console\Kernel.php`.

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

This package is heavly inspired by the upcoming package [spatie/laravel-backup-server](https://spatie.be/docs/laravel-backup-server/v1/introduction) made by [Spatie](https://github.com/spatie/).

- [Tobias Schulz](https://github.com/tobischulz)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Total

3

Last Release

1853d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89fff95b130891f483965b2bcf41aa9d6e2be5b9c60050acf9d6f936f1b7b282?d=identicon)[tobiasschulz](/maintainers/tobiasschulz)

---

Top Contributors

[![tobischulz](https://avatars.githubusercontent.com/u/576014?v=4)](https://github.com/tobischulz "tobischulz (7 commits)")

---

Tags

backupslaravelphprsyncrsync-backuprsync-backup-script

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/tobischulz-rsync-backup-server/health.svg)

```
[![Health](https://phpackages.com/badges/tobischulz-rsync-backup-server/health.svg)](https://phpackages.com/packages/tobischulz-rsync-backup-server)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M187](/packages/spatie-laravel-backup)[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M368](/packages/laravel-zero-framework)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[illuminate/queue

The Illuminate Queue package.

20331.4M1.2k](/packages/illuminate-queue)

PHPackages © 2026

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