1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 17:27:31 +00:00
Commit graph

6927 commits

Author SHA1 Message Date
TW
b14bf8110f
Merge pull request #6785 from ThomasWaldmann/new-info
simplified stats
2022-06-23 23:01:52 +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
TW
d039f2685a
Merge pull request #6766 from ThomasWaldmann/split-repo-archive
borg2: split repo and archive name into separate args, fixes #948
2022-06-23 10:20:11 +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
TW
1576859ec0
Merge pull request #6780 from ThomasWaldmann/paths-from-normpath-master
create --paths-from-(stdin|command): normalize paths, fixes #6778
2022-06-22 00:20:34 +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
Thomas Waldmann
b8c7c53dde borg extract NAME ... 2022-06-20 20:17:29 +02:00
Thomas Waldmann
f8d2024578 borg recreate -a ARCHIVE_GLOB ... 2022-06-20 20:17:29 +02:00
Thomas Waldmann
3fd5b73e1e borg create NAME ... 2022-06-20 20:17:28 +02:00
Thomas Waldmann
c085c2744b borg rename NAME NEWNAME 2022-06-20 15:18:24 +02:00
Thomas Waldmann
28b32e7a57 create --paths-from-(stdin|command): normalize paths, fixes #6778 2022-06-20 14:21:37 +02:00
Thomas Waldmann
206245f3cd --repo: add -r short option 2022-06-16 15:41:37 +02:00
Thomas Waldmann
801ce819a3 help: archive name 2022-06-16 14:32:40 +02:00
Thomas Waldmann
3e765522de help: transfer from other repo 2022-06-16 14:23:47 +02:00
Thomas Waldmann
7dbf125083 Location: remove archive name 2022-06-16 14:18:47 +02:00
Thomas Waldmann
281bbbc16b fix tests and benchmarks 2022-06-16 14:18:39 +02:00
Thomas Waldmann
0f0cd24354 if --(other-)repo option is not given, use default from environment
remove tests composing a repo+archive location with repo from env
and location from cli.
2022-06-16 14:14:54 +02:00
Thomas Waldmann
1bf2a6a240 remove archive checks from location_validator, use --other-repo 2022-06-15 17:07:42 +02:00
Thomas Waldmann
1c707b7da2 cli: use --repo option instead of positional repo parameter
currently still with ::archive appended.
2022-06-15 16:36:56 +02:00
TW
9e5062c015
Merge pull request #6774 from ThomasWaldmann/fix-selftest-count-borg2
borg2: misc small fixes
2022-06-14 16:57:26 +02:00
TW
a3a1974c52
Merge pull request #6773 from wizeman/fix-obfuscate
fix test_obfuscate byte accounting
2022-06-14 15:43:30 +02:00
Thomas Waldmann
c01f3527e5 fix linter errors 2022-06-14 15:42:30 +02:00
Thomas Waldmann
72994a4432 also test pull requests against borg2 branch 2022-06-14 15:40:09 +02:00
Thomas Waldmann
f9132687e3 fix selftest count 2022-06-14 15:17:30 +02:00
Ricardo M. Correia
18f70be0e3 fix test_obfuscate byte accounting 2022-06-14 14:55:02 +02:00
TW
dc4a1e6d2d
Merge pull request #6705 from ThomasWaldmann/repoindex
borg2: repoindex improvements
2022-06-14 14:51:18 +02:00
Thomas Waldmann
e5ea016115 repository: set/query flags, iteration over flagged items (NSIndex)
use this to query or set/clear flags in the "extra" word.

also: remove direct access to the "extra" word, adapt tests.
2022-06-14 14:48:56 +02:00
Thomas Waldmann
bf9f42320e repository: sync write file in get_fd
this fixes a strange test failure that did not happen until now:
it could not read the MAGIC bytes from a (quite new) segment file,
it just returned the empty string.

maybe its appearance is related to the removed I/O calls.
2022-06-14 14:48:56 +02:00
Thomas Waldmann
3ce3fbcdff repository index: add payload size (==csize) and flags to NSIndex entries
This saves some segment file random IO that was previously necessary
just to determine the size of to be deleted data.

Keep old one as NSIndex1 for old borg compatibility.
Choose NSIndex or NSIndex1 based on repo index layout from HashHeader.

for an old repo index repo.get(key) returns segment, offset, None, None
2022-06-14 14:48:56 +02:00
TW
fc8a289647
Merge pull request #6763 from ThomasWaldmann/remove-csize
borg2: there is no csize
2022-06-14 12:15:56 +02:00
TW
9747ce459b
Merge pull request #6770 from ThomasWaldmann/safe-secure-erase-master
secure_erase: avoid collateral damage, fixes #6768
2022-06-13 19:41:23 +02:00
TW
e380136ae6
Merge pull request #6772 from sergeyklay/patch-1
Use license_files instead of license_file
2022-06-13 19:38:08 +02:00
Serghei Iakovlev
928d2925bb
Use license_files instead of license_file
Closes #6727

See: https://github.com/pypa/setuptools/pull/2620
2022-06-13 16:09:38 +02:00
Thomas Waldmann
ba1f8926cc secure_erase: avoid collateral damage, fixes #6768
if a hardlink copy of a repo was made and a new repo config
shall be saved, do NOT fill in random garbage before deleting
the previous repo config, because that would damage the hardlink
copy.
2022-06-13 15:57:01 +02:00
Thomas Waldmann
1393e4f391 remove csize references from docs 2022-06-12 18:01:57 +02:00
Thomas Waldmann
75ad3b8e35 remove csize expectation from do_transfer upgrade_item
the size is already remove via Item._update_internal method.
2022-06-12 17:50:12 +02:00
TW
a4fc8a29f4
Merge pull request #6764 from targhs/doc/correct-installation-shell-syntax
Correct shell syntax for installation using git
2022-06-12 17:20:48 +02:00
Thomas Waldmann
822aefc7b0 re-add dsize placeholder 2022-06-12 17:15:13 +02:00
Thomas Waldmann
49adb77157 calc_stats: deduplicated size now, was deduplicated csize
also: remove pre12_meta cache
2022-06-12 17:15:13 +02:00
Thomas Waldmann
19dfbe5c5c compute the deduplicated size before compression
so we do not need csize for it.
2022-06-12 17:15:13 +02:00
Thomas Waldmann
1fd571a4d0 fix comments 2022-06-12 17:15:13 +02:00