Design Safe Batch File Operations with Rollback
Plan and execute a batch rename or move inside a disposable Termux workspace using a preview, manifest, verification step, and tested rollback.
Plan and execute a batch rename or move inside a disposable Termux workspace using a preview, manifest, verification step, and tested rollback.
Prepare 25m · Build 105m · Verify 25m · Document 25m
Work only inside the folder created by Smartphone-Academy.py prepare safe-batch-operations. Use the supplied fictional samples or data you are explicitly authorized to handle.
Prepare the Termux workspace
Open Termux in the Academy folder and create the safe workspace. The companion generates samples, notes, and evidence files under your account.
python Smartphone-Academy.py prepare safe-batch-operationsNo root. Work only with the supplied files under $HOME.Practical mission
- Generate a preview list without modifying any file
- Create a manifest that maps every original path to its proposed destination
- Run the operation only inside the disposable workspace and verify file counts and hashes
- Execute the rollback script and prove the original names and contents were restored
A batch-plan.md, before-after.csv, safe-batch.sh, and rollback.sh verified against the supplied files.
Quality gate
Analyst reflection
Which result from “Execute the rollback script and prove the original names and contents were restored” needs additional evidence before it could support a real operational decision?
After checking the deliverables, run python Smartphone-Academy.py complete safe-batch-operations. Progress is stored locally in the Termux home directory.