PHPackages                             ruspanzer/ya-disk-backuper - 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. ruspanzer/ya-disk-backuper

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

ruspanzer/ya-disk-backuper
==========================

0.1(9y ago)37[2 PRs](https://github.com/RuSPanzer/ya-disk-backuper/pulls)MITPHPPHP &gt;=5.4

Since Sep 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/RuSPanzer/ya-disk-backuper)[ Packagist](https://packagist.org/packages/ruspanzer/ya-disk-backuper)[ RSS](/packages/ruspanzer-ya-disk-backuper/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (4)Used By (0)

Yandex disk backuper
====================

[](#yandex-disk-backuper)

Backuper working with [Yandex Disk](http://disk.yandex.ru/) for creating backups your web sites

1 Install
---------

[](#1-install)

### 1.1 With [Composer](https://getcomposer.org/)

[](#11-with-composer)

```
composer require ruspanzer/ya-disk-backuper

```

### 1.2 Standalone

[](#12-standalone)

```
git clone git@github.com:RuSPanzer/ya-disk-backuper.git /path/to/backuper
cd /path/to/backuper
composer install

```

2 Run
-----

[](#2-run)

```
php bin/backuper.php  [args]

```

Creating backups:

```
php bin/backuper.php backuper:backup path/to/config.json

```

Decrypting backup:

```
php bin/backuper.php backuper:decrypt path/to/backup.zip.encrypted --key=

```

**For working with encrypted files need `mcrypt` extension**

3 Configuration
---------------

[](#3-configuration)

For creating backup use command `backuper:backup` with path to `config.json` as first argument

Example `config.json`

```
{
    "token": "AQAAAAFDsQDgAAN6Z0qSZqekmEFbvf5KTnfT_5r",
    "remote-backups-dir": "/TestBck/",
    "backups": {
        "site-1": {
            "crypt-key": "ThisSuperSecretKey",
            "filesystem": {
                "files": [
                    "/etc/nginx/conf.d/site1.conf"
                ],
                "dirs": [
                    "/srw/www/site1/"
                ],
                "excluded-dirs": [
                    "/srw/www/site1/data/cache"
                ]
            },
            "databases": {
                "site_1": {
                    "host": "localhost",
                    "dbname": "site_1",
                    "user": "site_user",
                    "pass": "EtHewCuh=Peu7Es1Et33E$n!1U4Y@3243q8YdAgCuq8dfd",
                    "exclude-tables": [
                        "api_logs"
                    ]
                },
                "site_1_logs": {
                    "host": "localhost",
                    "dbname": "site_1_logs",
                    "user": "site_user",
                    "pass": "EtHewCuh=Peu7Es1Et33E$n!1U4Y@3243q8YdAgCuq8dfd"
                }
            }
        },
        "my-second-backup": {
            "previous-backups-count": 3,
            "filesystem": {
                "dirs": [
                    "/srv/www/site2/"
                ],
                "excluded-dirs": [
                    "/srw/www/site1/vendor"
                ]
            }
        }
    }
}

```

Main section:

ParamRequiredDescription`token`yes[Yandex Disk OAuth token for WebDAV API](https://tech.yandex.ru/disk/webdav/)`remote-backups-dir`noRemote root dir for backups. By default is */Backups/*`backups`yesCollections of backup configs. Each backup config must have a nameOne backup configuration:

ParamRequiredDescription`previous-backups-count`noCount of previous backup saving on remote server. If count remote backups more than this param, old backups will be deleted`crypt-key`noKey for encrypting backup archive. If empty the backup will not be encrypted`filesystem`noFilesystem backup config. For details see bellow`databases`noCollections of database configsFilesystem config:

ParamRequiredDescription`files`noArray of path to one file`dirs`noArray of path to dirs. Nested dirs are included in backup recursively`excluded-dirs`noArray of dirs which will be ignored.Database config:

**Backuper working only with MySQL databases**

ParamRequiredDescription`host`yesMySQL database host`dbname`yesDatabase name`user`yesDatabase user`pass`yesPassword`exclude-tables`noArray of tables which will be ignored. Default emptyOne backup may include one fylesystem config and one databases config with more databases.

`config.json` may include more backup configurations

Automatization
--------------

[](#automatization)

Finally add backup command to your `crontab`

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

3571d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/922f43e418d7da22fecdc96daaa92a75973b41b2ab18acdaea4e930d51e6f31c?d=identicon)[ruspanzer](/maintainers/ruspanzer)

---

Top Contributors

[![RuSPanzer](https://avatars.githubusercontent.com/u/4748339?v=4)](https://github.com/RuSPanzer "RuSPanzer (13 commits)")

### Embed Badge

![Health badge](/badges/ruspanzer-ya-disk-backuper/health.svg)

```
[![Health](https://phpackages.com/badges/ruspanzer-ya-disk-backuper/health.svg)](https://phpackages.com/packages/ruspanzer-ya-disk-backuper)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[eliashaeussler/cache-warmup

Composer package to warm up website caches, based on a given XML sitemap

75419.2k9](/packages/eliashaeussler-cache-warmup)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9417.2k55](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1027.9k4](/packages/chameleon-system-chameleon-base)

PHPackages © 2026

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