2017 © Pedro Peláez
 

project carbon14

image

smalot/carbon14

  • Saturday, January 14, 2017
  • by smalot
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Carbon14

Latest Stable Version Total Downloads Latest Unstable Version License composer.lock, (*1)

Install

Download

# 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

Update url with the latest release number, (*2)

Initialize

Retrieve your private access token here https://console.online.net/en/api/access, (*3)

Then, run the following command line, (*4)

carbon14 init

Settings will be stored in this file, (*5)

$HOME/.carbon14.yml

Commands

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

Jobs

A job is a sequence of basic tasks: - selection of safe (using config file or forced in command line) - selection (eventually creation) of an archive - use of a source which provides one or more files - file upload to the archive (resume available using FTP protocol) - eventually a final cleanup in the archive, (*6)

Sources

Direct

The direct source supports basic method provided by the symfony/finder files., (*7)

Sample file for a direct file transfer. ($HOME/.carbon14/redmine.yml), (*8)

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, (*9)

Postgresql

@todo, (*10)

Tarball

@todo, (*11)

Docker

@todo, (*12)

The Versions