Commit Graph

2046 Commits

Author SHA1 Message Date
Marian Beermann b59f92a533 Test suite: Reset exit code of persistent archiver
#844
2016-04-06 10:04:35 +02:00
TW 515b7454a3 Merge pull request #839 from enkore/issue/791
If BORG_PASSPHRASE is present but wrong, don't prompt for password, f…
2016-04-04 21:47:21 +02:00
TW 9a7bad295c Merge pull request #838 from enkore/issue/792
Remote: don't print tracebacks for Error exceptions handled downstream
2016-04-04 21:37:04 +02:00
Marian Beermann 890e44ef60 RemoteRepository: clean up pipe if remote open() fails 2016-04-04 17:10:14 +02:00
Marian Beermann 425a4d819d Remote: don't print tracebacks for Error exceptions handled downstream
(What we'd really want is to have proper exception transporting over
 the RPC)

Fixes #792
2016-04-04 17:09:52 +02:00
Marian Beermann 8f716d8ca1 If BORG_PASSPHRASE is present but wrong, don't prompt for password, fail instead.
Leaves PassphraseKey alone, since I cannot test it.

Fixes #791
2016-04-03 21:37:15 +02:00
TW e6fff5fe1f Merge pull request #836 from ThomasWaldmann/complete-log-levels
add --warning, --error, --critical for completeness, fixes #826
2016-04-03 20:51:02 +02:00
TW a519333376 add --warning, --error, --critical for completeness, fixes #826
it's not recommended to suppress warnings or errors,
but the user may decide this on his own.

note: --warning is not given to borg serve so a <= 1.0.0 borg
will still work as server. it is not needed as it is the default.
2016-04-03 20:20:48 +02:00
TW 7b6ae60df5 Merge pull request #834 from enkore/issue/826
ArchiveChecker: move "orphaned objects check skipped" to INFO log level
2016-04-03 19:15:30 +02:00
Marian Beermann d7299c9230 ArchiveChecker: move "orphaned objects check skipped" to INFO log level
Fixes #826
2016-04-03 18:23:40 +02:00
TW 86361fd75f update CHANGES
the password roundtrip was already in 1.0.0, removed it from 1.0.1 changes.
rephrase / prettify some stuff.
2016-04-03 17:49:37 +02:00
TW fc10ac0ef9 Merge pull request #830 from enkore/feature/1.0ctxmng
Make Repository a context manager, use decorators for wrapping withs
2016-04-03 17:36:38 +02:00
Marian Beermann 83586ae09c Make Repository a context manager, use decorators for wrapping withs
(Remote)Repository.close() is not a public API anymore, but a private
API. It shall not be used from within other classes than Repository
or it's tests. The proper way is to use a context manager now. However,
for RPC/Remote compatibility with Borg 1.0 it is kept and unchanged.

Repositories are not opened by __init__ now anymore, it is done
by binding it to a context manager. (This SHOULD be compatible both ways
with remote, since opening the repo is handled by a RepositoryServer method)

Decorators @with_repository() and @with_archive simplify
context manager handling and remove unnecessary indentation.

Backported to 1.0-maint
2016-04-03 17:14:43 +02:00
TW 8d9dbc6901 Merge pull request #820 from ipha/master
fix incorrect _ns variables
2016-03-31 23:53:19 +02:00
TW ad57178ad7 Merge pull request #819 from enkore/fix/chunker-io2
Chunker: fix wrong EOF assumption, check for return type
2016-03-31 23:45:47 +02:00
Mitch Bigelow f406bf7879 fix incorrect _ns variables 2016-03-31 17:31:53 -04:00
Marian Beermann 061bf59d5d Chunker: fix wrong EOF assumption[1], check for return type[2]
[1]
This worked incidentally because OSes tend to return at least one page
worth of data when EOF is not reached. Increasing WINDOW_SIZE beyond
the page size might have lead to data loss.

[2]
If read() of the passed Python object returned something not-bytes,
PyBytes_Size returns -1 (ssize_t) which becomes a very larger number for
memcpy()s size_t.
2016-03-31 22:03:17 +02:00
Thomas Waldmann 2f74d2e288 update CHANGES 2016-03-31 21:44:43 +02:00
wormingdead 1cc053bee4 Document logo font. Recreate logo png. Remove GIMP logo file. 2016-03-31 21:37:30 +02:00
Alexander Pyhalov e494d24d6a failing hashindex tests on netbsd, fixes #804 2016-03-31 21:32:27 +02:00
Thomas Waldmann c35dbac44b update CHANGES 2016-03-31 21:28:35 +02:00
TW 8cfc930066 Merge pull request #817 from enkore/feature/append-only
Feature append only
2016-03-31 19:57:13 +02:00
Marian Beermann 8f6ce9051b append-only mode: docs reformulated 2016-03-31 18:52:40 +02:00
Marian Beermann effa992d22 append-only mode: use single file for log, disallow check --repair, docs 2016-03-31 18:23:08 +02:00
Marian Beermann ffc8cf6c97 Append-only mode for repositories
New repository config item, repository.append_only, causes Borg to never
delete or append to existing data files. Hints and indices are handled
as before, old ones are deleted, because they can get quite large, but
are automatically reconstructed: no need to keep them.

When append_only is activated a file /path/to/repo/transactions/<NUMBER>
will be created for every commit.
Deleting all segments <NUMBER+1> and higher will rollback to that commit.

Note that this only influences Borg behaviour. Since repository config
can't be altered remotely (except for repository.key) this can't be
disabled when accessed remotely over SSH with "borg serve" as the
forced command.

This is only a feature to support the use case, and does not replace
appropriate file system permissions or monitoring.

Resolves #809
2016-03-31 17:29:17 +02:00
TW bf208479d7 Merge pull request #801 from ThomasWaldmann/cosmetic-fix
fix capitalization, add ellipses, change log level to debug for 2 mes…
2016-03-26 17:16:13 +01:00
Thomas Waldmann 3e120378e0 fix capitalization, add ellipses, change log level to debug for 2 messages, fixes #798 2016-03-26 14:31:54 +01:00
Thomas Waldmann 40dbb7411c fix cygwin requirements (gcc-g++) 2016-03-21 16:11:43 +01:00
TW 42beb2dc92 Merge pull request #785 from pyhalov/illumos-build-1.0
Fix build on illumos
2016-03-21 16:07:52 +01:00
TW e435a5ac41 Merge pull request #784 from pyhalov/doors-1.0
Don't try to backup doors or event ports (Solaris and derivates).
2016-03-21 16:04:35 +01:00
Alexander Pyhalov f63be63347 Fix build on illumos 2016-03-21 17:39:55 +03:00
Alexander Pyhalov e98f823f34 Don't try to backup doors or event ports 2016-03-21 17:35:51 +03:00
Thomas Waldmann f486a6772c do not sleep for >60s while waiting for lock, fixes #773 2016-03-19 21:19:30 +01:00
Marian Beermann 489eb78cbb Possible fix to silently skipping EIO and the like? #748 2016-03-16 01:32:48 +01:00
TW 648761fc03 Merge pull request #739 from ThomasWaldmann/remove-libc-display
remove useless/misleading libc version display, fixes #738
2016-03-12 02:14:45 +01:00
Thomas Waldmann 3115bb4d1b remove useless/misleading libc version display, fixes #738
platform.libc_ver() is broken, it uses string comparison to compare version numbers.
2016-03-12 01:29:14 +01:00
TW 9be520b64a Merge pull request #737 from ThomasWaldmann/document-network-fs-issues
document how to debug / file filesystem issues, fixes #664
2016-03-12 00:51:14 +01:00
Thomas Waldmann b6966a56dc document how to debug / file filesystem issues, fixes #664
if the filesystem issue can't be reproduced with a known-good,
local fs like ext4 on linux, the issue is likely not borg's fault.
2016-03-12 00:48:26 +01:00
TW b2b5ca718c Merge pull request #736 from ThomasWaldmann/fix-reproducible
fix reproducible build of api docs, fixes #399
2016-03-12 00:09:13 +01:00
Thomas Waldmann 7abcaa0d9d fix reproducible build of api docs 2016-03-11 23:37:37 +01:00
TW 95f928699b Merge pull request #733 from ipha/master
Unpack file stats before passing to fuse
2016-03-10 22:35:25 +01:00
TW ec0e1553d6 Merge pull request #728 from alexskc/master
CSS !important overwrite. Fix borgbackup/borg#727
2016-03-10 22:24:58 +01:00
Mitch Bigelow 353774973e file stats are packed with 'int_to_bigint' in the archive. Unpack these before passing to llfuse 2016-03-10 15:50:45 -05:00
alexskc 2931891352 CSS !important overwrite. Fix borgbackup/borg#727 2016-03-09 19:01:49 -06:00
TW 07cd2fa143 Merge pull request #726 from ThomasWaldmann/fuse-requirements
update llfuse requirement, llfuse 1.0 works
2016-03-09 16:01:42 +01:00
Thomas Waldmann dd6a795536 update llfuse requirement, llfuse 1.0 works 2016-03-09 15:45:10 +01:00
Thomas Waldmann c7776fa271 update OS / dist packages on build machines, fixes #717 2016-03-05 21:15:25 +01:00
TW a2e356dccf Merge pull request #715 from ThomasWaldmann/roundtrip-password
implement password roundtrip, fixes #695
2016-03-05 16:37:20 +01:00
Thomas Waldmann 95c4cf221d implement password roundtrip, fixes #695 2016-03-05 16:21:44 +01:00
Thomas Waldmann 96702ec1e3 prepare CHANGES for 1.0.0 2016-03-05 14:46:28 +01:00