PHPackages                             spotman/davbackup - 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. spotman/davbackup

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

spotman/davbackup
=================

Creating backup sites in the clouds through WebDav

2.0.6(7y ago)07.3k↓50%[1 issues](https://github.com/spotman/davbackup/issues)BSD-3-ClausePHPPHP &gt;=7.2.0

Since May 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/spotman/davbackup)[ Packagist](https://packagist.org/packages/spotman/davbackup)[ Docs](http://www.slobel.ru/)[ RSS](/packages/spotman-davbackup/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (14)Used By (0)

This is a fork of original package from dmamontov.

---

PHP Backup to WebDav Server
===========================

[](#php-backup-to-webdav-server)

This package can backup files and a database to a WebDav server.

It takes the path of a given local directory and creates a PHAR archive with the files of the directory.

The base class can also connect to a given database using PDO and generate a backup file with SQL statements to recreate the database. The generated SQL file is also added to the PHAR archive.

The PHAR archive is compressed and transferred to a given remote server using the WebDAV protocol.

The package comes with several sub-classes specialized in configuring the connection to different WebDAV servers.

Requirements
------------

[](#requirements)

- PHP version 5.3.6 or higher

### Currently it supports clouds

[](#currently-it-supports-clouds)

- `Yandex Disk`
- `CloudMe`
- `GoogleDrive` working through service [dav-pocket](https://dav-pocket.appspot.com/)
- `DropBox` working through service [dropdav](https://www.dropdav.com/)
- `Mail Disk` temporary does not work
- `OneDrive` temporary does not work

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

[](#installation)

1. Install [composer](https://getcomposer.org/download/)
2. Follow in the project folder:

```
composer require spotman/davbackup ~1.1.0
```

In config `composer.json` your project will be added to the library `dmamontov/davbackup`, who settled in the folder `vendor/`. In the absence of a config file or folder with vendors they will be created.

If before your project is not used `composer`, connect the startup file vendors. To do this, enter the code in the project:

```
require 'path/to/vendor/autoload.php';
```

### Example of work

[](#example-of-work)

```
require 'DavBackup.php';

$ya = new YandexBackup('test@yandex.ru', 'test');

$ya->setDbConnection('user', 'password', 'db')
   ->setPath('/var/www/public_html')
   ->setType(YandexBackup::ZIP)
   ->setRemoveFile(false)
   ->execute();
```

### Example of adding support for WebDav cloud

[](#example-of-adding-support-for-webdav-cloud)

```
class MyDavBackup extends DavBackup
{
    const URL = 'https://dav.my.ru/';

    public function __construct($login, $password)
    {
        parent::__construct(self::URL, (string) $login, (string) $password);
    }
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 51.4% 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 ~114 days

Recently: every ~0 days

Total

13

Last Release

2657d ago

Major Versions

1.1.5 → 2.0.02019-02-07

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

2.0.2PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/55223d7fe69fe3bca3f7d7c6e184cfd9f3328bc8c2bb8921b0592f2dd8a165cc?d=identicon)[spotman](/maintainers/spotman)

---

Top Contributors

[![dmamontov](https://avatars.githubusercontent.com/u/5955726?v=4)](https://github.com/dmamontov "dmamontov (19 commits)")[![spotman](https://avatars.githubusercontent.com/u/1298838?v=4)](https://github.com/spotman "spotman (18 commits)")

---

Tags

backupWebDAV

### Embed Badge

![Health badge](/badges/spotman-davbackup/health.svg)

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[zanysoft/laravel-zip

laravel-zip is the world's leading zip utility for file compression and backup.

3142.8M15](/packages/zanysoft-laravel-zip)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[league/flysystem-webdav

WebDAV filesystem adapter for Flysystem.

762.3M56](/packages/league-flysystem-webdav)[gliterd/backblaze-b2

PHP SDK for working with backblaze B2 cloud storage.

84263.3k8](/packages/gliterd-backblaze-b2)[cwhite92/b2-sdk-php

A SDK for working with B2 cloud storage.

74146.6k2](/packages/cwhite92-b2-sdk-php)

PHPackages © 2026

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