]> arthur.barton.de Git - bup.git/commit - t/test.sh
Save metadata during "bup save".
authorRob Browning <rlb@defaultvalue.org>
Sat, 1 Oct 2011 17:24:36 +0000 (12:24 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 22 Dec 2012 01:53:53 +0000 (19:53 -0600)
commit56e9f18b0532c079a7a2ba92148cedb7f9846d37
treef5a1e772629b7a1c658fe09095e8820e7068db5b
parentf8cd36ba70b68ffb67ed4ad79b7e6f9d71d7100c
Save metadata during "bup save".

Record metadata in a hidden/mangled file named .bupm in each
directory, so that the metadata for /foo/ is stored in /foo/.bupm,
with the first entry being the metadata for foo/ itself.

Record an empty index file for each special file so that index entries
and .bupm entries correspond correctly.

Rework the strip/graft functions to return both the save-name, and the
underlying filesystem path to the save-name (when there is one) for
each component.  There may not be corresponding filesystem paths if
graft options rewrite the path prefix.

For now, record "/" metadata only when there are no strip/graft
options.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Tested-by: Alexander Barton <alex@barton.de>
Documentation/bup-save.md
cmd/save-cmd.py
lib/bup/git.py
lib/bup/helpers.py
lib/bup/metadata.py
lib/bup/t/thelpers.py
lib/bup/vfs.py
t/test-meta.sh
t/test.sh