Service for creating backup continers
Go to file
Martin Voldřich bdf603a5ed Added readme
2024-08-27 16:51:06 +02:00
src Added simple tracing 2024-08-27 16:46:27 +02:00
.gitignore POC for live query 2024-08-27 15:12:37 +02:00
Cargo.lock Added simple tracing 2024-08-27 16:46:27 +02:00
Cargo.toml Added simple tracing 2024-08-27 16:46:27 +02:00
README.md Added readme 2024-08-27 16:51:06 +02:00

BCUP

Service for backup server configuration

Project is in development and does not have release yet

Start

Compile and run the project

cargo run

Connect to SurrealDB and run the following command

CREATE rest_server CONTENT {
    name: <future> {string::split(<string> id, ":")[1]},
    domain: <future> {"rest-"+name+".hq.rosti.cz"},
    volume: "/mnt/volume0",
    directory: <future> {volume+"/rest-"+name},
    rest_password: "sahTeecaezuN8ue8Ohb9faij4haiQuie",
    repo_password: "ed9AhchoThahbex8bohgahng6eich9ji",
    state: {
        "required": "created",
        "now": "pending"
    }
};