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

2471 commits

Author SHA1 Message Date
enkore
e9486ec348 Merge pull request #1643 from ThomasWaldmann/fix-1551
fix closed FD issue, fixes #1551
2016-09-26 09:30:49 +02:00
Thomas Waldmann
60c5482e6b fix closed FD issue, fixes #1551 2016-09-26 04:34:25 +02:00
TW
38819552df Merge pull request #1636 from textshell/feature/subcommands
Use subcommands for debug-* and key-*
2016-09-25 23:33:38 +02:00
TW
995c3a2488 Merge pull request #1623 from ThomasWaldmann/yes-retries
yes(): abort on wrong answers, saying so
2016-09-25 22:34:32 +02:00
TW
6642dadfc6 Merge pull request #1631 from ThomasWaldmann/improve-signal-handling
Improve signal handling
2016-09-25 22:14:38 +02:00
TW
5d6d4a1bd9 Merge pull request #1639 from textshell/patch-1
development.rst: Add sphinx_rtd_theme to the sphinx install command
2016-09-25 21:56:17 +02:00
Martin Hostettler
4f9f25db02 development.rst: Add sphinx_rtd_theme to the sphinx install command
It’s used by default, so install it as well.
2016-09-25 21:45:15 +02:00
Thomas Waldmann
d9b880fdf3 fix signal handling, fixes #1620
use context manager for signal handler installation / restoration -
this includes the special case of installing handler SIG_IGN to ignore
a signal and restoring the original (non-ignoring) handler.

use SIG_IGN to avoid a 2nd signal interrupts the handling of the 1st signal.
2016-09-25 17:59:26 +02:00
Martin Hostettler
a11436cfb6 setup.py: Add subcommand support to build_usage. 2016-09-25 17:11:56 +02:00
Martin Hostettler
5c2424831e archiver: Create a subcommmand debug for all debug-* commands
The debug commands all should subcommands of a common debug command.

This commit adds this command but keeps the old command names for 1.0.x.
The plan is to remove them in 1.1.0.
2016-09-25 16:24:57 +02:00
Martin Hostettler
29b5136da7 archiver: Move key management commands to new key subcommand. 2016-09-25 16:24:57 +02:00
TW
b055bb025f Merge pull request #1616 from textshell/issue/1555
Implement key import / export
2016-09-24 15:54:46 +02:00
Martin Hostettler
55a3331942 Implement key import / export
We recommed that users backup their keys, this adds simple to use commands
to do so.

Supported formats are the keyfile format used by borg internally and
a special format with by line checksums for printed backups.

For this format the import is an interactive process which checks
each line as soon as it is input.

Fixes #1555
2016-09-24 12:55:34 +02:00
TW
79617d4e74 Merge pull request #1629 from ThomasWaldmann/fix-narrow-terminal-crash
adapt formatting to narrow screens, do not crash, fixes #1628
2016-09-23 03:30:02 +02:00
Thomas Waldmann
7e7dd9688d adapt formatting to narrow screens, do not crash, fixes #1628
when screen width was too narrow, the {space} placeholder could get negative,
which crashes as it is a width specification.

now we simplify progress output if screen is narrow.
we stop output completely if screen is ridiculously narrow.
2016-09-23 00:26:04 +02:00
Thomas Waldmann
7b9d0c9739 yes(): abort on wrong answers, saying so
except for the passphrase display as we can only display it as long as we have it in memory,
here: retry, telling the user if he entered something invalid and needs to enter again.
2016-09-22 02:43:57 +02:00
TW
eac439a65f Merge pull request #1614 from ThomasWaldmann/trivial-changes
trivial code optimization
2016-09-17 23:50:56 +02:00
Thomas Waldmann
34ec344e9d trivial code optimization 2016-09-17 17:19:26 +02:00
enkore
50cef5a768 Merge pull request #1612 from senden9/patch-2
Fix inconsistency in FAQ
2016-09-17 12:05:28 +02:00
Stefano Probst
deadc81729 Fix inconsistency in FAQ
The script in the FAQ is named pv-wrapper. But in the variable export pv-wrapper.sh was used.
2016-09-17 09:14:01 +02:00
TW
b3fac01683 Merge pull request #1595 from ThomasWaldmann/update-wheezy-box
update wheezy vagrant box to 7.11
2016-09-14 02:26:17 +02:00
Thomas Waldmann
3c3502a9a0 update wheezy vagrant box to 7.11
7.9 is not available any more.
2016-09-14 02:22:46 +02:00
enkore
8a62b16ecf Merge pull request #1594 from julian-klode/bugfix/sighup
Handle SIGHUP for proper unlock on lost connection, fixes #1593
2016-09-13 23:54:08 +02:00
Julian Andres Klode
c8f4e9e34c Correctly exit with proper unlock on SIGHUP, fixes #1593
If the connections hangs up, the borg server needs to clean
up, especially unlock the repository, so a later try will
work again.

This is especially problematic with systemd systems that have
KillUserProcesses enabled (which is the default): Logind sends
a SIGHUP message to the session scope when the session ends.
2016-09-13 22:01:28 +02:00
enkore
3714be0d79 Merge pull request #1581 from enkore/issue/1580
hashindex: export max load factor to Python-space
2016-09-09 19:31:22 +02:00
Marian Beermann
be3616b6b3 ArchiveChecker: use MAX_LOAD_FACTOR constant 2016-09-09 16:11:06 +02:00
enkore
142079f3cb Merge pull request #1585 from enkore/issue/1584
create --read-special fix crash on broken symlink
2016-09-08 23:53:51 +02:00
TW
6ff1f6257e Merge pull request #1567 from ThomasWaldmann/improve-dev-docs
contribution guidelines
2016-09-08 20:22:43 +02:00
Thomas Waldmann
b2e389e0a0 docs: add contribution guidelines 2016-09-08 19:40:32 +02:00
Marian Beermann
f1cf7bc322 process_symlink: fix missing backup_io()
Fixes a chmod/chown/chgrp/unlink/rename/... crash race between getting dirents
and dispatching to process_symlink.
2016-09-08 16:43:48 +02:00
Marian Beermann
4cb3355d90 create --read-special fix crash on broken symlink
also correctly processes broken symlinks. before this regressed to a crash
(5b45385) a broken symlink would've been skipped.
2016-09-08 16:39:44 +02:00
Marian Beermann
197552526f hashindex: make MAX_VALUE a class constant 2016-09-07 16:10:10 +02:00
Marian Beermann
9fe0140d94 hashindex: export max load factor to Python-space 2016-09-07 16:08:07 +02:00
TW
b1d3a39a63 Merge pull request #1577 from enkore/issue/1576
Fix second block in "Easy to use" section not showing on GitHub
2016-09-06 13:58:51 +02:00
Marian Beermann
ac8d65cc47 Fix second block in "Easy to use" section not showing on GitHub
Fixes #1576
2016-09-06 13:03:59 +02:00
enkore
84e34a7676 Merge pull request #1568 from ThomasWaldmann/bestpractices-badge
add bestpractices badge
2016-09-04 17:55:28 +02:00
Thomas Waldmann
45d72722af add bestpractices badge 2016-09-03 21:11:47 +02:00
enkore
a6fe69cb80 Merge pull request #1566 from ThomasWaldmann/improve-docs
misc docs improvements
2016-09-03 19:52:11 +02:00
Thomas Waldmann
f70008238a link reference docs and faq about BORG_FILES_CACHE_TTL, fixes #1561 2016-09-03 19:23:59 +02:00
Thomas Waldmann
2c5b8d690b improve borg info --help, explain size infos, fixes #1532 2016-09-03 19:23:58 +02:00
Thomas Waldmann
2e1cf17dd5 add release signing key / security contact to README, fixes #1560 2016-09-03 19:23:40 +02:00
TW
a6620f020e Merge pull request #1531 from ThomasWaldmann/fix-fuse-xattr-fakeroot
work around fuse xattr test issue with recent fakeroot
2016-08-25 02:09:52 +02:00
Thomas Waldmann
c12bcff30f work around fuse xattr test issue with recent fakeroot
fakeroot >= 1.20.2 "supports" xattrs, but this support somehow leads to the fuse tests not seeing
the xattrs in fuse, because the file visible in the fuse mount was not created via fakeroot.
2016-08-25 02:09:04 +02:00
TW
17bd6e0ef4 Merge pull request #1525 from textshell/fix/remote-manual-ssh
borg serve throws exception while trying to close when it gets eof at start
2016-08-24 14:09:06 +02:00
Martin Hostettler
549be2129a RepositoryServer: Add error message when connection was closed before opening repo. 2016-08-24 08:32:04 +02:00
Martin Hostettler
79de73685b remote: Change exception message for unexpected RPC data format to indicate dataflow direction
don't print stacktraces to clean up error messages when sshing into a forces command to borg serve.
2016-08-24 08:31:09 +02:00
TW
b403a111fe Merge pull request #1530 from ThomasWaldmann/simplify-repo-tests
Simplify repo/hashindex tests
2016-08-23 22:33:15 +02:00
Thomas Waldmann
93517ca30e hashindex tests: use H(x) instead of some similar constructs
note: hash values needed updating because H(x) formats differently.
2016-08-23 21:29:40 +02:00
Thomas Waldmann
0da0914955 repo tests: use H(x) instead of some similar constructs 2016-08-23 21:29:40 +02:00
Thomas Waldmann
ddb1c60964 repo tests: use H(x) instead of byte literals 2016-08-23 21:29:40 +02:00