Auto replace plots older than a given date #816
Replies: 4 comments
-
Wow! Really interesting customization. I am working on enhancing Machinaris to prune such plots itself, based on similar criteria. Then Plotman will notice the bit of extra free space and create/transfer a new plot. I will keep your example above in mind. Thanks for sharing. |
Beta Was this translation helpful? Give feedback.
-
Would love to be able to slowly (one by one) and automate removing some K32's and replace them with K34's |
Beta Was this translation helpful? Give feedback.
-
This script is dumb. It does know k32 from k34. It works off the modification date. So if all your k23 plots have a modification date before X date, these scripts could work. The next issue is size. Are k34 plots the same size as k32? My guess is they are a bit bigger. The disk_space_script may have to run twice before there is enough room for the plot. max_plot_size would need to be updated to K34 size. There is a way to read in file names and take action based on that, but that is a more complicate loop I did not want to get into. |
Beta Was this translation helpful? Give feedback.
-
Related: #144 |
Beta Was this translation helpful? Give feedback.
-
All my plots were OG(solo) plots. I have created some custom archive scripts to replace the OG plots with NFT(portable) plots.
This is still a work in progress.
The disk_space_script tries to guess if there is enough free space for another plot. If not, it looks for the oldest plot by modification date. This is often when the plot was moved, not when it was created. If the date is before newest_OG_date, it deletes that plot and then gets the list of dir:free_space as normal.
Some logging has been added to the transfer_script.
local_rsync_plot_replacement -> disk_space_script:
local_rsync_plot_replacement -> transfer_script:
rsyncd_plot_replacement is similar, only using ssh to reach the harvester.
Beta Was this translation helpful? Give feedback.
All reactions