mirror of
https://github.com/borgbackup/borg.git
synced 2026-04-27 00:57:11 -04:00
about issue
This commit is contained in:
parent
be640e982f
commit
6a3158729f
2 changed files with 3 additions and 1 deletions
|
|
@ -363,6 +363,7 @@ def test_transfer_archive_metadata(archivers, request, monkeypatch):
|
|||
assert dest_archive["hostname"] == source_archive["hostname"]
|
||||
assert dest_archive["username"] == source_archive["username"]
|
||||
assert dest_archive["command_line"] == source_archive["command_line"]
|
||||
assert dest_archive["cwd"] == source_archive["cwd"]
|
||||
assert dest_archive["duration"] == source_archive["duration"]
|
||||
assert dest_archive["start"] == source_archive["start"]
|
||||
assert dest_archive["end"] == source_archive["end"]
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ class UpgraderNoOp:
|
|||
"comment",
|
||||
"chunker_params",
|
||||
"recreate_command_line",
|
||||
"cwd",
|
||||
):
|
||||
if hasattr(metadata, attr):
|
||||
new_metadata[attr] = getattr(metadata, attr)
|
||||
|
|
@ -149,7 +150,7 @@ class UpgraderFrom12To20:
|
|||
new_metadata = {}
|
||||
# keep all metadata except archive version and stats. also do not keep
|
||||
# recreate_source_id, recreate_args, recreate_partial_chunks which were used only in 1.1.0b1 .. b2.
|
||||
for attr in ("hostname", "username", "comment", "chunker_params"):
|
||||
for attr in ("hostname", "username", "comment", "chunker_params", "cwd"):
|
||||
if hasattr(metadata, attr):
|
||||
new_metadata[attr] = getattr(metadata, attr)
|
||||
rechunking = self.args.chunker_params is not None
|
||||
|
|
|
|||
Loading…
Reference in a new issue