smalot/carbon14

安装: 5

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 4

分支: 0

开放性问题: 0

类型:项目

v0.3.0 2017-01-02 11:47 UTC

This package is not auto-updated.

Last update: 2024-09-14 20:14:54 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock

安装

下载

# Download the latest release
wget -O- https://github.com/smalot/carbon14/releases/download/v0.3.0/carbon14.phar > carbon14

# Add execution flag
chmod +x carbon14

# Check
./carbon14 list

使用最新版本号更新URL

初始化

在此处检索您的私有访问令牌 https://console.online.net/en/api/access

然后,运行以下命令行

carbon14 init

设置将存储在此文件中

$HOME/.carbon14.yml

命令

Available commands:
  cron                Cron process
  help                Displays help for a command
  init                Init Carbon14
  list                Lists commands
  self-update         Updates Carbon14 to the latest version
 archive
  archive:freeze      Archive files from temporary storage
  archive:job:list    List all jobs of an archive
  archive:key:delete  Delete an archive's encryption key
  archive:key:get     Get an archive's encryption key
  archive:key:set     Set an archive's encryption key
  archive:list        List all archives
  archive:restore     Unarchive files into temporary storage
 job
  job:list            Get a list of jobs
  job:run             Run a job
 safe
  safe:create         Create a safe
  safe:delete         Delete a safe (archives included)
  safe:list           Get a list of the user's safes

作业

作业是一系列基本任务

  • 选择安全的源(使用配置文件或在命令行中强制执行
  • 选择(最终创建)存档
  • 使用提供一个或多个文件的源
  • 将文件上传到存档(使用FTP协议可恢复
  • 在存档中进行最终清理

直接

direct源支持由symfony/finder文件提供的基本方法。

直接文件传输的示例文件。($HOME/.carbon14/redmine.yml

name: 'Redmine'
description: 'Transfer the 2 lastest backup files'
status: active
last_execution: '2016-12-31 12:51:00'
source:
  type: direct
  settings:
    finder:
      in: ['/data/redmine/backup']
      depth: '== 0'
      name: '*.tar'
      not_name: ~
      size: ~
      follow_links: false
      sort: 'modified_time'
      reverse: true
      count: 2

MySQL

@todo

Postgresql

@todo

tarball

@todo

Docker

@todo