Alexander Neumann
567de35df4
Save new packs in index atomically
...
This commit fixes a situation reported by a user where two indexes
contained information about the same pack without overlap, e.g.:
Index 3e6a32 contained:
{
"id": "c02e3b",
"blobs": [
{
"id": "8114b1",
"type": "data",
"offset": 0,
"length": 530107
}
]
}
And index 62da5f contained:
{
"id": "c02e3b",
"blobs": [
{
"id": "e344f8",
"type": "data",
"offset": 1975848,
"length": 3426468
},
{
"id": "939ed9",
"type": "data",
"offset": 530107,
"length": 1445741
}
]
}
This commit adds all blobs in a pack in one atomic operation so that
intermediate such as these do not happen.
2015-11-20 22:56:56 +01:00
Alexander Neumann
34bf70faea
Merge pull request #352 from restic/rework-readme
...
Rework README
2015-11-13 23:48:17 +01:00
Alexander Neumann
6b9c8ffd14
Merge pull request #350 from restic/allow-read-only-ops
...
Allow check/restore read-only, without locking
2015-11-13 23:48:05 +01:00
Alexander Neumann
96061d2a2f
Fix debug log message
2015-11-13 23:47:53 +01:00
Alexander Neumann
88b167cc10
Add note about unreleased code in the master branch
2015-11-13 12:41:47 +01:00
Alexander Neumann
a79fba13e1
Shorten README, remove options
2015-11-13 12:41:36 +01:00
Alexander Neumann
a1440c819b
Make NoLock a global option
2015-11-13 12:33:59 +01:00
Alexander Neumann
6edb7e02d0
Allow restoring and listing without locking
2015-11-10 22:13:53 +01:00
Alexander Neumann
c79dcbd7c4
Allow checking a read-only repo with --no-lock
2015-11-10 21:41:22 +01:00
Alexander Neumann
acba82c8f7
Merge pull request #252 from restic/repack-blobs
...
WIP: Repack blobs
2015-11-09 20:57:57 +01:00
Alexander Neumann
1f9aea9905
fix test on windows, reset read-only flag
2015-11-08 22:41:45 +01:00
Alexander Neumann
742d69bf4d
Add another test for optimizing unused blobs
2015-11-08 22:38:17 +01:00
Alexander Neumann
5776b8f01c
remove ConvertIndex
2015-11-08 22:27:13 +01:00
Alexander Neumann
6c54d3fa82
index: also mark old index as final on decode
2015-11-08 22:21:29 +01:00
Alexander Neumann
2e6eee991d
Add test for optimize command with old indexes
2015-11-08 22:21:08 +01:00
Alexander Neumann
c59b12c939
Show a hint whech the checker finds an old index
2015-11-08 21:50:48 +01:00
Alexander Neumann
0222b1701e
Remvoe automatic index conversion
2015-11-08 21:35:48 +01:00
Alexander Neumann
43e2c9837e
check: removing orphaned packs is handled in 'optimize'
2015-11-08 21:24:51 +01:00
Alexander Neumann
c4fc7b52ae
Add 'optimize' command that repacks blobs
2015-11-08 21:10:03 +01:00
Alexander Neumann
cd948b56ac
cmd_check: Don't display unused blobs by default
2015-11-08 20:46:52 +01:00
Alexander Neumann
19a713970f
Merge pull request #344 from restic/fix-338
...
pipe: propagate errors properly
2015-11-08 17:58:55 +01:00
Alexander Neumann
4484a3ea0d
archiver: ignore dir nodes with errors
2015-11-07 11:42:28 +01:00
Alexander Neumann
ea41a1045f
Add integration test for error on readdirnames
2015-11-06 23:19:56 +01:00
Alexander Neumann
005c13ff05
pipe: make test platform-independent
2015-11-06 22:38:34 +01:00
Alexander Neumann
1569176e48
pipe: propagate errors properly
2015-11-06 19:41:57 +01:00
Alexander Neumann
7c3d227527
Merge pull request #342 from restic/add-bug-reporting-instructions
...
Add instructions on reporting bugs
2015-11-06 00:41:22 +01:00
Alexander Neumann
0f92f6319f
Add note on determinism
2015-11-05 23:10:35 +01:00
Alexander Neumann
7b9f2fa9ef
Add instructions on reporting bugs
2015-11-05 23:09:01 +01:00
Alexander Neumann
8de8ca05f1
Merge pull request #341 from restic/read-password-from-stdin
...
Read password from stdin if terminal is not a tty
2015-11-04 22:45:54 +01:00
Alexander Neumann
18d7f7f835
Read password from stdin if terminal is not a tty
2015-11-04 22:20:58 +01:00
Alexander Neumann
73e085ae23
Merge pull request #335 from JaCoB1123/windowspathnames
...
Always use forward slashes in SFTP (Fixes #334 )
2015-11-03 21:29:00 +01:00
Jan Bader
af960b9b40
Simplify Implementation of Join
2015-11-03 18:48:51 +01:00
Jan Bader
d09e6d5b0f
Fix missing Join calls
2015-11-03 18:47:01 +01:00
Alexander Neumann
db41102bfa
Finalize repacker
2015-11-02 19:28:30 +01:00
Alexander Neumann
1fc0d78913
Refactor Index.Store() to take a PackedBlob
2015-11-02 19:07:03 +01:00
Alexander Neumann
f3f84b1544
Add ID handling for index
2015-11-02 18:52:13 +01:00
Alexander Neumann
60a34087c9
Move LoadIndexWithDecoder to index.go
2015-11-02 18:52:13 +01:00
Alexander Neumann
266bc05edc
Add mostly ready repacker
2015-11-02 18:52:13 +01:00
Alexander Neumann
51aff3ca57
Add FindBlobsForPacks()
2015-11-02 18:52:13 +01:00
Alexander Neumann
30cf002574
Sort IDSet.List()
2015-11-02 18:52:13 +01:00
Alexander Neumann
89a77ab2f9
Add Index.ListPack()
2015-11-02 18:52:13 +01:00
Alexander Neumann
484331cd8d
Add repacker
2015-11-02 18:52:13 +01:00
Alexander Neumann
181963ba08
Fix IDSet.String()
2015-11-02 17:36:05 +01:00
Alexander Neumann
50c2f2e87f
cmd_cat: allow dumping raw tree blobs
2015-11-02 17:36:04 +01:00
Alexander Neumann
ba8e6035b0
Merge pull request #336 from restic/refactor-index
...
Refactor Index.Lookup() to return struct PackedBlob
2015-11-02 17:35:09 +01:00
Jan Bader
81ec7337e0
Always use forward slashes in SFTP ( Fixes #334 )
...
Add custom Join func that always uses forward slashes in SFTP
2015-11-02 14:53:42 +01:00
Alexander Neumann
ed9470b19d
Remove tempfiles after test
2015-10-31 14:53:03 +01:00
Alexander Neumann
fccde030d5
Refactor Index.Lookup() to return struct PackedBlob
2015-10-31 14:47:42 +01:00
Alexander Neumann
fc0f5d8f72
Merge pull request #331 from tyll/gpgfingerprint
...
Show full GPG fingerprint in README
2015-10-29 21:55:28 +01:00
Till Maas
34af39667b
Show full GPG fingerprint in README
2015-10-29 21:51:21 +01:00