承接 spartakusmd/ovh-vps-snapshot 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

spartakusmd/ovh-vps-snapshot

Composer 安装命令:

composer create-project spartakusmd/ovh-vps-snapshot

包简介

OVH VPS Automated Snapshot (via OVH API)

README 文档

README

Latest Stable Version Total Downloads Monthly Downloads

OVH VPS Automated Snapshot

Requirements

Installation

composer create-project spartakusmd/ovh-vps-snapshot

Configuration

First step

Create credentials by clicking here !

Depending on the account zone, the domain may be needed to be customised. Check Supported APIs.

The script requires access to the following API endpoints.

  • GET: /vps/*
  • GET: /vps/*/snapshot
  • DELETE: /vps/*/snapshot
  • GET: /vps/*/tasks/*
  • POST: /vps/*/createSnapshot

Second step

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

---
applicationKey: <ovh_application_key>
applicationSecret: <ovh_application_secret>
consumerKey: <ovh_consumer_key>

apiEndpoint: ovh-eu

vps:
  - "vps123456.ovh.net"
  - "vps452689.ovh.net"

Run

php snapshot.php

Dry-run mode (simulates the query) :

php snapshot.php --dry-run

Crontab

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

Daily:

30 3 * * * php /opt/ovh-vps-snapshot/snapshot.php >> /var/log/ovh-vps-snapshot.log

Each Tuesday:

30 3 * * 2 php /opt/ovh-vps-snapshot/snapshot.php >> /var/log/ovh-vps-snapshot.log

统计信息

  • 总下载量: 41
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-18