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)
Can be used:
- in case of troubles with the sysinfo code
- by borg backup providers who do not want to show system information
(cherry picked from commit 64aaec6628)
I noticed that archlinux has an identical coveragerc and wondered why.
Then noticed that our tox.ini (which we bundle into the pypi package)
needs .coveragerc, but we did not bundle it until now.
(cherry picked from commit c79156caf5)
update build process to use newer Cython/setuptools APIs
Cython.Distutils.build_ext has been deprecated, and the recommended replacement
is Cython.Build.cythonize.
setuptools.Extension will convert the file extension .pyx -> .c so there's no
need to duplicate the functionality. This allows the removal of the special
Sdist logic when cython is available.
cythonize will compile .pyx -> .c, but the resulting Extension's files won't be
included in sdist unless the Extension is in ext_modules. We don't want the
platform extensions in ext_modules though because that will break compilation,
so the platform .c files were added to the manifest.
- removed some unnecessary distutils imports and moved some imports for better
visibility
- stop cythonize from running in some common use cases like 'clean'