Alexander Neumann
2e804511ca
Merge pull request #1133 from middelink/fix-1132
...
Force restic to ask the password when adding a key.
2017-07-26 22:11:37 +02:00
Alexander Neumann
b6790c491b
Merge pull request #1131 from restic/test-cleanups
...
Rework withTestEnvironment
2017-07-26 22:06:06 +02:00
Pauline Middelink
c95e2b009e
Simpify cmd_backup and cmd_init now we have the password in gopts.
2017-07-24 23:32:55 +02:00
Pauline Middelink
d5615a67c8
Refactor password resolving.
...
Instead of determining the password lazily during ReadPassword(), do so now in
cobra.PersistentPreRunE() so we can store the result in the globalOptions and
reuse/override when applicable without having to worry about the environment
or flag options interfering.
2017-07-24 23:05:37 +02:00
Pauline Middelink
d9b9bbd4a8
Force restic to ask the password when adding a key.
...
As `restic key add` uses the same `ReadPasswordTwice()` as the
rest of restic, it is sensitive to the environment variable
RESTIC_PASSWORD or --password-file= override.
When asking for the new key, temporary remove these 2 overrides, forcing
the password to be asked.
2017-07-24 22:00:44 +02:00
Alexander Neumann
d780b1eede
Rework withTestEnvironment
...
Switch from a function passed as a parameter to a cleanup function,
which is also executed when the test function panics, so no temporary
directories are left behind.
2017-07-24 21:32:34 +02:00
Alexander Neumann
608adf15a3
Merge pull request #1130 from middelink/fix-fuse-test
...
Fuse testing leaves test mountpoint around.
2017-07-24 21:26:05 +02:00
Pauline Middelink
1717391f6c
Fuse testing leaves test mountpoint around. Move it under the testing tree which is removed after each test.
2017-07-24 20:33:39 +02:00
Alexander Neumann
2e6e9ff6f8
Merge pull request #1129 from restic/move-restic-pkg
...
Move restic package to internal/restic
2017-07-24 19:19:28 +02:00
Alexander Neumann
23c903074c
Move restic package to internal/restic
2017-07-24 17:43:32 +02:00
Alexander Neumann
94030a12cf
Add entry to CHANGELOG
2017-07-23 16:54:56 +02:00
Alexander Neumann
f63d7de9da
Merge pull request #1126 from restic/switch-to-default-go-git-layout
...
Use idiomatic default Go git repo layout
2017-07-23 16:54:53 +02:00
Alexander Neumann
13ee6792df
Add remark about GOPATH on forked repos
2017-07-23 16:36:13 +02:00
Alexander Neumann
6302444f34
Remove linebreak from Errorf() format string
2017-07-23 15:51:44 +02:00
Alexander Neumann
61c5e4b54a
Fix glyphcheck
2017-07-23 15:51:39 +02:00
Alexander Neumann
d6118871be
Update other files
2017-07-23 14:40:05 +02:00
Alexander Neumann
94b27e8933
Fix paths for tests
2017-07-23 14:39:57 +02:00
Alexander Neumann
05500dc5f8
Update documentation
2017-07-23 14:32:31 +02:00
Alexander Neumann
c5a72971fe
Remove Vagrantfile
2017-07-23 14:30:33 +02:00
Alexander Neumann
5bc6486e3b
Update docs
2017-07-23 14:25:39 +02:00
Alexander Neumann
59e18bce0a
Fix build.go
2017-07-23 14:25:39 +02:00
Alexander Neumann
898c5b6df5
Fix integration tests
2017-07-23 14:25:39 +02:00
Alexander Neumann
9cd422791a
Update build.go
2017-07-23 14:25:38 +02:00
Alexander Neumann
91edebf1fe
Vendor dependencies with dep
2017-07-23 14:25:38 +02:00
Alexander Neumann
df8a5792f1
Remove Dockerfile
2017-07-23 14:25:38 +02:00
Alexander Neumann
cda7b417cd
Remove envrc
2017-07-23 14:25:38 +02:00
Alexander Neumann
d2ac35af26
Remove vendor
2017-07-23 14:25:37 +02:00
Alexander Neumann
6caeff2408
Run goimports
2017-07-23 14:21:03 +02:00
Alexander Neumann
83d1a46526
Moves files
2017-07-23 14:19:13 +02:00
Alexander Neumann
d1bd160b0a
Merge pull request #1061 from bclermont/docker-image
...
add docker image
2017-07-22 11:52:22 +02:00
Alexander Neumann
bc88a8bb03
Add entry to CHANGELOG
2017-07-22 11:52:16 +02:00
Alexander Neumann
04cfb984ae
Add VERSION file for 0.7.1
2017-07-22 11:04:32 +02:00
Alexander Neumann
02a245941a
Adapt CHANGELOG for 0.7.1
2017-07-22 11:03:44 +02:00
Alexander Neumann
7fb1352aa1
Merge pull request #1124 from restic/use-minio-300
...
Set minio-go to v3.0.0
2017-07-22 11:01:57 +02:00
Alexander Neumann
4c555bad2e
Set minio-go to v3.0.0
2017-07-22 10:19:52 +02:00
Alexander Neumann
75c789bab4
Merge pull request #1122 from restic/swift-remove-range-test
...
swift: Remove check for byte range
2017-07-21 23:05:05 +02:00
Alexander Neumann
626d020e62
swift: Remove check for byte range
...
Closes #1084
Closes #1094
2017-07-21 20:45:25 +02:00
Alexander Neumann
3830117735
Merge pull request #1121 from restic/fix-swift-test
...
swift: Increase backend test delay for removed file
2017-07-21 20:37:10 +02:00
Alexander Neumann
042cee8e36
Merge pull request #1117 from donat-b/password-file-env
...
Set default value for password-file flag from env
2017-07-21 19:47:49 +02:00
Alexander Neumann
03cc5b47e9
appveyor: Update Go version to 1.8.3
2017-07-21 19:42:34 +02:00
Alexander Neumann
46fa45942e
swift: Increase backend test delay for removed file
2017-07-21 19:42:34 +02:00
Alexander Neumann
0cb4104aa7
Fix Go report card URLs (thanks @tyll)
2017-07-20 22:31:41 +02:00
donat
f2bbc5fbc4
Set default value for password-file flag from env
...
Allows defining password file path as RESTIC_PASSWORD_FILE=/foo
2017-07-20 10:47:02 +03:00
Alexander Neumann
16340ce811
Merge pull request #1090 from middelink/fix-1081
...
Update HasTags() and HasPaths() to follow #1081 feature request
2017-07-19 17:11:18 +02:00
Alexander Neumann
2cf8153f4a
Add entry to CHANGELOG
2017-07-19 17:09:02 +02:00
Alexander Neumann
2f00287e45
Merge pull request #1112 from restic/fix-chmod-not-supported
...
Ignore error for Chmod() on FS that don't support it
2017-07-19 17:05:18 +02:00
Alexander Neumann
0de17f64e9
Add entry to CHANGELOG
2017-07-19 17:02:53 +02:00
Alexander Neumann
c30838878f
Merge pull request #1115 from restic/fix-prune-index
...
prune: Fix newly created index
2017-07-19 17:01:11 +02:00
Alexander Neumann
bd31281f1e
prune: Fix newly created index
...
This fixes a bug introduced in c79fb6fcdd
where the index file after a prune contains pack files that do not exist
any more. Restic will detect this during backup and abort with an error
message until the user runs `prune` or `rebuild-index` again.
2017-07-18 23:10:30 +02:00
Alexander Neumann
7fc54ed98e
Improve test case for prune
2017-07-18 23:07:29 +02:00