2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-05 03:13:18 +00:00
Commit Graph

1412 Commits

Author SHA1 Message Date
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
Chris Howey
cf0531a2b1 Pass buffer instead of byte slice
s3 library creates internal buffer pass in byte slice
2015-06-14 09:05:20 -05:00
Chris Howey
12596c6841 Fix test to use new type name on backend 2015-06-14 08:43:47 -05:00
Chris Howey
57ee1db8aa Rename backend type to S3Backend 2015-06-14 08:28:50 -05:00
Chris Howey
e963faf846 Place all restic data under a key prefix.
Deleting a restic repository now only deletes restic keys, leaving the
rest of the bucket in tact.
2015-06-14 08:28:50 -05:00
Chris Howey
d30a95e8ad Return bucket readers instead of buffering a key on read. 2015-06-14 08:28:50 -05:00
Chris Howey
aaae7f33d3 Have number of connections limited by channel
Removes previous limit of 1 connection
2015-06-14 08:28:50 -05:00
Chris Howey
2350419f59 Modify test suite to use s3 test server.
Fix s3 backend to return error on attempting to write to already
existing key.
2015-06-14 08:28:50 -05:00
Chris Howey
4aa75994b0 Add ability to open bucket using S3 object for testing purposes. 2015-06-14 08:28:50 -05:00
Chris Howey
b793261ba1 Add dependencies for s3 tests. 2015-06-14 08:28:50 -05:00
Chris Howey
d1554d1133 Add backend test for s3 2015-06-14 08:28:50 -05:00
Chris Howey
dc6d92a076 Add Godeps for s3 backend. 2015-06-14 08:28:50 -05:00
Chris Howey
bfe221e71c Handle long list responses from s3.
Also change naming of backend struct.
2015-06-14 08:28:50 -05:00
Chris Howey
47186806cf Add Amazon S3 backend. 2015-06-14 08:28:50 -05: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
Florian Weingarten
bace4607bf Fix ModTime for directories 2015-05-13 23:11:31 -04:00
Alexander Neumann
396a69886c README: Fix indent 2015-05-12 21:36:54 +02:00
Alexander Neumann
2a5bbe2b02 Merge pull request #183 from restic/fix-documentation
Fix compiling instructions
2015-05-12 21:23:28 +02:00
Alexander Neumann
2d0fc294b7 Fix compiling instructions 2015-05-12 21:22:52 +02:00