radumarias / syncoxiders

Cloud file and email Sync, file Sharing, Backup and Encryption solution written in Rust
https://syncoxide.rs
Apache License 2.0
6 stars 2 forks source link
backup encryption files filesharing filestorage fuse fuse-filesystem share sync

SyncOxiders

Cloud file and email Sync, file Sharing, Backup and Encryption solution written in Rust.

The purpose of this project is to offer an easy and reliable way to sync files and emails between multiple providers and share files between multiple storage providers (like Google Drive, Dropbox, S3, SFTP servers, ...) and local files. Also simple way for backup of your files and emails and encryption. It offers real time sync (from simple Copy One-way to Two-way Sync) all handled in the cloud, without the explicit need of local clients.

[!WARNING]
For now it's in PoC phase, it has some or the core components, like encryption, basic Google Drive client and a basic CLI app.

It's using rencfs for encryption and gdrive-rs for accesing Google Drive.

[!IMPORTANT]
It you could take this SURVEY to express your opinion about the current solution and offer your opinion on what features you would want from a service like this it would help a lot.

You can see rhe results of the survey.

[!NOTE]
In many cases we'll use present tense for several functionality, even though they are not yet implemented, it's used to give an idea of what the system could be.

What's with the name

PoC

You can see more details on what's working now, play with the CLI app and see a short demo.

Working on having these in up to 2 months:

MVP

It would be possible to have something in about 6 months with this functionality:

For this phase we will still be using rclone to access providers, this is to simplify the access. But for future plan is to:

The big picture

This is what it's planned to have in the end.

Use cases

Features

What separates it from other products

How it works

Tech stack

Contribute

Feel free to fork it, change and use it in any way that you want. If you build something interesting and feel like sharing pull requests are always appreciated.

How to contribute

Browser

If you want to give it a quick try and not setup anything locally you can
Open in Gitpod

Open Rustlings On Codespaces

You can compile it, run it, and give it a quick try in browser. After you start it from above

sudo apt-get update && sudo apt-get install fuse3
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
mkdir sync && mkdir sync/repo sync/a sync/b

Add some files in sync/a and then run th sync

cargo run --release --bin syncoxiders -- --repo sync/repo sync/a sync/b

Now check sync/b it should have same content as file/a.

For now this is working

It DOESN'T work

Locally

Getting the sources

git clone git@github.com:radumarias/syncoxiders.git && cd syncoxiders

Dependencies

Rust

To build from source, you need to have Rust installed, you can see more details on how to install it here.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Accordingly, it is customary for Rust developers to include this directory in their PATH environment variable. During installation rustup will attempt to configure the PATH. Because of differences between platforms, command shells, and bugs in rustup, the modifications to PATH may not take effect until the console is restarted, or the user is logged out, or it may not succeed at all.

If, after installation, running rustc --version in the console fails, this is the most likely reason. In that case please add it to the PATH manually.

Project is setup to use nightly toolchain in rust-toolchain.toml, on first build you will see it fetch the nightly.

Make sure to add this you your $PATH too

export PATH="$PATH::$HOME/.cargo/bin"
Other dependencies

Also, these deps are required (or based on your distribution):

Arch
sudo pacman -Syu && sudo pacman -S base-devel act
Ubuntu
sudo apt-get update && sudo apt-get install build-essential act
Fedora
sudo dnf update && sudo dnf install && dnf install @development-tools act

Build for debug

cargo build

Build release

cargo build --release

Run

cargo run --release --bin syncoxiders -- --repo REPO A B

Developing inside a Container

See here how to configure for RustRover and for VsCode.

You can use the .devcontainer directory from the project to start a container with all the necessary tools to build and run the app.

Please see CONTRIBUTING.md.

Minimum Supported Rust Version (MSRV)

The minimum supported version is 1.75.