bsach64 / goback

2 stars 0 forks source link

Goback

Goback is a distributed local backup system designed to facilitate secure and efficient file backups. The system includes both a client and server component to manage and perform backups across different machines.

Getting Started

Prerequisites

Install golanci-lint

It is necessary to install golanci-lint to run the project.

for linux users:

yay golangci-lint

Other users:

https://golangci-lint.run/welcome/install/

Generating SSH Key

To run the server, you will need a SSH key. Generate it using:

ssh-keygen -t rsa -b 4096 -f id_rsa

Place the generated id_rsa file inside the private directory in the root folder of the project.

Building the Project

You can build the project using make. Available commands in the Makefile are:

To build the project, run:

make build

OR

make

Running the Binary

After building the project, you can run the binary using:

Client: To open up the client prompt, run:

./goback client

Server: To open the server prompt, which shows listen logs and an exit command, run:

./goback server

If you want to run using goback only you can export a path variable instead run inside the root folder1:

export PATH=$PATH:$(pwd)

Usage

Client

The client command opens a prompt allowing you to interact with the backup system. It includes options for uploading files, listing directories, and exiting.

client-usage

Server

The server command starts a server that listens for incoming client connections. You will see logs of the server's activity and have the option to exit the server prompt.

alt text

Contributing

Contributions are welcome! Please ensure that your code adheres to the project's style guidelines and includes tests.