2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-26 14:56:29 +00:00
Commit Graph

903 Commits

Author SHA1 Message Date
Matthieu Rakotojaona
b1426826cc Extract fuse structs 2015-07-19 23:03:33 +02:00
Matthieu Rakotojaona
0606b9884e Make file.Read more intelligible 2015-07-19 23:03:33 +02:00
Matthieu Rakotojaona
3731a94367 Use functions to create names 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
a016f82051 Fix coding style 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
e654a9659c Protect the snapshots cache with a RWMutex 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
0e7c1668d5 Make mountpoint readable by owner only 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
9ff98d34ef Add build and test instructions
* Don't build on openbsd
* Don't test fuse on travis
2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
1f79a19293 Comment the go trick about static verification of a struct implementing an interface 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
a8cd74ba7e Cache known snapshots instead of re-traversing the repository every time 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
c9b3eebc09 Check that mountpoints are created 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
25b090a074 Add integration tests for mount command 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
414ade5b3f Signal readiness of mount to potential callers 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
a6ce7d9845 Use more restic-y idioms 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
3a82612244 Update bazil.org/fuse version 2015-07-19 23:03:32 +02:00
Matthieu Rakotojaona
32a321e51e Add simple mount command 2015-07-19 23:03:32 +02:00
Alexander Neumann
a8e04d1826 Travis: Fix installing osxfuse on darwin 2015-07-19 21:51:36 +02:00
Alexander Neumann
c3fe396bdd Merge pull request #237 from restic/refactor-cleanup-handlers
Allow more than one cleanup handler
2015-07-19 18:15:45 +02:00
Alexander Neumann
9441442a4d Add darwin test box to Vagrantfile 2015-07-19 18:13:27 +02:00
Alexander Neumann
3cabadab43 Allow more than one cleanup handler 2015-07-19 18:13:27 +02:00
Alexander Neumann
76817da922 Run cleanup handlers in main function 2015-07-19 17:57:18 +02:00
Alexander Neumann
dac89bf544 Allow more than one cleanup handler 2015-07-19 17:50:55 +02:00
Florian Weingarten
b6b1f41f2e Merge pull request #234 from restic/osxfuse
osxfuse for travis on darwin
2015-07-19 01:05:11 +02:00
Alexander Neumann
60d3f831f6 Merge pull request #235 from restic/add-vagrantfile
Add Vagrantfile
2015-07-19 00:05:56 +02:00
Alexander Neumann
ed499440cc Add note about vagrant 2015-07-19 00:05:04 +02:00
Florian Weingarten
7725dedf2d fix permissions 2015-07-18 17:59:25 -04:00
Alexander Neumann
149b634333 Add Vagrantfile
This defines Linux, FreeBSD and OpenBSD VMs and creates a Go
environment.

Micro-tutorial:

    $ vagrant up freebsd
    [wait...]

    $ vagrant ssh freebsd -c 'cd restic/restic; go test -v ./...'
    [test output]
2015-07-18 23:25:30 +02:00
Florian Weingarten
a8401973a8 osxfuse for travis on darwin 2015-07-18 17:13:37 -04:00
Alexander Neumann
528dba2255 Add demo recording 2015-07-16 23:35:18 +02:00
Alexander Neumann
3f8f391d0b Merge pull request #230 from restic/refresh-locks
Refresh locks
2015-07-13 20:12:26 +02:00
Alexander Neumann
159b9e80c4 cmd/restic: implement lock refresh 2015-07-12 22:10:01 +02:00
Alexander Neumann
781ec903e8 lock: add Refresh method 2015-07-12 21:02:00 +02:00
Alexander Neumann
2cc5318c46 Merge pull request #214 from restic/fix-fsck
Add checker and command 'check' to replace 'fsck'
2015-07-12 18:43:34 +02:00
Alexander Neumann
d36f07c6eb checker: add option to remove orphaned packs 2015-07-12 17:14:10 +02:00
Alexander Neumann
5108d91bc7 checker: check trees and blobs in parallel 2015-07-12 16:50:12 +02:00
Alexander Neumann
5d2d552084 Update README 2015-07-12 01:48:37 +02:00
Alexander Neumann
af02c323cd checker: use channel of error instead of slice 2015-07-12 01:46:10 +02:00
Alexander Neumann
7e6174126f checker: run Packs() in parallel 2015-07-12 00:25:42 +02:00
Alexander Neumann
b4170ff45f sftp: change debug tag to debug_sftp 2015-07-11 23:03:34 +02:00
Alexander Neumann
04f172b38d checker: Add checker and tests 2015-07-11 16:27:41 +02:00
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