PHPackages                             jbelien/ovh-cloud-snapshot - 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. [API Development](/categories/api)
4. /
5. jbelien/ovh-cloud-snapshot

ActiveProject[API Development](/categories/api)

jbelien/ovh-cloud-snapshot
==========================

OVH Cloud Automated Snapshot (via OVH API)

v1.3.0(7y ago)262282[1 issues](https://github.com/jbelien/OVH-Cloud-Snapshot/issues)[2 PRs](https://github.com/jbelien/OVH-Cloud-Snapshot/pulls)GPL-3.0-or-laterPHP

Since Jun 19Pushed 3y ago5 watchersCompare

[ Source](https://github.com/jbelien/OVH-Cloud-Snapshot)[ Packagist](https://packagist.org/packages/jbelien/ovh-cloud-snapshot)[ RSS](/packages/jbelien-ovh-cloud-snapshot/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (3)Versions (12)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/e47ea000652ca0c0c32f189ed41d0035cf7b2737f9075259d79415f2f21017d8/68747470733a2f2f706f7365722e707567782e6f72672f6a62656c69656e2f6f76682d636c6f75642d736e617073686f742f762f737461626c65)](https://packagist.org/packages/jbelien/ovh-cloud-snapshot)[![Total Downloads](https://camo.githubusercontent.com/99ffd07fd5a84b529ffa547e77336f1cff1589433319b3278f16ec62e3365eca/68747470733a2f2f706f7365722e707567782e6f72672f6a62656c69656e2f6f76682d636c6f75642d736e617073686f742f646f776e6c6f616473)](https://packagist.org/packages/jbelien/ovh-cloud-snapshot)[![Monthly Downloads](https://camo.githubusercontent.com/1d723d1f1525791fbb5b16eb8c6631c8a9fe55425d586fe6adfb8dfa853b3a4d/68747470733a2f2f706f7365722e707567782e6f72672f6a62656c69656e2f6f76682d636c6f75642d736e617073686f742f642f6d6f6e74686c792e706e67)](https://packagist.org/packages/jbelien/ovh-cloud-snapshot)

OVH Cloud Automated Snapshot
============================

[](#ovh-cloud-automated-snapshot)

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

[](#requirements)

- [PHP](https://www.php.net/)
- [Composer](https://getcomposer.org/)

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

[](#installation)

```
composer create-project jbelien/ovh-cloud-snapshot
```

Configuration
-------------

[](#configuration)

### First step

[](#first-step)

Create credentials by clicking [here](https://api.ovh.com/createToken/index.cgi?POST=/cloud/project/*/instance/*/snapshot&POST=/cloud/project/*/volume/*/snapshot&GET=/cloud/project/*/snapshot&GET=/cloud/project/*/volume/snapshot&DELETE=/cloud/project/*/snapshot/*&DELETE=/cloud/project/*/volume/snapshot/*) !

- POST: `/cloud/project/*/instance/*/snapshot`
- POST: `/cloud/project/*/volume/*/snapshot`
- GET: `/cloud/project/*/snapshot`
- GET: `/cloud/project/*/volume/snapshot`
- DELETE: `/cloud/project/*/snapshot/*`
- DELETE: `/cloud/project/*/volume/snapshot/*`

### Second step

[](#second-step)

Create `snapshot.yml` in root directory with your credentials and the list of your instances/volumes :

```
---
applicationKey:
applicationSecret:
consumerKey:

duration:

projects:
  - id: ""
    instances:
      - &myinstance
          id: ""
          name: "My Instance"
    volumes:
      - &myvolume
        id: ""
        name: "My Volume"
    protected:
      instances:
        - ""
      volumes:
  - id: ""
    instances:
      ...
    volumes:
      ...
    protected:
      instances:
      volumes:
  ...
```

#### Configure `duration`

[](#configure-duration)

To determine after how many days/weeks/months/... you want snapshots to be delete, use `duration` option.
This option uses PHP `DateInterval` format :

The format starts with the letter P, for "period." Each duration period is represented by an integer value followed by a period designator. If the duration contains time elements, that portion of the specification is preceded by the letter T.

Here are some simple examples. Two days is `P2D`. Two seconds is `PT2S`. Six years and five minutes is `P6YT5M`.

You can protect snapshots from deletion by setting its id in `protected.instances` or `protected.volumes`.

Run
---

[](#run)

```
php snapshot.php

```

Dry-run mode (simulates the query) :

```
php snapshot.php --dry-run

```

Crontab
-------

[](#crontab)

You can automate the snapshot creation by creating a crontab making a call to this tool.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

8

Last Release

2670d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b434ff5f6f9dcc7095f45c43254299b3cc8f6c83e9a757a80a6b7d229a4c9701?d=identicon)[jbelien](/maintainers/jbelien)

---

Top Contributors

[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (49 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (39 commits)")[![jbelien](https://avatars.githubusercontent.com/u/1150563?v=4)](https://github.com/jbelien "jbelien (13 commits)")[![kumy](https://avatars.githubusercontent.com/u/176794?v=4)](https://github.com/kumy "kumy (1 commits)")

---

Tags

cloudovhovh-apiphp

### Embed Badge

![Health badge](/badges/jbelien-ovh-cloud-snapshot/health.svg)

```
[![Health](https://phpackages.com/badges/jbelien-ovh-cloud-snapshot/health.svg)](https://phpackages.com/packages/jbelien-ovh-cloud-snapshot)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

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