JO3QMA / HMP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HMP

Yaml形式の設定ファイルを使う、簡単なバックアップツールです。 名前は人類は衰退しましたのヒト・モニュメント計画の英訳、Human Monument Projectの頭文字から来ています。

Description

簡単にラフなバックアップを行いたいと思い、GSuiteのGoogle Driveとローカルでそれぞれバックアップを保持するツールです。 Google Driveは無制限なのでフルバックアップのみ対応予定です。

Demo

VS.

Requirement

Usage

  1. config.ymlで設定をする。

Install

Settings

config.yml

ルートディレクトリにあるconfig.yml

config_dir: './config' # バックアップの設定ファイルを置くディレクトリ

default: # デフォルト値、それぞれの設定ファイルで同じ値を指定した場合、上書きされる。
  target: './target' # バックアップ先
  format: 'zip'      # バックアップの圧縮形式(現在zipのみ) ※未使用
  time: '06:00:00'   # バックアップ開始時間
  keep: 7            # バックアップの保持日数(0ならば削除なし)

(samename).yml

config.ymlのconfig_dirの中のymlファイル

name: "Minecraft_Server" # バックアップの名前
description: "Minecraft Server" # 説明 ※未使用
backup: # config.ymlのデフォルト値と対応
  source: "/home/jo3qma/works/Twikeshi" # バックアップ元

Contribution

Licence

MIT

Author

JO3QMA

About


Languages

Language:Ruby 100.0%