borgbackup/src/borg
Thomas Waldmann 9d6b125e98 borg recreate: correctly compute part file sizes, fixes #3157
when doing in-file checkpointing, borg creates *.borg_part_N files.
complete_file = part_1 + part_2 + ... + part_N

the source item for recreate already has a precomputed (total) size
member, thus we must force recomputation from the (partial) chunks
list to correct the size to be the part's size only.

borg create avoided this problem by computing the size member after
writing all the parts. this is now not required any more.

the bug is mostly cosmetic, borg check will complain, borg extract on
a part file would also complain. but all the complaints only refer to
the wrong metadata of the part files, the part files' contents are
correct.

usually you will never extract or look at part files, but only deal
with the full file, which will be completely valid, all metadata and
content.

you can get rid of the archives with these cosmetic errors by running
borg recreate on them with a fixed borg version. the old part files
will get dropped (because they are usually ignored) and any new part
file created due to checkpointing will be correct.
2017-10-14 04:24:26 +02:00
..
algorithms create _endian.h 2017-07-11 19:12:19 +02:00
cache_sync info: use CacheSynchronizer & HashIndex.stats_against 2017-06-13 14:34:10 +02:00
crypto init: fix wrong encryption choices in command line parser 2017-10-08 12:29:03 +02:00
helpers don't crash in first part of truncate_and_unlink, fixes #3117 2017-10-10 01:25:19 +02:00
platform bsdflags support: do not open BLK/CHR/LNK files, fixes #3130 2017-10-13 23:53:22 +02:00
testsuite auto compression: make sure expensive compression is actually better 2017-10-03 21:11:43 +02:00
__init__.py Improve robustness of monkey patching borg.constants.PBKDF2_ITERATIONS. And add lots of warnings. 2017-06-10 11:42:42 +02:00
__main__.py move borg package to src/ 2016-05-05 20:19:50 +02:00
_chunker.c fix chunker holding the GIL during blocking I/O 2017-07-29 11:58:01 +02:00
_endian.h create _endian.h 2017-07-11 19:12:19 +02:00
_hashindex.c replace modulo with if to check for wraparound in hashmap 2017-07-20 13:22:34 +03:00
_item.c item: item.to_optr(), Item.from_optr() 2017-07-29 17:26:39 +02:00
archive.py borg recreate: correctly compute part file sizes, fixes #3157 2017-10-14 04:24:26 +02:00
archiver.py move files-cache related options to borg create, fixes #3146 (#3147) 2017-10-13 20:16:30 +02:00
cache.py implement files cache mode control, fixes #911 2017-10-01 00:52:32 +02:00
chunker.pyx chunker: fix invalid use of types 2017-06-14 19:16:36 +02:00
compress.pyx auto compression: make sure expensive compression is actually better 2017-10-03 21:11:43 +02:00
constants.py implement files cache mode control, fixes #911 2017-10-01 00:52:32 +02:00
fuse.py migrate locks to child PID when daemonize is used 2017-08-08 03:46:44 +02:00
hashindex.pyx fuse: versions view, linear numbering by archive time 2017-07-03 12:38:10 +02:00
item.pyx Refactor the diff functionality 2017-08-13 21:23:04 +02:00
locking.py fixup: use asserts for the old_id check 2017-08-11 23:24:33 +02:00
logger.py logging with fileConfig: set json attr on "borg" logger, fixes #3114 2017-10-10 02:18:13 +02:00
lrucache.py lrucache: use explicit sentinel instead of None 2017-06-16 00:41:38 +02:00
nanorst.py key import: allow reading from stdin 2017-06-27 16:18:21 +02:00
paperkey.html key export: center QR code on the page 2017-02-13 21:24:33 +01:00
patterns.py patterns: don't recurse with !/--exclude for path-prefix (pf:) 2017-06-03 12:13:32 -04:00
remote.py Merge pull request #3058 from ThomasWaldmann/fix-partial-json 2017-09-26 22:03:26 +02:00
repository.py catch ENOTSUP for os.link, fixes #3107 2017-10-10 01:57:58 +02:00
selftest.py remove unused bytes16 conversions 2017-07-27 23:48:30 +02:00
shellpattern.py shellpattern: add match_end arg 2017-07-03 19:34:48 +02:00
upgrader.py Detect non-upgraded Attic repositories 2017-08-15 19:58:30 +02:00
version.py version: add missing test for format_version, fix bug 2017-06-27 10:11:57 +02:00
xattr.py use prepared env for xattr module's fakeroot version check 2017-09-25 04:36:07 +02:00