https://github.com/swagdevops/alluvion
https://github.com/swagdevops/alluvion
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/swagdevops/alluvion
- Owner: SwagDevOps
- License: gpl-3.0
- Created: 2019-11-06T19:31:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-10T08:01:08.000Z (about 6 years ago)
- Last Synced: 2025-06-10T01:03:20.634Z (11 months ago)
- Language: Ruby
- Size: 201 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```yaml
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:
```yaml
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'
```