Categorygithub.com/tcpaddock/shiplot
modulepackage
1.0.0-beta.5
Repository: https://github.com/tcpaddock/shiplot.git
Documentation: pkg.go.dev

# README

shiplot

codecov

Chia plot file shipper.

Features

  • Move plots locally or ship plots over the network.
  • Dynamically adjusts number of plot transfers based on available destination paths.
  • Keeps track of destination paths and queues as needed.
  • Supports multiple source and destination paths.
  • Supports path globbing to keep configs small.
  • Cross platform with testing on Windows, Linux, and Mac.

Install

  • Download the binary from releases.
  • Create a config file in same directory as binary. (See example)

Usage

The tool currently has two primary modes. It will either move plots locally or ship them across the network.

View the help text by running:

# Linux/macOS
shiplot help

# Windows
shiplot.exe help

View the version by running:

# Linux/macOS
shiplot version

# Windows
shiplot.exe version

Local

Start moving plots:

# Linux/macOS
shiplot run --maxThreads=12 --stagingPaths="/staging/*" --destinationPaths="/mnt/dest,/mnt/jbod*"

# Windows
shiplot.exe run --maxThreads=12 --stagingPaths="C:/staging/*" --destinationPaths="D:/,E:/"

Network

In network mode, the destinationPaths parameter is ignored.

Start server on destination:

# Linux/macOS
shiplot run --maxThreads=12 --destinationPaths="/mnt/dest,/mnt/jbod*" --server.enabled=true

# Windows
shiplot.exe run --maxThreads=12 --destinationPaths="D:/,E:/" --server.enabled=true

Start client on plotter:

# Linux/macOS
shiplot run --maxThreads=12 --stagingPaths="/staging/*" --client.enabled=true --client.serverIp="192.168.0.2"

# Windows
shiplot.exe run --maxThreads=12 --stagingPaths="/staging/*" --client.enabled=true --client.serverIp="192.168.0.2"

License

Licensed under the MIT license.

Copyright © 2023 Taylor Paddock

# Packages

Copyright © 2023 Taylor Paddock Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.