Create a backup tool /app/backup.py that creates verified snapshots of directories and a restore tool…
Create a backup tool /app/backup.py that creates verified snapshots of directories and a restore tool…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). backup.py - Usage: python3 /app/backup.py <source directory <output snapshot file - Creates a gzipped tarball of…
The task
**backup.py** - Usage: `python3 /app/backup.py <source_directory> <output_snapshot_file>` - Creates a gzipped tarball of the source directory and computes a SHA-256 checksum of the tarball. - Writes a manifest file to `<output_snapshot_file>` with this exact format (no extra whitespace except as specified): ```…
Part of ai-and/termgrade-environments.