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

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

dmamontov/davbackup
===================

Creating backup sites in the clouds through WebDav

1.1.0(10y ago)362118BSD-3-ClausePHPPHP &gt;=5.3.0

Since May 10Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/2e7df12c4272913a1db3dcb0e17c0062b8b79269a91a36928914b22e5b411957/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f6461766261636b75702f762f737461626c652e737667)](https://packagist.org/packages/dmamontov/davbackup)[![License](https://camo.githubusercontent.com/3647bbe4578e584bda84c558ea02ddcae0a3f0ab21f784befe97ebe31e5bf991/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f6461766261636b75702f6c6963656e73652e737667)](https://packagist.org/packages/dmamontov/davbackup)[![Total Downloads](https://camo.githubusercontent.com/39074cb917f422369cb963bfb98de54a1f0ea5661c735eb8e2769a53e4e6716d/68747470733a2f2f706f7365722e707567782e6f72672f646d616d6f6e746f762f6461766261636b75702f646f776e6c6f616473)](https://packagist.org/packages/dmamontov/davbackup)[![PHP Classes](https://camo.githubusercontent.com/8b4a94a79f43f44687b40e0a91a226a5b6d929b69cba415d01253b2343065bf0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d636c61737365732d626c75652e737667)](http://www.phpclasses.org/package/9081-PHP-Backup-files-and-a-database-to-a-WebDav-server.html)

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 dmamontov/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->setConnection('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

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3856d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5955726?v=4)[Dmitry Mamontov](/maintainers/dmamontov)[@dmamontov](https://github.com/dmamontov)

---

Top Contributors

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

---

Tags

backupWebDAV

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/dmamontov-davbackup/health.svg)](https://phpackages.com/packages/dmamontov-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)
