Commit Graph

6327 Commits

Author SHA1 Message Date
Thomas Waldmann b04b7a77fd fix --iec option when given after "borg"
now both behave the same:
borg --iec info REPO
borg info --iec REPO
2021-05-03 18:28:58 +02:00
TW c114e060ec
Merge pull request #5788 from RonnyPfannschmidt/move-chunks-equals
move chunk_equals to module level and modernize tox.ini
2021-05-02 21:14:59 +02:00
Ronny Pfannschmidt b726b66fd1 tox.ini: modernize and enable execution without preinstalling deps 2021-05-02 17:51:12 +02:00
TW 880e007c41
Merge pull request #5787 from ThomasWaldmann/upd-chg-master
update CHANGES
2021-05-02 17:33:27 +02:00
Ronny Pfannschmidt 603023bbd5 transform _chunk_content_equal into a global function to ease later benchmarking 2021-05-02 17:29:37 +02:00
Thomas Waldmann 852bc7b0d9 update CHANGES 2021-05-01 23:06:48 +02:00
TW 76063ab219
Merge pull request #5786 from ThomasWaldmann/no-distutils-but-packaging-master
get rid of distutils, using packaging
2021-05-01 21:27:25 +02:00
Thomas Waldmann 14722acebc github CI: test on py310 (again) 2021-05-01 20:40:48 +02:00
Thomas Waldmann 65ea375968 get rid of distutils, use packaging 2021-05-01 20:40:48 +02:00
Thomas Waldmann 9d8d64c5e3 setup.py: get rid of distutils, use setuptools
distutils is deprecated and gives warnings on py 3.10.

rename "clean" to "clean2" to avoid shadowing the "clean" command.
2021-05-01 20:40:48 +02:00
TW 99065a4034
Merge pull request #5780 from ThomasWaldmann/show-early
print preliminary file status early, fixes #5417
2021-04-30 21:03:10 +02:00
Thomas Waldmann 76dfd64aba create/recreate: print preliminary file status early, fixes #5417
if we back up stdin / pipes / regular files (or devices with --read-special),
that may take longer, depending on the amount of content data (could be many GiBs).

usually borg announces file status AFTER backing up the file,
when the final status of the file is known.

with this change, borg announces a preliminary file status before
the content data is processed. if the file status changes afterwards,
e.g. due to an error, it will also announce that as final file status.
2021-04-30 20:34:13 +02:00
TW 91e9520946
Merge pull request #5743 from rom1v/iec
add --iec option to express sizes in powers of 1024 (KiB, MiB, …)
2021-04-28 15:57:17 +02:00
Romain Vimont 9ddcfaf4f7 info / create --stats: add --iec option
If --iec is passed, then sizes are expressed in powers of 1024
instead of 1000.
2021-04-28 15:17:40 +02:00
TW 57abf9a3ad
Merge pull request #5778 from ThomasWaldmann/missing-chunk-id-master
missing / healed chunks: always tell chunk ID, fixes #5704
2021-04-20 00:43:02 +02:00
Thomas Waldmann dec1664a7e missing / healed chunks: always tell chunk ID, fixes #5704 2021-04-19 23:46:21 +02:00
TW 16c6819824
Merge pull request #5777 from ThomasWaldmann/issue-5673
do not load files cache for commands not using it, fixes #5673
2021-04-19 23:09:29 +02:00
Thomas Waldmann 02a9db50d2 do not load files cache for commands not using it, fixes #5673 2021-04-19 22:40:21 +02:00
TW 318b0446b5
Merge pull request #5775 from ThomasWaldmann/cache-readme-create-once-master
fix repeated cache tag file writing bug
2021-04-19 21:35:07 +02:00
Thomas Waldmann adc89c488c fix repeated cache tag file writing bug
this bug was introduced by PR #5485 and also affects backport PR #5774.
2021-04-19 21:07:29 +02:00
TW a9b1e1fe56
Merge pull request #5773 from ThomasWaldmann/attack-or-unsafe-docs-master
docs: add unsafe workaround to use an old repo copy, fixes #5722
2021-04-19 20:23:27 +02:00
TW 04915c4175
Merge pull request #5769 from ThomasWaldmann/update-changes-master
update CHANGES (master)
2021-04-19 20:23:09 +02:00
Thomas Waldmann 06c6e7e79c docs: add unsafe workaround to use an old repo copy, fixes #5722 2021-04-19 20:11:37 +02:00
Thomas Waldmann c5ec6e78d2 update CHANGES (master) 2021-04-19 18:34:56 +02:00
TW 426f5e8335
Merge pull request #5726 from rblenis/fix-line-lengths
cleanup code style checks
2021-04-19 17:34:11 +02:00
Robert Blenis 789908f13f fix pep8 violations in errorlist.py 2021-04-18 10:06:48 -04:00
Robert Blenis 96a138b226 fix pep8 violations in conftest.py 2021-04-18 10:04:43 -04:00
Robert Blenis d0841eb759 cleanup flake8 checks
- make code style exceptions tailored to specific files, so that it's less likely that new violations creep into the code.
2021-04-18 07:10:10 -04:00
TW 9d7ab7bee2
Merge pull request #5767 from ThomasWaldmann/remote-options
remote-options: help string fixup
2021-04-16 23:28:41 +02:00
Thomas Waldmann 7290333051 help string fixup 2021-04-16 19:09:52 +02:00
TW 56a75ee691
Merge pull request #5766 from ThomasWaldmann/remote-options
--remote-* option names deprecation
2021-04-16 19:07:44 +02:00
Thomas Waldmann 6b838febe8 s/remote_(buffer|ratelimit)/upload_(buffer/ratelimit)/g 2021-04-16 15:48:10 +02:00
Thomas Waldmann 40e4aa085f add --upload-(ratelimit|buffer), deprecate --remote-*, fixes #5611 2021-04-16 15:45:10 +02:00
TW 5543e3b74b
Merge pull request #5765 from ThomasWaldmann/numeric-ids
--numeric-ids
2021-04-16 15:34:19 +02:00
Thomas Waldmann 6f9b9e5a53 s/numeric_owner/numeric_ids/g 2021-04-16 15:02:16 +02:00
Thomas Waldmann 251ce11fd8 add --numeric-ids, deprecate --numeric-owner option, fixes #5724 2021-04-16 14:52:12 +02:00
TW c88a37eea4
Merge pull request #5737 from adrian5/master
docs: Add commas to pattern help section
2021-03-20 14:22:30 +01:00
adrian5 6f371d5522 docs: Add commas to pattern help section 2021-03-19 09:34:51 +01:00
TW 9776754b89
Merge pull request #5708 from rblenis/diff-json-lines
add --json-lines option to diff command
2021-03-14 21:04:39 +01:00
Robert Blenis b2dea4422e add --json-lines option to diff command 2021-03-13 11:50:55 -05:00
TW eeda4650ae
Merge pull request #5730 from ThomasWaldmann/disable-py310-testing-master
don't test on py310 for now
2021-03-12 20:32:00 +01:00
Thomas Waldmann 9884104219 don't test on py310 for now
it breaks everything due to issue #5729 - reenable after fixing that.
2021-03-12 20:10:11 +01:00
TW 18b58cc701
Merge pull request #5725 from ThomasWaldmann/mount-name-mapping
mount: implement --numeric-owner (default: False!)
2021-03-11 14:14:25 +01:00
Thomas Waldmann bbccdbd81c mount: implement --numeric-owner (default: False!), fixes #2377
this is different default behaviour than in borg < 1.2:

default (numeric_owner=False) is to use the user/group name from the archive,
look up the local uid / gid and then use that for the FUSE fs.

when --numeric-owner is given (numeric_owner=True), then the uid/gid
from the archive is directly used (as it was the default behaviour in
borg < 1.2).

this was implemented like this (changing the default behaviour) to make
borg mount and borg extract behave more similar considering usage of
user/group numeric archived ids or archived names mapped to corresponding
numeric local system ids.

also, both now use the same function to get the uid/gid from the item.

fuse:
- add user and group name entries to default_dir
- also: set internal_dict(!) of new Item with data from Item.as_dict()
2021-03-07 18:16:23 +01:00
TW 1ef7519823
Merge pull request #5714 from ThomasWaldmann/drop-old-buffer-protocol-support-parts-master
add support and testing for python 3.10
2021-02-28 23:15:00 +01:00
TW 086c0f2a6e
Merge pull request #5713 from ThomasWaldmann/files-cache-debug-logging-master
verbose files cache logging via --debug-topic=files_cache, fixes #5659
2021-02-28 23:14:28 +01:00
TW bffb3151a5
Merge pull request #5712 from ThomasWaldmann/repo-config-nonint-values-master
Repo config nonint values (master)
2021-02-28 22:59:24 +01:00
Thomas Waldmann 9f4a6e5574 add support and testing for python 3.10 2021-02-28 22:49:03 +01:00
Thomas Waldmann 2211b840a3 verbose files cache logging via --debug-topic=files_cache, fixes #5659 2021-02-28 22:39:44 +01:00
Thomas Waldmann d44836a865 config: accept non-int value for max_segment_size
borg config REPO max_segment_size 500M

note: when setting a non-int value for this in a repo config, using the repo will require borg >= 1.1.16.
2021-02-28 22:28:58 +01:00