downgrade converts a format v2 repository back to storage format v1. Every chunk stored in pack files is written back as a loose file, and the manifest is returned to the v1 layout.
Use it when the repository must be opened again by Rinne v0.9.7. downgrade is new in v0.9.8.
Usage
rinne downgrade [--dry-run]Options
--dry-run
Show what would change (pack count, chunks to unpack, bytes to write) without changing anything.
Examples
Preview the conversion and the space it needs
rinne downgrade --dry-runConvert the repository back to format v1
rinne downgradeNotes
- Unpacking needs about as much free space as the pack files use. Check the dry-run output before running it on a large repository.
- After downgrading, Rinne v0.9.7 can open this repository again.
- If the repository already uses format v1, downgrade reports that and exits successfully without changes.
- If some chunks have neither an index row nor a loose file but could be recovered with repair reindex, downgrade refuses instead of dropping them. Run rinne repair reindex first.
- Close other programs that use the repository (for example, Rinne GUI) before downgrading. If the manifest is in use, downgrade stops and the repository stays in format v2.