SwagDevOps / alluvion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alluvion

Commands:
  alluvion help [COMMAND]  # Describe available commands or one specific command
  alluvion synchro:done    # Execute synchro (done)
  alluvion synchro:todo    # Execute synchro (todo)

Requirements

Alluvion uses rsync (as default) to synchronize files.

Config

Minimal configuration

url: 'ssh://user@example.org:22'
paths:
  local:
    done: '/var/alluvion/done'
    todo: '/var/alluvion/todo'
  remote:
    done: '/var/alluvion/done'
    todo: '/var/alluvion/todo'

Environment

Config supports environment variables, using ERB-like syntax:

url: 'ssh://<%= @SYNCHRO_USER%>@<%= @SYNCHRO_HOST%>:22'
timeout: <%= ENV['SYNCHRO_TIMEOUT']&.to_i || 5 %>
paths:
  local:
    done: '<%= @SYNCHRO_VOLUME %>/done'
    todo: '<%= @SYNCHRO_VOLUME %>/todo'
  remote:
    done: '<%= @SYNCHRO_REMOTE_PATH %>/done'
    todo: '<%= @SYNCHRO_REMOTE_PATH %>/done'

About

License:GNU General Public License v3.0


Languages

Language:Ruby 98.9%Language:Shell 1.1%