1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 02:08:54 +00:00
Commit graph

5884 commits

Author SHA1 Message Date
Elmar Hoffmann
d1e730355d only store compressed data if the result actually is smaller
- add DecidingCompressor class providing generic decide(),
  decide_compress() and compress() suited to work using a typical
  private _decide() implementation that eventually generates compressed
  data as a side-effect of the actual decision process
- the new decide_compress() method returns both the actually used
  compressor (which may be NONE) and the compressed data to allow
  the auto compressor to use that information instead of having to
  figure out whether the LZ4 compressor decided to use NONE or LZ4
  compression
- derive LZ4, LZMA and ZSTD classes from DecidingCompressor and
  have them fall back to NONE if the compressed data turns out bigger
  than the original data
- leave ZLIB as is, as it does not use an ID header and compatibility
  being the only reason to use it instead of above algorithms anyway
- adapt testsuite to cope with incompressible test data not being
  compressed
- add tests to verify that incompressible data is not compressed to
  larger size compressed data
2020-04-21 18:32:12 +02:00
TW
27a41f5c1f
Merge pull request #5115 from ThomasWaldmann/redo-pr-4269
docs: clarify borg init's encryption modes
2020-04-21 11:45:40 +02:00
TW
cac301ef25
Merge pull request #5151 from ThomasWaldmann/update-changes-master
update CHANGES (master)
2020-04-21 11:42:47 +02:00
Thomas Waldmann
b5ab795d6f update CHANGES (master) 2020-04-20 22:36:41 +02:00
TW
088dbf9e20
Merge pull request #5147 from ThomasWaldmann/vagrant-updates3
Vagrant updates3
2020-04-20 21:24:31 +02:00
TW
b2e6810a95
Merge pull request #5148 from finefoot/patch-3
Fix read-only tests for fakeroot environment
2020-04-20 21:23:04 +02:00
finefoot
07e445f026
Fix read-only tests for fakeroot environment 2020-04-20 20:29:37 +02:00
Thomas Waldmann
75d90fe27c vagrant: use pyenv in freebsd64 VM
... so we have the same python 3.6.9 based build as in the macOS and Linux VM.
2020-04-20 16:59:35 +02:00
TW
dc95c88242
Merge pull request #5141 from finefoot/patch-1
Fix testing of unsuccessful mount
2020-04-20 12:55:22 +02:00
TW
9a1a807680
Merge pull request #5145 from ThomasWaldmann/vagrant-fixes2
Vagrant fixes2
2020-04-20 12:54:34 +02:00
Thomas Waldmann
e8d6ad6fa3 vagrant: update darwin box
now using a box with preinstalled brew + borg requirements.
2020-04-20 12:52:53 +02:00
finefoot
f320384827
Fix testing of unsuccessful mount 2020-04-19 22:24:11 +02:00
Thomas Waldmann
c2cc7223ae vagrant: use a FreeBSD 12.1 box 2020-04-19 20:46:24 +02:00
Thalian
bfbb1ca525 [DOCS] Move content of resources doc page to community project, #2088 2020-04-19 19:13:02 +02:00
TW
71fa7ed9fe
Merge pull request #5138 from fantasya-pbem/docs/4160_Add-note-about-stored-paths-1.2
[DOCS] Add note about patterns and stored paths, #4160
2020-04-19 13:42:08 +02:00
Thalian
f4f1a75a15 [DOCS] Add note about patterns and stored paths, #4160
Add a section that explains storage of relative paths and how patterns can be used arbitrarily since Borg 1.2.
2020-04-19 12:20:46 +02:00
TW
fb06160fd5
Merge pull request #5134 from ThomasWaldmann/vagrant-fixes
Vagrant fixes (master)
2020-04-18 23:09:39 +02:00
TW
b46fcf0516
Merge pull request #5133 from fantasya-pbem/bugfix/4029_Borg-commands-accept-absolute-paths
[BUGFIX] Borg commands accept absolute pathes, #4029
2020-04-18 23:08:26 +02:00
Thomas Waldmann
c75a7e4156 pyinstaller: work around issue with setuptools > 44
see https://github.com/pypa/setuptools/issues/1963
2020-04-18 23:01:24 +02:00
Thomas Waldmann
49e21b2754 vagrant: fixes for freebsd 12.1 2020-04-18 22:59:13 +02:00
Thalian
ece47ee9e4 [BUGFIX] Borg commands accept absolute pathes, #4029
Strip leading path separator before trying to match a path.
2020-04-18 21:58:17 +02:00
Thomas Waldmann
dd070c05c9 vagrant: fix debianoid virtualenv packages
there is no python-virtualenv on focal64,
but "virtualenv" installs everything needed.
2020-04-18 21:48:04 +02:00
TW
ba154d1104
Merge pull request #5119 from jrast/win-path-fix
Fixed windows path parsing
2020-04-18 01:09:22 +02:00
Jürg Rast
64b6bc88e7 Fixed windows path parsing
The parsing of windows path failed because a undefined variable
was referenced.
2020-04-17 22:42:23 +02:00
TW
a6e4d808e1
Merge pull request #5117 from fantasya-pbem/docs/5090_Add-pip-install-tools
[DOC] Add upgrade of tools to pip installation how-to
2020-04-17 17:45:08 +02:00
Thalian
5cb8bd0dd0 [DOC] Add upgrade of tools to pip installation how-to
fixes #5090
2020-04-17 07:53:48 +02:00
Thomas Waldmann
b5d6e23d84 docs: clarify borg init's encryption modes 2020-04-16 21:35:33 +02:00
TW
80e381c6ea
Merge pull request #5099 from fantasya-pbem/feature/4029_Remove-leading-slashes
let borg commands work tolerate absolute paths, fixes #4029
2020-04-16 20:51:18 +02:00
TW
81e70711e2
Merge pull request #4862 from jrast/win-repo-path
Accept absolute paths on windows
2020-04-16 20:24:46 +02:00
TW
b7acf0da74
Merge pull request #5113 from finefoot/patch-2
Port of #5112 Fix tests of read-only repos for non-root users
2020-04-15 21:56:55 +02:00
finefoot
842cfc8cdb
Fix tests of read-only repos for non-root users 2020-04-13 18:41:41 +02:00
Thalian
3537162568 [FEATURE] Borg commands accept absolute pathes, #4029
Fix the failing tests.
2020-04-13 08:44:38 +02:00
Thalian
6aab0bc4c9 [FEATURE] Borg commands accept absolute pathes, #4029
Remove all leading slashes in patterns of all sorts but re: style.
2020-04-13 08:44:38 +02:00
TW
0a47e3e160
Merge pull request #5108 from ThomasWaldmann/fuse-statfs-fix-namemax
fuse: set f_namemax in statfs result, fixes #2684
2020-04-12 22:11:22 +02:00
Thomas Waldmann
0ab987d5a9 fuse: set f_namemax in statfs result, fixes #2684
setting it to 255 for now (as seen on Linux / ext4),
better than the default 0.

the attribute is present since llfuse 1.3.0, which is
the minimum requirement currently anyway.
2020-04-12 21:05:38 +02:00
TW
27bf0220ac
Merge pull request #5107 from ThomasWaldmann/update-docs
update docs
2020-04-12 19:59:52 +02:00
Thomas Waldmann
6b3c7165aa build_man 2020-04-12 19:55:57 +02:00
Thomas Waldmann
56c599e6dc build_usage 2020-04-12 19:51:49 +02:00
TW
b6a31be8c3
Merge pull request #5106 from ThomasWaldmann/fuse-opts
FUSE micro opt, removal of unneeded code
2020-04-12 18:44:59 +02:00
Thomas Waldmann
cdb6334be4 fuse: remove more unneeded compat code
st_xtime_ns is there since long.
2020-04-12 17:55:24 +02:00
Thomas Waldmann
33519263ac fuse: remove unneeded version check and compat code
we require >= 1.3 now anyway, see setup.py.
2020-04-12 17:55:24 +02:00
Thomas Waldmann
392bc3e3b1 fuse: hot-spot micro-opt for versions view
this way it does not create/discard tons of lists
2020-04-12 00:22:07 +02:00
TW
c867ebfeb6
Merge pull request #5048 from finefoot/patch-8
Option to bypass locking to use sensible borg commands with read-only repositories
2020-04-11 22:18:37 +02:00
finefoot
e49a17143d Add option to bypass locking mechanism 2020-04-11 17:04:52 +02:00
Jürg Rast
8e855ecb8a Accept absolute paths on windows
Accept absolute repo paths on windows.
2020-04-11 17:01:29 +02:00
TW
cccee36a60
Merge pull request #5097 from fantasya-pbem/docs/2295_Orphaned-chunks
[DOC] Document one cause of orphaned chunks in check command, #2295
2020-04-11 16:38:23 +02:00
TW
9ac97e6d0b
Merge pull request #5100 from finefoot/patch-12
Allow message for Error base class
2020-04-11 15:58:53 +02:00
TW
59ae0fc336
Merge pull request #5102 from Gu1nness/5020-openindiana
Remove the flake8 test for Vagrant VMs
2020-04-11 15:57:42 +02:00
Thalian
ce27cf3d4b [DOC] Document one cause of orphaned chunks in check command, #2295
Clean up the whole check usage paragraph.
2020-04-11 14:58:47 +02:00
Rémi Oudin
dc22694e6d
Remove the flake8 test for Vagrant VMs
This is tested after each commit so this test is quite useless on the
Vagrant VMs.
2020-04-11 14:21:32 +02:00