Lieturd backup
Building the Docker build environment base image
cd backup-build
docker build -t lieturd/backup-build:YYYY-MM-DD -t lieturd/backup-build:latest .
docker push lieturd/backup-build:YYYY-MM-DD lieturd/backup-build:latest
Building and running server and client
The server requires an SQLite database to work. It must include a table formatted as such:
CREATE TABLE files (
real_filename INT NOT NULL PRIMARY KEY,
local_filename TEXT NOT NULL,
last_updated BIGINT NOT NULL
);
First start up the server, then run the client. This will cause the client to check the backup paths once a minute to upload updated files.
# To run the server:
cargo run --release --bin backupd [DATABASE_DIRECTORY]
# To run the client:
cargo run --release --bin backup-cli [FILE_PATH_TO_UPLOAD]