/tar-server

A simple server to package all files in a folder into .tar file and serving it

Primary LanguageGoMIT LicenseMIT

Tar Server

CircleCI Maintainability Test Coverage Go Report Card

This server will package the selected folder into a .tar and to be downloaded into the user PC

Motivation

This application is to develop to solve the annoying problem of transferring files from the stored data PC to the host PC by plugging USB hard drive. This method is slow and time consuming, besides when transfering large files into the USB hard drives, it will usually slow down to few MB/s. This application will solve this annoying problem and will constantly stream the data at maximum ethernet speed.

Now you could enjoy fast transfer of large data to your host PC :)

Deployment using Docker

docker run -it --rm -v <DIR_TO_SHARE>:/data timx/tar-server

Deployment using Docker compose

version: "3"

services:
    tarserver:
        image: timx/tar-server
        ports:
            - "3000:3000"
        environment:
            - DIR_PATH=<DIR_TO_SHARE>
        volumes:
            - <DIR_TO_SHARE>:<DIR_TO_SHARE>:ro

Build from source

go build && ./tar-server