smalot/carbon14

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:project

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

This package is not auto-updated.

Last update: 2024-12-21 21:31:15 UTC


README

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

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

Initialize

Retrieve your private access token here https://console.online.net/en/api/access

Then, run the following command line

carbon14 init

Settings will be stored in this file

$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

Sources

Direct

The direct source supports basic method provided by the symfony/finder files.

Sample file for a direct file transfer. ($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