Skip to content

Latest commit

 

History

History
executable file
·
63 lines (47 loc) · 1.38 KB

DATABASE.md

File metadata and controls

executable file
·
63 lines (47 loc) · 1.38 KB

Structure of the JSON database:

{ "dataset" : {...}, "backups" : {...}, "vault" : "", "version" : [major, minor, revision], "moved" : {...} (optional), "lastbackup" : "" }

"backups" contains:

"" : [ "file1", "file2", ... ]

"dataset" contains:

"" : { "deleted" : ["", ...], // Lists in which backups this file was deleted "checksum" : "", // Currently known version (blank if currently deleted) "memberof" : ["", ...] // Which backups this file exists in }

"moved" contains:

"" : { "reference" : "", "original" : "<original filename with path in >" }


Manifest:

{ "deleted" : [...], "moved" : {...}, "modified" : {...}, "previousbackup", "" }

"deleted" contains:

All files which were deleted since last run

"moved" contains:

"" : { "reference" : "", "original" : "<original filename with path in >" }

"modified" contains:

"" : { "deleted" : ["", ...], // Lists in which backups this file was deleted "checksum" : "", // Currently known version (blank if currently deleted) "memberof" : ["", ...] // Which backups this file exists in }