Commit Graph

1524 Commits

Author SHA1 Message Date
Thomas Waldmann 007572594f try to fix build on readthedocs 2015-11-08 02:00:51 +01:00
Thomas Waldmann cd40ec280d update CHANGES 2015-11-08 01:29:53 +01:00
Thomas Waldmann 5595d56ecf deal with unicode errors for symlinks in same way as for regular files, fixes #382 2015-11-08 01:05:55 +01:00
Thomas Waldmann ba67b96434 have a helpful warning message about how to fix wrong locale setup, fixes #382 2015-11-08 00:57:02 +01:00
Thomas Waldmann 244303ac66 add ACL keys the RobustUnpacker must know about 2015-11-07 19:55:17 +01:00
Thomas Waldmann 3d2a1da983 use latest pytest-benchmark 2015-11-07 16:13:24 +01:00
Thomas Waldmann c9090fc3c2 helper: minor style fix 2015-11-07 15:37:05 +01:00
Thomas Waldmann 303bed9d12 docs: minor development docs update 2015-11-07 15:17:40 +01:00
Thomas Waldmann 8cc726a107 make basic test more robust, try 2
check if we have all expected files in list output (but ignore extra lines,
like "can't load libfakeroot" or so).
2015-11-07 00:30:02 +01:00
Thomas Waldmann eb3bc1023b make basic test more robust
counting lines is a bad idea. just one unrelated output line and the test fails.
thus we rather check if what we expect is in the output.
2015-11-07 00:11:36 +01:00
Thomas Waldmann c34ef37516 CHANGES: some fixes, add compatibility notes 2015-11-06 22:04:37 +01:00
Thomas Waldmann 47fec587d4 updated CHANGES 2015-11-06 21:33:43 +01:00
TW 1a20d3d5ae Merge pull request #366 from ThomasWaldmann/fix-364
Fix borg check crashing on some repos, issue #364
2015-11-06 21:05:30 +01:00
Thomas Waldmann c01efa4666 repository: refactor some duplicate code 2015-11-06 19:37:39 +01:00
Thomas Waldmann b1eb784bd1 docs: add section about debug commands 2015-11-06 18:31:06 +01:00
Thomas Waldmann 6c1b765741 docs: group general stuff under 1 headline, fix another headline level 2015-11-06 18:22:30 +01:00
TW 864fa9ae2d Merge pull request #370 from ThomasWaldmann/debug-helpers
Debug helpers
2015-11-06 18:08:05 +01:00
Thomas Waldmann 37c8aa2d42 debug-get-obj command 2015-11-06 17:45:30 +01:00
Thomas Waldmann a2fc479da3 debug-put-obj command 2015-11-06 17:31:05 +01:00
Thomas Waldmann 9986705760 add some tests for the debug commands 2015-11-06 16:51:39 +01:00
TW 583a89c9b9 Merge pull request #379 from jaltek/patch-1
Fix for link to "The Borg collective"
2015-11-06 16:27:03 +01:00
Jan bc6b92f130 Fix for link to "The Borg collective"
Fixed the link to "The Borg collective".
2015-11-06 16:22:05 +01:00
TW ea10551be2 Merge pull request #378 from ThomasWaldmann/list-with-prefix
borg list --prefix=thishostname- REPO, fixes #205
2015-11-06 16:07:22 +01:00
Thomas Waldmann 7da730a8d7 borg list --prefix=thishostname- REPO, fixes #205
lists only archives with names starting with the given prefix.
2015-11-06 15:45:49 +01:00
Thomas Waldmann a4bb85970d do not mention the deprecated passphrase mode 2015-11-06 15:01:37 +01:00
Thomas Waldmann 4c6be00d65 remove some superfluous / duplicate log messages 2015-11-06 14:58:12 +01:00
Thomas Waldmann 0f0a21cf54 Merge branch 'master' of github.com:borgbackup/borg 2015-11-04 01:51:34 +01:00
Thomas Waldmann f6244f006e docs: warn about not running out of space 2015-11-04 01:51:09 +01:00
Thomas Waldmann 39b5734b31 debugging helper: borg debug-delete-obj 2015-11-04 01:05:21 +01:00
Thomas Waldmann 47813f6f6a archiver checker: better error logging, give chunk_id and sequence numbers
can be used together with borg debug-dump-archive-items.
2015-11-04 00:20:12 +01:00
Thomas Waldmann d2b7dbc0a8 debugging helper: borg debug-dump-archive-items 2015-11-03 23:42:58 +01:00
TW 15dd64cdaf Merge pull request #369 from ThomasWaldmann/fix-key-check
Fix key check
2015-11-03 20:43:17 +01:00
Thomas Waldmann 12b5d07e55 fix RobustUnpacker, it missed some metadata keys. add check for unknown metadata keys.
not just the new atime and ctime keys were missing, but also bsdflags.
2015-11-03 20:21:52 +01:00
Thomas Waldmann fa35525b58 create from stdin: also save atime, ctime
cosmetic, just for completeness.
2015-11-03 19:52:49 +01:00
Thomas Waldmann f28d5d1f96 disk full test: some improvements
- can create 0-byte files now
- frees space early (avoids running out of disk space at repo init time)
- creates multiple reserve files, so we do not only reserve some space,
  but also some inodes
 - only print output if there is an error RC
 - if make_files makes us run out of space, that is not interesting, just start
   a new iteration from scratch
2015-11-03 19:39:05 +01:00
Thomas Waldmann f804c6fb1c repository check code: added some comments 2015-11-03 15:41:02 +01:00
Thomas Waldmann 98f3b8d937 fix "check" for repos that have incomplete chunks, fixes #364
added try/finally (the code in between was just indented, no
other code changes) to make sure it sets self.index back to None,
even if the code crashes e.g. due to an IntegrityError caused
by an incomplete segment caused by a disk full condition.

also, in prepare_txn, create an empty in-memory index if transaction_id
is None, which is required by the Repository.check code to work correctly.
If the index is not empty there, it will miscalculate segment usage
(self.segments).
2015-11-03 15:30:33 +01:00
TW 1f271821b8 Merge pull request #363 from ThomasWaldmann/corruption-test
add a test to find disk-full issues, #327
2015-11-03 01:06:41 +01:00
Thomas Waldmann 22262e3fb7 add a test to find disk-full issues, #327 2015-11-03 00:41:20 +01:00
Thomas Waldmann a69f7b0f59 vagrant: use pyinstaller from develop branch, fixes #336
it has some fixes that are not in pyinstaller 3.0 release (and not in master branch).
2015-11-02 21:06:04 +01:00
Thomas Waldmann bdf7dc65bd docs: add example for rename 2015-11-02 20:53:04 +01:00
Thomas Waldmann 6d5cc06cf6 remove unused imports, add missing imports 2015-11-02 20:36:13 +01:00
Thomas Waldmann 734dae80ef improve chunker params docs, fixes #362 2015-11-02 19:47:09 +01:00
Thomas Waldmann 36cc377329 use default_notty=False for confirmations, fixes #345
this is so that e.g. cron jobs do not hang indefinitely if yes() is called,
but it will just default to "no" if not tty is connected.

if you need to enforce a "yes" answer (which is not recommended for
the security critical questions), you can use the environment:

BORG_CHECK_I_KNOW_WHAT_I_AM_DOING=Y
2015-11-02 01:59:22 +01:00
Thomas Waldmann e6231896cd emit a deprecation warning for --compression N
deprecating it in the source is not enough, we also need to tell the users to fix their scripts.
2015-11-02 00:14:01 +01:00
TW 6d0570a6f7 Merge pull request #357 from ThomasWaldmann/coverage-fixes
fix .coverragerc omits, fixes #319
2015-11-01 23:40:00 +01:00
Thomas Waldmann 23a3e3b068 do not measure coverage for fuse.py
it's always at 0% although we do have fuse tests. guess one can't measure such code with coverage.py.
2015-11-01 23:22:04 +01:00
Thomas Waldmann ff66271057 only measure coverage for borgbackup code, not for tests 2015-11-01 23:20:32 +01:00
Thomas Waldmann 35280e9a65 label platform code, exclude freebsd and unknown platform from coverage measurement
this coverage configuration is mostly for travis and there we only can test linux and darwin.
2015-11-01 23:06:52 +01:00
Thomas Waldmann d7b6cc3527 fix .coverragerc path
as the cwd is in toxworkdir, .coveragerc is in ../
2015-11-01 22:36:18 +01:00