Commit Graph

864 Commits

Author SHA1 Message Date
Alexander Neumann 54c4c29a89 Add checker and command 'check' to replace 'fsck' 2015-07-11 16:27:38 +02:00
Alexander Neumann cbcf58f1c0 repository: Improve error message 2015-07-11 16:13:11 +02:00
Alexander Neumann 8dba52dd71 walk: Honor close of the done channel 2015-07-11 16:13:11 +02:00
Alexander Neumann 1c14be8993 backend: Remove IDSet
This can easily be replaced by a map[{32}byte]struct{}, and this is much
faster.
2015-07-11 16:12:50 +02:00
Alexander Neumann 982f7e2379 Merge pull request #218 from restic/fix-202
Fix restore filter
2015-07-09 22:41:52 +02:00
Alexander Neumann 807bb58e98 Merge pull request #227 from restic/disable-gox-on-darwin
Disable gox cross compile on darwin
2015-07-09 22:41:22 +02:00
Alexander Neumann fd0c3d969d Disable gox cross compile on darwin 2015-07-09 21:05:04 +02:00
Alexander Neumann 389ec9b101 Add tests for restore filter 2015-07-09 20:12:31 +02:00
Alexander Neumann cef57e7abd restorer: Initialize SelectForRestore with default 2015-07-09 20:12:31 +02:00
Alexander Neumann 7255e4feb3 restorer: Move filter to `restoreTo()` 2015-07-09 20:12:31 +02:00
Alexander Neumann 3e0a97fb13 Fix restore filter
Internally rename restorer.Filter -> restorer.SelectForRestore to make
semantic clear.

In addition, swap parameters to filepath.Match() so that the pattern can
really be matched.

Limitation: The filter only works on the filename, not on any path
component, e.g. '*.go' selects all go files, 'subdir/foo*' doesn't
select anything.

Fixes #202.
2015-07-09 20:12:31 +02:00
Florian Weingarten 6e3486fee8 Merge pull request #225 from restic/fix_darwin_tests
Fix darwin tests
2015-07-09 18:36:31 +02:00
Florian Weingarten c2d5a9209e fix darwin integration tests 2015-07-09 11:13:40 -04:00
Florian Weingarten 775529f1ff Fix darwin tests 2015-07-09 10:52:44 -04:00
Alexander Neumann 0762f7daba Merge pull request #219 from restic/extract_chunker
Extract chunker
2015-07-08 23:40:43 +02:00
Florian Weingarten 36a62cf77d Extract chunker 2015-07-08 16:58:23 -04:00
Alexander Neumann 07dc5a482d Merge pull request #220 from restic/pgp
Note about security bugs
2015-07-08 20:49:42 +02:00
Alexander Neumann 6c51a77392 Merge pull request #221 from restic/fix_count_error
Count non-regular files for progress as well
2015-07-08 20:46:08 +02:00
Alexander Neumann 84bf6dde8c Merge pull request #222 from restic/more_useful_errors
More useful error messages
2015-07-08 20:40:39 +02:00
Florian Weingarten 66fe9035ef More useful error messages 2015-07-08 09:15:06 -04:00
Florian Weingarten 82139912e8 Count non-regular files for progress as well 2015-07-08 08:56:47 -04:00
Florian Weingarten b34a7cbf7a Note about security bugs 2015-07-07 19:43:55 -04:00
Alexander Neumann 50f9c20987 Merge pull request #217 from restic/fix-128
cmd_backup: filter non-existing target files/dirs
2015-07-06 23:14:54 +02:00
Alexander Neumann 57eb1a4eea cmd_backup: filter non-existing target files/dirs 2015-07-06 23:02:16 +02:00
Alexander Neumann cbe4c92c83 Merge pull request #216 from restic/fix-215
Command `snapshots`: do not list first dir twice
2015-07-06 22:36:34 +02:00
Alexander Neumann c8bb688e26 Command `snapshots`: do not list first dir twice 2015-07-06 22:26:31 +02:00
Alexander Neumann de5a530d2a Merge pull request #213 from restic/refactor
Minor refactor
2015-07-05 18:13:08 +02:00
Alexander Neumann 5c1fe5784a repository: Load index in parallel 2015-07-05 11:07:10 +02:00
Alexander Neumann 14d252dfba Allow cancelling parallel workers on files 2015-07-05 11:07:10 +02:00
Alexander Neumann 0b531210eb Add repository.FilesInParallel 2015-07-05 11:07:10 +02:00
Alexander Neumann 885b27fdbb Add test and benchmark for LoadIndex 2015-07-05 11:07:10 +02:00
Alexander Neumann 0ad6bdbc09 Add more test helpers 2015-07-05 11:07:10 +02:00
Alexander Neumann 58600e3bb8 repository: Add comments, silence golint 2015-07-05 11:07:10 +02:00
Alexander Neumann 9a02148daf repository: Rename Save() -> SaveAndEncrypt() 2015-07-05 11:07:10 +02:00
Alexander Neumann 03983f0907 repository: Rename Load() -> LoadAndDecrypt() 2015-07-05 11:07:10 +02:00
Alexander Neumann c553a57e0d repository: Refactor Config 2015-07-05 11:07:10 +02:00
Alexander Neumann 867f6c8e24 repository: Rename receiver: s -> r
No functional changes.
2015-07-05 11:07:10 +02:00
Alexander Neumann e3ffe33216 doc: Add obsolete Index files 2015-07-05 11:07:10 +02:00
Alexander Neumann 281eea9c05 sftp: Use own process group for ssh subprocess 2015-07-05 11:07:10 +02:00
Alexander Neumann 4a2e0b5423 Merge pull request #209 from badboy/sudo-false
Force sudo: false to run on containers
2015-07-02 18:40:01 +02:00
Jan-Erik Rediger 931307d496 Force sudo: false to run on containers 2015-07-02 16:24:57 +02:00
Alexander Neumann 9e10c21c12 Merge pull request #203 from restic/add-locking
Add locking
2015-06-28 22:52:46 +02:00
Alexander Neumann 939fae940d travis: Don't compile for ARM with Go1.3 2015-06-28 22:22:03 +02:00
Alexander Neumann d9a90f7b89 Update dependencies
This, among others, updates the `go-flags` library, which includes a
feature that closes #198.
2015-06-28 16:36:50 +02:00
Alexander Neumann 0f09a7e46e Remove unreliable tests 2015-06-28 16:27:17 +02:00
Alexander Neumann e657287eac cmd/restic: Add command `unlock`, improve error message 2015-06-28 13:52:23 +02:00
Alexander Neumann d9a8dcfd67 run_tests: Exit with error if failed tests were found 2015-06-28 13:52:22 +02:00
Alexander Neumann 0ad3d71f01 repository: Add more debug to Create() 2015-06-28 13:52:22 +02:00
Alexander Neumann 47212dde8c cmd/restic: Do not require exclusive lock for listing keys 2015-06-28 13:52:22 +02:00
Alexander Neumann 13e9a35f96 cmd/restic: Add lock handling, interrupt cleanup 2015-06-28 13:52:22 +02:00