MASTER BRANCH ONLY, DO NOT BACKPORT TO 1.1 or 1.0!
As there are no 0.4.x msgpack releases (under this new name, 0.4.x
used to be named "msgpack-python"), currently only 0.5.6 can be
recommended. See comments for other versions that are acceptable
under certain conditions.
We will add new msgpack versions later, after testing them.
Failure to use environment markers means the dependencies are
unconditionally added at build time based on the host instead of being
always present and evaluated at runtime on the target; e.g. wheels have
the wrong information.
Also use python_requires. This teaches pip how to natively comprehend
when the current version of python is not supported by borg.
Returns errors in the format:
borgbackup requires Python '>=3.5' but the running Python is $oldver
we temporarily used the updated, bundled lz4 and zstd code for testing
purposes, but now going back to using system provided libs by default.
(cherry picked from commit 66084c7234)
the old progress output was kind of broken:
Archiver() did output some progress when add_item was called.
Archive.delete() did output progress for a single archive deletion
but what we really want is a overall progress indication, advancing
the progress for each deleted archive.
(cherry picked from commit 529bbfdeca)
it will just show nothing was deleted, but one sees how it would look
like.
this is also for consistency with borg prune --dry-run --stats, which
behaves the same.
(cherry picked from commit 857c5635dd)
borg delete was slower than required when it deleted multiple archives
as it committed repo and cache once per archive.
borg prune (doing a similar job) is faster as it commits only once for
all deleted archives.
borg delete now also only commits once and also (similar to borg prune)
only outputs a overall statistics for all deleted archives.
log output of borg delete was made similar to borg prune.
(cherry picked from commit a88a3153ad)
docs: fix and deduplicate encryption quickstart docs
just refer to "borg init" docs rather than duplicating it in quickstart.
also: s/archive/repository/
this was broken by previous changeset.
now doing just a minimal change for better diff display,
see also next commit.
(cherry picked from commit 697bb36402)
thus, we should not use the with_repository decorator to set up
the cache / key / manifest.
this enables running borg config on the repo without the key / key
passphrase (the config itself is in plaintext).
(cherry picked from commit d593d17562)
thus, we should not use the with_repository decorator to set up
the key as it uses Manifest.load() to set up the key.
if the Manifest is lost, that does not work.
but we can use some arbitrary object to set up the key, so just
do that.
(cherry picked from commit 2e1f2e84d7)
only output msgs if there is actually something to delete.
be more precise, show count of orphaned / superseded objects.
(cherry picked from commit d671e9acf2)