vgmoose / hotplots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WIP - Hotplots - Chia Plots Archiving Program

Hotplots is an extensible, flexible, and well-tested chia plot archiving program. Whether moving plots to locally attached drives, or to your harvester machine, hotplots will choose which plotfile to move, where to move it to, and whether or not to replace an existing

Hotplots can be used to fill up all of your existing drives, and then if configured to do so, it can start replacing plots, for example replacing non-portable (pool) plots with newer portable plots. It can also replace based on the k-value of your plots, should there ever be a time when you want to or need to upgrade to k=33.

TODO: put links to sections here

Overview

TODO: image showing local, remotes, drives.

Hotplots moves your plots from a local source disk to an eligible target disk. targets are either local (attached to the same machine that hotplots is running on) or remote (accesible through ssh from the machine hotplots is running on). You can have many source disks, and each target (local, and all your remotes) can have many disks.

Hotplots waits for completed plot files to appear in a source directory, and then it moves the plot to an eligible target disk.

Installation

For updating from previous version, see section below.

  1. Clone the repository
git clone https://github.com/cciollaro/hotplots.git
cd hotplots
  1. Run the install script.
./install.sh
  1. Copy the example config file
cp config-example.yaml config.yaml
  1. Open up config.yaml in your editor and configure it to your preferences.

Updating to the latest release

Skip this if you followed the above section.

cd hotplots

git fetch
git checkout main
git pull

./install.sh

Important: Automated migration of config is not supported. Please check that your config.yaml has all new fields introduced in config-example.yaml and add anything missing. If correctly migrated, you shouldn't get any ERROR logs.

Running in the background

You can use tmux (or screen if that's your preference, although I don't cover that here) to run hotplots in the background. The way I do this is via tmux new -s hotplots and then run ./start.sh from inside the virtual terminal. You can detach with Ctrl+b d. You can view active tmux sessions with tmux ls and lastly you can re-attach with tmux a -t hotplots.

Viewing active file transfers

The recommended method for viewing active is the progress command: https://github.com/Xfennec/progress.

This works both on the source (plotting) machine and the destination (harvesting) machine.

progress -w

About


Languages

Language:Python 97.9%Language:Shell 2.1%