Commit Graph

1990 Commits

Author SHA1 Message Date
Thomas Waldmann 7957af562d blacken all the code
https://black.readthedocs.io/
2022-07-06 16:34:38 +02:00
Andrey Bienkowski adb1c36215 black integration 2022-07-06 14:55:40 +02:00
TW 80289215d6
Merge pull request #6837 from ThomasWaldmann/recreate-recompress-considering-level
recreate: consider level for recompression, fixes #6698, fixes #3622
2022-07-06 14:11:06 +02:00
TW dbb9f62afd
Merge pull request #6836 from ThomasWaldmann/cleanups
Cleanups
2022-07-05 02:46:43 +02:00
Thomas Waldmann 0dc25000a9 recreate: consider level for recompression, fixes #6698, fixes #3622 2022-07-05 02:38:09 +02:00
Thomas Waldmann f04b2bd255 remove coding: from cython files, utf-8 is default encoding 2022-07-05 00:08:51 +02:00
Thomas Waldmann 350393c9fd remove unused imports 2022-07-05 00:05:07 +02:00
Thomas Waldmann 5c8a5f111f stop using libdeflate
borg2's new repo format does not need computing crc32 over big amounts of
(content) data any more (we now use xxh64 for that).

thus, having a quick crc32 implementation via libdeflate is not important
enough any more to rectify having libdeflate as a requirement.
2022-07-04 20:33:59 +02:00
Thomas Waldmann 0264f8dc92 fix benchmark tests 2022-07-04 14:53:31 +02:00
Thomas Waldmann c7ed985ffd Merge branch 'master' into borg2 2022-07-02 23:28:39 +02:00
Thomas Waldmann 0dac106812 remove deprecated --remote-buffer
--remote-buffer is deprecated since 1.2.

there is --upload-buffer for the same purpose.
2022-07-02 22:09:55 +02:00
Thomas Waldmann 1b88eb67e0 remove deprecated --remote-ratelimit
--remote-ratelimit is deprecated since 1.2.

there is --upload-ratelimit for the same purpose.
2022-07-02 22:08:19 +02:00
Thomas Waldmann 79696429b4 remove deprecated --numeric-owner
--numeric-owner is deprecated since 1.2.

there is --numeric-ids for the same purpose.
2022-07-02 22:05:47 +02:00
Thomas Waldmann 1196d14f45 remove deprecated --nobsdflags
--nobsdflags is deprecated since 1.2.

there is --flags for the same purpose.
2022-07-02 22:00:13 +02:00
Thomas Waldmann d8735450c5 remove deprecated --noatime
not storing atime is the default since 1.2.
--noatime is deprecated since 1.2.

there is --atime if you want to store the atime.
2022-07-02 21:55:45 +02:00
TW ac0e725815
Merge pull request #6828 from ThomasWaldmann/remove-prefix-option-borg2
remove -P (aka --prefix) option, fixes #6806
2022-07-02 21:48:02 +02:00
Thomas Waldmann 6888d5dcb2 remove -P (aka --prefix) option, fixes #6806
-a (aka --glob-archives) can be used for same purpose and is more powerful.
2022-07-02 20:52:41 +02:00
Thomas Waldmann a7870ab5bd only accept old repos for --other-repo (e.g. rcreate/transfer)
we do not want to run the new borg code against old repos.

if you want to e.g. check an old repo, use an old borg version.
2022-07-01 00:30:01 +02:00
Thomas Waldmann b0b5a2fd27 add repository.info(), giving some basic repo infos
there was no way to tell the repository version for a remote repo.
borg 2 needs that to reject doing most operations with an old repo,
except the stuff needed for borg transfer.
2022-06-30 23:55:51 +02:00
TW f649b9f16f
Merge pull request #6818 from ThomasWaldmann/fix-hashindex-compact-master
hashindex_compact: fix eval order (check idx before use), fixes #5899
2022-06-30 20:57:17 +02:00
Thomas Waldmann eabad3e3b7 rcreate: always use argon2 kdf for new repos, fixes #6820
this way, we can remove the legacy pbkdf2 key code in next release.
2022-06-30 20:52:48 +02:00
Thomas Waldmann ef24dafb15 tests: use less RepoKey/KeyfileKey 2022-06-30 20:52:48 +02:00
Thomas Waldmann dc2f2f47a8 rcreate: remove legacy encryption modes for new repos, fixes #6490
These are legacy crypto modes based on AES-CTR mode:
(repokey|keyfile)[-blake2]

New crypto modes with session keys and AEAD ciphers:

(repokey|keyfile)[-blake2]-(aes-ocb|chacha20-poly1305)

Tests needed some changes:
- most used repokey/keyfile, changed to new modes
- some nonce tests removed, the new crypto code does not generate
  the repo side nonces any more (were only used for AES-CTR)
2022-06-30 20:52:48 +02:00
Thomas Waldmann 2157a35212 hashindex_compact: fix eval order (check idx before use), fixes #5899
also: fix "off by one" comment
2022-06-29 20:12:29 +02:00
Thalian e492c2281d [DOCS] #6572 - Document FUSE limitations better 2022-06-29 18:50:30 +02:00
Thomas Waldmann 8ebdb0b024 support repo version 1 also, fixes #6811
v2 is the default repo version for borg 2.0.
v1 repos must only be used in a read-only way, e.g. for
--other-repo=V1_REPO with borg init and borg transfer!
2022-06-29 17:31:50 +02:00
Thomas Waldmann f7ef674f29 fix memoryview/bytes issue in upgrader 2022-06-28 22:11:09 +02:00
Thomas Waldmann 5d8b29a93f transfer: --upgrader=NoOp is the default
This is to support general-purpose transfer of archives between related
borg2 repos.

To transfer (and convert) archives from borg 1.2 repos, users need to
give --upgrader=From12To20 .
2022-06-28 22:11:09 +02:00
TW f2d276a892
Merge pull request #6808 from ThomasWaldmann/no-symlinked-hardlinks-macos-borg2
macOS does not support hardlinking symlinks, fixes #6802
2022-06-28 22:08:28 +02:00
Thomas Waldmann b5aebcc253 remove remainders of old borg/attic upgrader 2022-06-28 15:47:35 +02:00
Thomas Waldmann f749d0dccf macOS does not support hardlinking symlinks, fixes #6802 2022-06-28 13:35:36 +02:00
Thomas Waldmann 9680538a70 fix rendering of list/rlist help 2022-06-26 20:08:38 +02:00
Thomas Waldmann dbae8e60eb remove borg upgrade 2022-06-26 00:25:44 +02:00
Thomas Waldmann 3fbb297fd7 compact: remove --cleanup-commits
this was a one-time fix only needed for borg 1.2.

users are expected to use borg 1.2 to cleanup the commits.
2022-06-26 00:07:07 +02:00
TW 162035da91
Merge pull request #6790 from ThomasWaldmann/update-docs-borg2
borg2: update docs
2022-06-25 23:40:04 +02:00
Thomas Waldmann c36c75db59 borg check: remove --name, better use -a
The glob can also match precisely one archive,
so this does the same with less code.
2022-06-25 22:17:29 +02:00
Thomas Waldmann 51cf85e627 build_usage / build_man / doc updates 2022-06-25 21:58:19 +02:00
Thomas Waldmann 4e4bfd27d0 SaveFile: the chmod is optional, fixes #6786
some filesystems do not support chmod, just ignore if it is failing.
2022-06-23 17:44:44 +02:00
Thomas Waldmann 31a081f695 simplify stats output
also:
- move stats related stuff to Statistics class
- repo ops give repo / overall stats
- archive ops give archive stats
- adapt tests
2022-06-23 16:00:12 +02:00
Thomas Waldmann 16b91a41ad fix accidental nesting of subparsers
python 3.11-dev threw a warning that this is deprecated.
2022-06-23 12:08:30 +02:00
Thomas Waldmann e0c64629d1 Merge branch 'master' into borg2
strange conflicts, automated patches seemed to not have applied correctly.
also had to fix some stuff manually, tests were failing.
2022-06-23 11:25:01 +02:00
Thomas Waldmann f578c20b22 fix benchmark tests 2022-06-23 09:50:48 +02:00
Thomas Waldmann d00d650d88 borg init -> borg rcreate
this is to complement borg rdelete, see also borg create / delete.
2022-06-23 09:16:29 +02:00
Thomas Waldmann 34b6248d75 borg delete -a ARCH_GLOB, borg rdelete 2022-06-21 23:05:44 +02:00
Thomas Waldmann 9e5a8a352f borg info -a ARCH_GLOB, borg rinfo 2022-06-21 23:05:44 +02:00
Thomas Waldmann 1bf8f71e69 borg list ARCHIVE, borg rlist 2022-06-21 23:05:44 +02:00
Thomas Waldmann 6addafd784 borg mount -a ARCHIVE_GLOB mountpoint ... 2022-06-21 23:05:44 +02:00
Thomas Waldmann e6a8984c99 borg (import|export)-tar NAME ... 2022-06-20 20:17:29 +02:00
Thomas Waldmann 1ed7e5b292 borg dump-archive NAME / dump-archive-items NAME 2022-06-20 20:17:29 +02:00
Thomas Waldmann 75b53de37e borg diff ARCH1 ARCH2 2022-06-20 20:17:29 +02:00