Here goes something
This commit is contained in:
commit
211df99fc6
4 changed files with 41 additions and 0 deletions
5
README.md
Normal file
5
README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# tori
|
||||||
|
|
||||||
|
tori is a configuration management and system replication tool designed with portability in mind.
|
||||||
|
|
||||||
|
You can find documentation in the [docs](docs) directory.
|
30
check
Executable file
30
check
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
#! /usr/bin/env sh
|
||||||
|
|
||||||
|
# user-configured settings
|
||||||
|
TORI_ROOT="$HOME/.config/tori"
|
||||||
|
|
||||||
|
# application logic
|
||||||
|
|
||||||
|
log() {
|
||||||
|
local level="$1" # unimplemented
|
||||||
|
local message="$2"
|
||||||
|
|
||||||
|
echo "$message"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
traverse() {
|
||||||
|
local target="$1"
|
||||||
|
log debug "target: $target"
|
||||||
|
|
||||||
|
if [ -f "$target" ]; then
|
||||||
|
echo "file: $target"
|
||||||
|
elif [ -d "$target" ]; then
|
||||||
|
traverse $target/*
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
cd "$TORI_ROOT"
|
||||||
|
for item in $TORI_ROOT/*; do
|
||||||
|
traverse "$item"
|
||||||
|
done
|
3
docs/data.md
Normal file
3
docs/data.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
User data is initially configured to $HOME/.config/tori. At this stage, this allows concentrating all necessary data in a single place, however it is not ideal to have non-configuration file there.
|
||||||
|
|
||||||
|
When making these configurable, it would be interesting to move the default backup location to $HOME/.local.
|
3
docs/portability.md
Normal file
3
docs/portability.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
tori is designed to be portable so that its features allow transfering your configuration between different versions of an operating system or even between different operating systems depending on the presently supported ones.
|
||||||
|
|
||||||
|
To aid this portability and ability to run in different systems, it is also designed to have minimal dependencies since it is meant to run on brand new systems where very few packages have been installed.
|
Loading…
Reference in a new issue