Commit graph

788 commits

Author SHA1 Message Date
Thomas Kluyver
ae2a1b8135 Name backup directories with 'before-upgrade'
Closes gh-2811
2017-07-15 16:23:08 +02:00
Marian Beermann
019a258709 create _endian.h 2017-07-11 19:12:19 +02:00
TW
e36be956f1 Merge pull request #2792 from ThomasWaldmann/comment-placeholder
support borg list repo --format {comment}, fixes #2081
2017-07-06 03:12:01 +02:00
Thomas Waldmann
852505fb69 ItemFormatter: code defensively, always use new dict for returned object 2017-07-05 23:37:42 +02:00
Thomas Waldmann
75c602d294 support borg list repo --format {comment}, fixes #2081
Also supported: {bcomment} for binary and {end} for backup end time.

Refactor so ArchiveFormatter works similar to ItemFormatter.
2017-07-05 23:37:42 +02:00
Wladimir Palant
7be39af581 #2800 - Better explanation of the --ignore-inode option relevance (#2802)
Fixes #2800
2017-07-05 17:16:31 +02:00
enkore
6ffa797bde Merge pull request #2791 from ThomasWaldmann/dash_open
WIP dash_open
2017-07-05 10:02:34 +02:00
Thomas Waldmann
e728d102ec use dash_open 2017-07-05 01:59:31 +02:00
Thomas Waldmann
a96dede632 dash_open: generalized and renamed open_file_or_stdin 2017-07-05 01:58:31 +02:00
TW
9ca666907b use limited unpacker for outer key, fixes #2174 (#2790)
* use limited unpacker for outer key, fixes #2174

* fixup: higher inner key data size limit
2017-07-04 22:51:31 +02:00
Thomas Waldmann
808d24d088 use commit() in borg with-lock, fixes #1867 2017-07-04 05:50:22 +02:00
TW
9bd522819e Merge pull request #2778 from enkore/f/fuse-versions-numbering
fuse: versions view, linear numbering by archive time
2017-07-03 22:43:07 +02:00
TW
6b20f2af93 Merge pull request #2784 from ThomasWaldmann/prune-enhancements
prune enhancements / fixes
2017-07-03 20:44:18 +02:00
Thomas Waldmann
ac98fe3fbe prune: fix checkpoints processing with --glob-archives
before the fix, the archives_checkpoints list could not always contain
checkpoints as the glob regex matched the end of the name, so there
could be no additional ".checkpoint" after the match.
2017-07-03 19:34:48 +02:00
Thomas Waldmann
d33b853f66 shellpattern: add match_end arg
match_end=r"\Z" is the default, same behaviour as before
(create a full match up to the string end from the globbing pattern).

match_end=otherregex can be flexibly used to match anything else
after the regex generated from the globbing pattern.
2017-07-03 19:34:48 +02:00
Thomas Waldmann
35a3a6adfb prune: do globbing in Archives.list 2017-07-03 17:40:03 +02:00
Marian Beermann
9a856533ba fuse: versions view, linear numbering by archive time 2017-07-03 12:38:10 +02:00
Thomas Waldmann
116a60f979 patching objects does not work with the borg.exe binary, fixes #2700 2017-07-03 01:55:11 +02:00
Marian Beermann
41b52ff0f5 Archives.list: reverse result after applying all other filters 2017-07-03 00:02:26 +02:00
Marian Beermann
2db377d6fb fix --last, --first accepting negative values
also don't accept zero, because every use of these doesn't cover that case,
and it arguably doesn't make a lot of sense.
2017-07-03 00:02:26 +02:00
Marian Beermann
51c1c22c1f fix reversed archive ordering with --last 2017-07-02 22:48:54 +02:00
TW
c624e715ad Merge pull request #2775 from ThomasWaldmann/fuse-versions-file-ext
FUSE versions view: keep original file extension at end, fixes #2769
2017-07-02 19:12:19 +02:00
Thomas Waldmann
51458b6b58 FUSE versions view: keep original file extension at end, fixes #2769
some tools depend on seeing the correct file extension to operate
correctly, so put our version to the left of the file extension.
2017-07-02 19:11:24 +02:00
Marian Beermann
9827578df5 hashindex: don't pass side effect into macro
Py_XDECREF and friends are explicitly written to use op
only once in CPython (and other code relies on this,
Py_XDECREF(something()) is fairly common), but other
implementations don't guarantee this.

So, let's make a rule: don't pass side effects into macros, full stop.
2017-07-02 15:20:52 +02:00
Marian Beermann
336d0426db crypto low_level: don't mutate local bytes()
CPython kind-of permits this (even by the docs),
other implementations don't. Allocate the result on the stack,
then copy to fresh bytes.
2017-07-02 15:19:50 +02:00
enkore
0a7c4a86d7 Merge pull request #2762 from enkore/issue/2760
key import: allow reading from stdin
2017-06-27 20:32:49 +02:00
Marian Beermann
29646d5b5e key import: allow reading from stdin 2017-06-27 16:18:21 +02:00
Marian Beermann
f037e2b64f archiver: add test for "create -" and "extract --stdout" 2017-06-27 16:06:01 +02:00
Marian Beermann
4af1142693 archiver: add test_benchmark_crud, fix bug
benchmark crud would just crash with a TypeError due to the missing return
2017-06-27 14:56:27 +02:00
Marian Beermann
5d60669c50 archiver: add test for debug info 2017-06-27 14:56:26 +02:00
Marian Beermann
38d601619e archiver: add test for debug refcount-obj 2017-06-27 14:56:12 +02:00
Marian Beermann
6c67b64ab6 xattr: test split_lstring 2017-06-27 12:22:33 +02:00
Marian Beermann
78f0e5d473 archiver: add test for paperkey import, fix bug 2017-06-27 12:22:33 +02:00
Marian Beermann
7965efd5d9 version: add missing test for format_version, fix bug 2017-06-27 10:11:57 +02:00
Marian Beermann
39a09123ef archiver: more consistent arguments formatting 2017-06-26 23:20:24 +02:00
Marian Beermann
97a76c296f archiver: rename "filters" argument group to "Archive filters" 2017-06-26 23:10:43 +02:00
Marian Beermann
0a496c1064 archiver: define_archive_filters_group 2017-06-26 22:50:57 +02:00
Marian Beermann
0fabefdb59 archiver: define_exclusion_group to avoid repetition 2017-06-26 22:48:55 +02:00
Marian Beermann
cbeda1d8e3 archiver: more argparse cleanup, redundant options, missing metavars 2017-06-26 21:04:39 +02:00
Thomas Waldmann
89f3cab6cd move get_limited_unpacker to helpers
also: move some constants to borg.constants
2017-06-25 23:36:28 +02:00
Thomas Waldmann
6c2c51939d Manifest: use limited unpacker 2017-06-25 23:36:28 +02:00
Ed Blackman
9c5425dda8 Split up interval parsing from filtering for --keep-within
Fixes #2610

Parse --keep-within argument early, via new validator method interval
passed to argparse type=, so that better error messages can be given.

Also swallows ValueError stacktrace per the comment in the old code that
including it wasn't desirable.
2017-06-25 12:10:13 -04:00
Thomas Waldmann
7ebad4f803 FUSE vs. fuse 2017-06-24 01:24:14 +02:00
Thomas Waldmann
49411d1c6c remove skipping the noatime tests on GNU/Hurd, fixes #2710
I recently installed GNU/Hurd 2017 and found the atime test works now.
2017-06-21 15:59:44 +02:00
Marian Beermann
771168a3af docs: extract: move cwd note to --help 2017-06-21 00:16:25 +02:00
Marian Beermann
09d0d566a5 docs: with-lock: convert to proper admonition 2017-06-21 00:16:06 +02:00
enkore
710ca196d8 Merge pull request #2715 from enkore/f/rare-opts2
delete: remove short option for --cache-only
2017-06-20 21:01:23 +02:00
Marian Beermann
6e5ae6dc04 delete: remove short option for --cache-only 2017-06-20 18:13:10 +02:00
Marian Beermann
82575dbfe5 argparse cleanup
- action='store_true' implies default=False
- missing metavars added
- minor code formatting
2017-06-20 18:09:00 +02:00
Marian Beermann
b1747873d9 docs: various formatting fixes 2017-06-20 15:23:52 +02:00