Create a command-line backup/restore tool /app/backup.py with two subcommands:
Create a command-line backup/restore tool /app/backup.py with two subcommands:: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Subcommand: backup /app/backup.py backup <source path <backup dir - Read the file at <source path . - Compute a checksum (algorithm…
The task
**Subcommand: backup** ``` /app/backup.py backup <source_path> <backup_dir> ``` - Read the file at `<source_path>`. - Compute a checksum (algorithm: SHA-256, hex-encoded, lowercase). - Inside `<backup_dir>`, create a subdirectory named exactly as the hex checksum. If that subdirectory already exists, treat it as a…
Part of ai-and/termgrade-environments.