1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-16 00:00:05 +01:00
restic/src
Pauline Middelink 83601a1488 Optimize by keeping node.ExtendedAttributes as map, not as list
Make access to the extended attributes slightly easier by handeling them as a
map (each attribute name can only exist once anyway).

Handle backwards compatibility by unmarshaling of the old json data and
converting to the new one when needed.

Mark node.Content as optional in json data, to suppress "content":null fragments
when not needed. It seems for a single check, the code is already Content == nil resistant.

NOTICE: These json changes affect the content of a Treeblob and therefore its
ID. So while a backup against a parent before this change will not store the
content of dirs/files again, each directory will create a new treeblob.
2017-03-12 18:54:15 +01:00
..
cmds/restic Fix restoring files as non-root user 2017-03-12 16:51:58 +01:00
restic Optimize by keeping node.ExtendedAttributes as map, not as list 2017-03-12 18:54:15 +01:00