Write a command-line tool backup tool.py that implements a backup and restore system with SHA-256 checksum…
Write a command-line tool backup tool.py that implements a backup and restore system with SHA-256 checksum…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Command 1: backup python backup tool.py backup <source dir <dest dir - Recursively copies all files from…
The task
**Command 1: backup** ``` python backup_tool.py backup <source_dir> <dest_dir> ``` - Recursively copies all files from `source_dir` to `dest_dir`, preserving the directory structure. - For each file copied, computes a SHA-256 hash of the file content and stores it in a manifest file at `<dest_dir>/MANIFEST.sha256`. -…
Part of ai-and/termgrade-environments.