2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-26 04:17:29 +00:00
Commit Graph

666 Commits

Author SHA1 Message Date
Alexander Neumann
4388474cdc Restructure cmd/restic, no functional changes 2015-06-21 17:40:22 +02:00
Alexander Neumann
2fa259816b rename opts to mainOpts 2015-06-21 17:40:22 +02:00
Alexander Neumann
a3e0907fc7 remove old tests 2015-06-21 17:40:22 +02:00
Alexander Neumann
1216ded14b Add integration test for key command 2015-06-21 17:40:22 +02:00
Alexander Neumann
e2563b3eca Fix comments 2015-06-21 17:40:22 +02:00
Alexander Neumann
a176b1b5a6 Add more integration tests 2015-06-21 17:40:22 +02:00
Alexander Neumann
246fdb13f9 Makefile: Remove target test-integration 2015-06-21 17:40:21 +02:00
Alexander Neumann
cf27a0fdc7 Test travis 2015-06-21 17:40:21 +02:00
Alexander Neumann
9853fbcf48 Remove more flags from tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
0ad08b2f70 run_tests: Pass additional parameters to go test 2015-06-21 17:40:21 +02:00
Alexander Neumann
3a65f27c3f Automatically find fixtures for integration test 2015-06-21 17:40:21 +02:00
Alexander Neumann
030f08a410 Remove flags from tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
002c7883c3 run_tests: Do not ignore subdirs of empty dirs 2015-06-21 17:40:21 +02:00
Alexander Neumann
da2e9d447f Make tests run by travis less verbose 2015-06-21 17:40:21 +02:00
Alexander Neumann
cd5b788e48 Ignore goverall errors 2015-06-21 17:40:21 +02:00
Alexander Neumann
e071ca57d5 Use run_tests.go for testing coverage 2015-06-21 17:40:21 +02:00
Alexander Neumann
d8d09b6d69 Fix restic configuration for integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
9c2478a291 Add run_tests.go 2015-06-21 17:40:21 +02:00
Alexander Neumann
12677b4f8a Use flag instead of build tag to run integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
7c107acf0b More integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
9b7db4df24 travis: Add new integration tests 2015-06-21 17:40:21 +02:00
Alexander Neumann
954025e399 Add integration test with the go testing framework 2015-06-21 17:40:21 +02:00
Alexander Neumann
c37ae44ff5 Merge pull request #196 from restic/minor-refactor
A collection of minor refactorings from #179
2015-06-08 19:24:35 +02:00
Alexander Neumann
9c375ea382 Refactor backup a bit 2015-06-07 19:08:37 +02:00
Alexander Neumann
fd80499954 Refactor terminal recognition, add --quiet parameter 2015-06-07 18:30:11 +02:00
Alexander Neumann
f5537e7a0e Refactor configuration of cache dir and repository 2015-06-07 18:15:03 +02:00
Alexander Neumann
848793df84 Remove unused file 2015-06-07 18:13:22 +02:00
Alexander Neumann
8eec59ebb2 Merge pull request #194 from restic/fix-orphaned-check
Fix fsck orphaned check, add debug command 'dump', cleanup
2015-05-28 21:40:23 +02:00
Alexander Neumann
219f857c67 travis: Skip join/part for emitting messages 2015-05-18 00:02:51 +02:00
Alexander Neumann
0314d2b0c3 fsck: Fix check for orphaned blobs 2015-05-17 23:41:53 +02:00
Alexander Neumann
df1e3e03e9 Add 'dump' command
'dump' writes internal data structes pretty-printed as JSON to stdout.
This was done to debug fsck error messages.

In contrast to the 'cat' command, this one prints the data structures as
there are interpreted by restic, not as they are stored in the
repository. This means that only the merged index from all the index
files is printed out.

This is meant for debugging only, it's compiled only when the "debug"
tag is active.
2015-05-17 23:15:08 +02:00
Alexander Neumann
65c3aead3e Add index.Dump() 2015-05-17 20:58:22 +02:00
Alexander Neumann
f773feeb04 Remove Repository.Close() and .Location() 2015-05-17 20:58:22 +02:00
Alexander Neumann
af381c2ab0 Remove Repository.Remove() 2015-05-17 20:58:22 +02:00
Alexander Neumann
eb6dfcf58c Remove Repository.Test() 2015-05-17 20:58:22 +02:00
Alexander Neumann
6e38a8a033 Move FindSnapshot, make Repository.List() return IDs 2015-05-17 20:58:22 +02:00
Alexander Neumann
cf37b619fd Merge pull request #191 from restic/fix-189
Fix restoring symlink timestamps for linux
2015-05-17 14:26:54 +02:00
Alexander Neumann
14a3ed4e9d Move error annotation for symlink timestamp restore 2015-05-16 13:25:10 +02:00
Alexander Neumann
70f92433c3 Merge pull request #192 from restic/fix-linux-i386
Fix restic on i386
2015-05-16 13:20:10 +02:00
Alexander Neumann
eee93e9125 travis: Run tests for 386 and amd64 2015-05-14 23:20:12 +02:00
Alexander Neumann
d42242556b Fix restic for i386
Some functions aren't implemented on Linux/i386, e.g. user.LookupId()
and user.Current(), so ignore these errors.
2015-05-14 23:16:35 +02:00
Alexander Neumann
44219c5afe node/Linux: Implement setting timestamps for symlinks 2015-05-14 23:06:11 +02:00
Alexander Neumann
af06376b5b Add tests for node.CreateAt() 2015-05-14 22:04:55 +02:00
Alexander Neumann
4e5094b7c9 Fix loading config on sftp backend 2015-05-14 18:08:45 +02:00
Alexander Neumann
3517229844 Merge pull request #186 from restic/directory_modtime
Fix ModTime for directories
2015-05-14 16:10:31 +02:00
Alexander Neumann
1fb8e332ce Restore timestamps for directories earlier 2015-05-14 15:58:26 +02:00
Alexander Neumann
aa5fd9e9bc Remove execute bit from node.go 2015-05-14 15:53:49 +02:00
Alexander Neumann
6bab4a8eda Merge pull request #188 from restic/fix-185
Fix #185
2015-05-14 11:23:29 +02:00
Alexander Neumann
3ace557dbe Makefile: Add dependency on all Go source code 2015-05-14 11:11:30 +02:00
Alexander Neumann
e1098eedac Fix make -B (force rebuild) 2015-05-14 11:10:01 +02:00