Calculator for "Tower of Hanoi"-style backup rotation scheme
Timothy Rice ab96beb0cd Initial commit | vor 3 Jahren | |
---|---|---|
.gitignore | vor 3 Jahren | |
LICENSE | vor 3 Jahren | |
Makefile | vor 3 Jahren | |
README.md | vor 3 Jahren | |
hanoi.c | vor 3 Jahren | |
tests.sh | vor 3 Jahren |
https://en.wikipedia.org/wiki/Backup_rotation_scheme#Tower_of_Hanoi
$ hanoi -h
Usage: hanoi TAPES DAY
Calculator for 'Tower of Hanoi' daily backup rotation system.
Arguments:
TAPES = Total number of tapes available
DAY = Which day are we on in the cycle?
$ hanoi 1 3
1
$ hanoi 4 12
3
$ hanoi 4 18
2
$ hanoi 8 128
8