Skip to content

billbartlett/rebalance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unraid Share Rebalancer

This script balances data across Unraid disks by moving directories from overfilled disks to underfilled ones using rsync. It ensures all drives participate in balancing while maintaining a minimum move size of 1GB.

Features

  • Automatic Disk Balancing: Moves large directories first, followed by smaller refinements.
  • Uses Rsync for Reliability: Supports --dry-run mode by default.
  • Database Caching: Avoids unnecessary rescans with shares.db and dirs.db.
    • the initial run will scan shares & directories, but any subsequent run(s) will default to using cached information.
  • Progress Reporting: Displays planned moves and disk usage before/after adjustments.

Requirements

  • pip install rich psutil

Usage

python rebalance.py [--execute] [--rescan]
  --execute: Perform actual moves (defaults to displaying proposed moves).
  --rescan:  Rescan disk usage instead of using cached data.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages