Understanding the output of the cat command

I’m playing with the output of the cat command and would like to better understand its contents (the meaning of some fields/keys):

(I realized that “chunks sequence” are shown followed by “chunks”, and then “files sequence” followed by “files”.)

"chunk_sequence": [
  "d8a06e4687b0ef3b852d0469cf8cb0043ae06157feefb9a92ad1603178ad0661"
],

What does the above hexa / hash mean?

"chunks":
Shows only part of the chunks, why? Which subset is this?

"file_sequence": [
  "b5d0280a6c711fa22bb17f52036df75d827b1731b644cbfc3c809001040f256b"
],

Same question as above “chunk_sequence”.

"end_time": 1535986072
"time": 1475592690 (inside files keys)
What is the reference / standard for these time measurements?

"mode": 438
What does that mean?`

Those look like unix time stamps - seconds since 00:00:00 1/1/1970.

2 Likes

Perfect!

1535986072 = September 3, 2018 - 2:47:52 PM

One doubt solved!

file_sequence is the list of chunks that contain the metadata of all files (expanded to become the value of file)

chunk_sequence is the list of chunks that contain the list of file chunks (expanded to become the value of chunks).

So when we see in the log:

INFO BACKUP_STATS Files: 2830 total, 9,909M bytes; 1 new, 308K bytes
INFO BACKUP_STATS File chunks: 9012 total, 9,934M bytes; 1 new, 308K bytes, 300K bytes uploaded
INFO BACKUP_STATS Metadata chunks: 4 total, 1,602K bytes; 3 new, 994K bytes, 658K bytes uploaded
INFO BACKUP_STATS All chunks: 9016 total, 9,936M bytes; 4 new, 1,302K bytes, 958K bytes uploaded

“Metadata chunks” = file_sequence or chunk_sequence?

Not sure if i understood… which “value”?

And the last little one?

There is a key named files in the json output. The value of this key is the file list, which is the contents of chunks listed in file_sequence.

Similarly, the value of the key chunks is the contents of the chunks listed in chunk_sequence.

The mode is an integer that stores the file permissions and attributes.

1 Like