2023-09-26 17:49:25 +08:00
2023-09-26 17:16:56 +08:00
2022-12-12 22:48:28 +08:00
2023-09-26 16:47:06 +08:00
2023-09-26 16:53:05 +08:00
2023-09-26 16:47:06 +08:00
2023-09-26 16:47:06 +08:00
2023-09-26 16:47:06 +08:00
2023-09-26 16:53:05 +08:00
2023-09-26 16:47:06 +08:00
2022-12-12 22:48:28 +08:00
2023-09-26 16:53:05 +08:00
2022-12-12 22:48:28 +08:00
2023-09-26 16:47:06 +08:00
2023-09-22 23:14:58 +08:00
2023-09-26 15:39:03 +08:00
2023-09-26 16:53:05 +08:00
2023-09-26 15:23:23 +08:00
2023-09-26 16:57:35 +08:00
2023-09-26 16:47:06 +08:00
2022-08-23 12:30:59 +08:00
2023-09-26 17:49:25 +08:00

YATM aka Yet Another Tape Manager

YATM is a first-of-its-kind open-source tape manager for LTO tape via LTFS tape format.

Dependency

Hardware

YATM needs at least one LTO tape drive. You may run this software as an offline HDD manager, but the current implementation doesn't support this application yet (pull requests are welcomed).

Because of the lack of test devices, this software only supports the amd64 platform.

Software

YATM will use several software, depending on your hardware. It would be best if you put binaries of the following software in PATH. Or you can modify those shell scripts in /scripts to make them run smoothly.

Install

Download binary from releases, and run the following shell commands.

# If you put this to other path, you need to change scripts and systemd service file.
mkdir -p /opt/ltfs
mkdir -p /opt/yatm

tar -xvzf yatm-linux-amd64-${RELEASE_VERSION}.tar.gz -C /opt/yatm

cp /opt/yatm/config.example.yaml /opt/yatm/config.yaml
vim /opt/yatm/config.yaml # change config file depends on your demand.

systemctl enable /opt/yatm/yatm-httpd.service
systemctl start yatm-httpd.service

Nginx Reverse Proxy

YATM is based on GRPC, which needs HTTP2 to be functional. You can reference the following nginx config to reverse proxy YATM.

server {
    // needs http2 to proxy grpc
    listen 443 ssl http2;
    listen [::]:443 ssl http2;

    server_name example.com;
    // if you use basic auth, ssl is critical for protect your password
    include includes/ssl.conf;

    proxy_connect_timeout 60;
    proxy_send_timeout 3600;
    proxy_read_timeout 3600;
    send_timeout 3600;
    client_max_body_size 4g;

    proxy_buffer_size 1024k;
    proxy_buffers 4 2048k;
    proxy_busy_buffers_size 2048k;

    http2_max_requests 10000000;

    location / {
        // you can use basic auth to protect your site
        auth_basic              "restricted";
        auth_basic_user_file    includes/passwd;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:8080;
    }
}
Description
No description provided
Readme BSD-2-Clause 2.3 MiB
Languages
TypeScript 66.6%
Go 31.2%
Shell 1.6%
Less 0.4%
CSS 0.1%