renamify undo
The undo
command reverts a previously applied renaming using the backup system.
renamify undo <ID>
Arguments
Section titled “Arguments”<ID>
- History ID to undo (uselatest
for the most recent non-revert entry)
Examples
Section titled “Examples”# See recent operationsrenamify history
# Undo a specific operationrenamify undo abc123-20241201-143022
How It Works
Section titled “How It Works”- Locates backups for the specified operation ID
- Verifies integrity using stored checksums
- Restores original file contents atomically
- Reverts file and directory renames in reverse order
- Records undo operation for potential redo
Safety
Section titled “Safety”- Uses the same atomic operations as apply
- Verifies backup integrity before restoration
- Can be undone with
renamify redo