Implement a command-line tool /app/backup.py that creates and verifies backups of a given directory.
Implement a command-line tool /app/backup.py that creates and verifies backups of a given directory.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : The script must support two modes: 1. create : Create a backup archive with a SHA256 checksum manifest. 2…
The task
**Goal**: The script must support two modes: 1. **create**: Create a backup archive with a SHA256 checksum manifest. 2. **verify**: Verify an existing backup archive against its manifest.
Part of ai-and/termgrade-environments.