We will want to consume the time of creation and filename for each digest separately. Instead of splitting the filename and timestamp from outputPath, remove output path and include ts or timestamp.
Note: We may want to use int or uint_max for timestamp.
This way, we can combine backupLabel and timetamp to achieve the digest filename in form LABEL-TIMESTAMP.json as well as create the overall backup structure.
We will want to consume the time of creation and filename for each digest separately. Instead of splitting the filename and timestamp from
outputPath
, remove output path and includets
ortimestamp
.Note: We may want to use
int
oruint_max
fortimestamp
.This way, we can combine
backupLabel
andtimetamp
to achieve the digest filename in formLABEL-TIMESTAMP.json
as well as create the overall backup structure.