1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-24 15:12:00 +00:00
Commit graph

7002 commits

Author SHA1 Message Date
Thomas Waldmann
7957af562d blacken all the code
https://black.readthedocs.io/
2022-07-06 16:34:38 +02:00
Thomas Waldmann
7f8f671102 add requirements.d/codestyle.txt with the preferred black version 2022-07-06 16:34:38 +02:00
Andrey Bienkowski
adb1c36215 black integration 2022-07-06 14:55:40 +02:00
TW
7973fc5ec2
Merge pull request #6841 from ThomasWaldmann/fix-codeql
codeql: empty env section is invalid
2022-07-06 14:21:46 +02:00
Thomas Waldmann
a1acc00a90 codeql: empty env section is invalid 2022-07-06 14:20:36 +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
1905f6289d
Merge pull request #6839 from ThomasWaldmann/hlid-docs
document hlid, fixes #2388
2022-07-06 14:08:07 +02:00
Thomas Waldmann
5e0c4a8fd4 document hlid, fixes #2388 2022-07-05 22:27:08 +02:00
TW
dbb9f62afd
Merge pull request #6836 from ThomasWaldmann/cleanups
Cleanups
2022-07-05 02:46:43 +02:00
TW
cb5b1d7dcb
Merge pull request #6834 from ThomasWaldmann/remove-libdeflate
stop using libdeflate
2022-07-05 02:46:27 +02:00
Thomas Waldmann
0dc25000a9 recreate: consider level for recompression, fixes #6698, fixes #3622 2022-07-05 02:38:09 +02:00
Thomas Waldmann
dbb63f874b docs: fix rst literal blocks 2022-07-05 00:38:37 +02:00
Thomas Waldmann
dbe62b8074 docs: replaced tabs by spaces 2022-07-05 00:32:57 +02:00
Thomas Waldmann
ff46a03b42 use language_level = 3str for cython
this will be the default in cython 3.
2022-07-05 00:16:48 +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
TW
820a927b06
Merge pull request #6832 from ThomasWaldmann/rel200a3
release 2.0.0a3
2022-07-04 17:21:49 +02:00
Thomas Waldmann
0264f8dc92 fix benchmark tests 2022-07-04 14:53:31 +02:00
Thomas Waldmann
6fa8d11ecc build_usage ; build_man 2022-07-04 14:09:19 +02:00
Thomas Waldmann
907ffbecfa update CHANGES 2022-07-04 14:09:19 +02:00
Thomas Waldmann
c7ed985ffd Merge branch 'master' into borg2 2022-07-02 23:28:39 +02:00
TW
f9d68050d6
Merge pull request #6829 from ThomasWaldmann/remove-deprecated-stuff-borg2
remove deprecated stuff
2022-07-02 22:42:43 +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
TW
01d40057db
Merge pull request #6827 from ThomasWaldmann/repo-info-borg2
check repo version / borg rinfo extended
2022-07-02 20:49:40 +02:00
TW
dff33f61d7
Merge pull request #6825 from ThomasWaldmann/fix-progress-percent-docs-master
docs: json progress_percent: some values are optional, fixes #4074
2022-07-02 20:21:24 +02:00
Thomas Waldmann
ea4ed6b98f docs: json progress_percent: some values are optional, fixes #4074
in the finished == true message, these are missing:
- message
- current / total
- info

This is to be somewhat consistent with #6683 by only providing a
minimal set of values for the finished case.

The finished messages is primarily intended for cleanup purposes,
e.g. clearing the progress display.
2022-07-01 14:35:44 +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
2ab254cea0
Merge pull request #6821 from ThomasWaldmann/remove-legacy-repo-creation-borg2
rcreate: remove legacy crypto for new repos, fixes #6490
2022-06-30 21:33:46 +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
TW
241a56704b
Merge pull request #6815 from fantasya-pbem/docs/6572_mount-limitations
[DOCS] #6572 - Document FUSE limitations better
2022-06-29 19:46:57 +02:00
TW
677de50364
Merge pull request #6813 from ThomasWaldmann/other-repo-accepts-v1-repo
support repo version 1 also, fixes #6811
2022-06-29 18:54:43 +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
TW
e577ccb094
Merge pull request #6755 from fantasya-pbem/docs/5960_FAQ-quota-size
[DOCS] #5960 - FAQ: Full quota / full disk
2022-06-29 14:42:11 +02:00
TW
a44dbc1dc8
Merge pull request #6809 from ThomasWaldmann/refactor-transfer-upgrades-borg2
transfer: use an Upgrader class
2022-06-28 22:40:28 +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