项目作者: Carlgo11

项目描述 :
Basic backup script
高级语言: Ruby
项目地址: git://github.com/Carlgo11/backup.git
创建时间: 2014-10-07T02:35:10Z
项目社区:https://github.com/Carlgo11/backup

开源协议:The Unlicense

下载


Remote Backup Tool

This program makes remote connections through SSH to specified servers and downloads predefined paths into compressed
files.

Table of Contents

Installation

  1. Make a Docker Compose file.
  2. Edit servers.yml.
  3. Make/copy an OpenSSH client config for the servers in servers.yml.

Docker configuration

Example

  1. version: "3.4"
  2. services:
  3. backup:
  4. image: carlgo11/backup
  5. volumes:
  6. - "./ssh.key:/ssh.key:ro"
  7. - "./ssh.config:/root/.ssh/config"
  8. - "./Backups:/Backups"

Available Services

Basic

This service downloads everything from the path specified in servers.yml and turns it into a tar.gz file with the
current timestamp.

Example
  1. servers:
  2. "example-server":
  3. services:
  4. "example-service-name":
  5. type: "Basic"
  6. path: "/full/path/on/remote/server"
Variables
Name Type Description
path string Directory or file on the remote server

MailCow

This service downloads all MailCow backups that were made using their
Backup tool (not compatible with cold-standby backups).

Example
  1. servers:
  2. "example-server":
  3. services:
  4. "example-service-name":
  5. type: "MailCow"
  6. path: "/mailcow/backups/"
Variables
Name Type Description
path string MailCow backup directory on remote server

Usage

  1. docker-compose up -d