Alexander Neumann
b723ca3de5
Add version for 0.9.6
2019-11-22 16:18:59 +01:00
Alexander Neumann
f5084d70d7
Generate CHANGELOG.md for 0.9.6
2019-11-22 16:18:55 +01:00
Alexander Neumann
29b7b17491
Prepare changelog files for 0.9.6
2019-11-22 16:18:33 +01:00
rawtaz
e14c4b1737
Merge pull request #2484 from restic/add-s3-region
...
s3: Allow specifying region
2019-11-22 15:51:17 +01:00
Alexander Neumann
745d79fe5f
Merge pull request #2483 from restic/update-minio-go
...
Update minio-go
2019-11-22 15:31:12 +01:00
Alexander Neumann
fb95426f64
Rename environment variable to AWS_DEFAULT_REGION
...
This seems to be the correct name, at least the AWS cli uses it:
https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html
2019-11-22 15:24:42 +01:00
Alexander Neumann
4cadc89ad3
Add documentation and changelog
2019-11-22 15:16:59 +01:00
Alexander Neumann
409909a7f5
Add option description for Region
2019-11-22 15:09:09 +01:00
mdauphin
df500a372d
Add AWS_REGION env var to specify s3 region
2019-11-22 15:04:48 +01:00
Alexander Neumann
a444731dc0
Update vendored dependencies
2019-11-22 14:57:56 +01:00
Alexander Neumann
a6e8af7e0f
Update minio-go
2019-11-22 14:50:46 +01:00
Alexander Neumann
aa5af8af0e
Merge pull request #2478 from restic/update-ci
...
Update Go version for Appveyor/Travis
2019-11-22 14:36:38 +01:00
Alexander Neumann
4e3353109d
Reset changes by 'go get'
2019-11-22 13:17:52 +01:00
Alexander Neumann
02c8d38095
Fix error check for findGoFiles
2019-11-22 12:20:27 +01:00
Alexander Neumann
fd6211653c
More debug for findImports
2019-11-22 12:16:46 +01:00
rawtaz
3d4f2dd6b4
Merge pull request #2368 from rlue/doc/backblaze
...
Clarify docs for Backblaze B2 support
2019-11-22 11:10:22 +01:00
Ryan Lue
c1ddc0c18b
Clarify docs for Backblaze B2 support
2019-11-22 18:07:29 +08:00
rawtaz
c95f032a9c
Merge pull request #2310 from vincentbernat/fix/doc-contributing
...
Update documentation for contributing
2019-11-21 20:30:49 +01:00
Vincent Bernat
3087776135
Update documentation for contributing
...
- No need to checkout into `GOPATH` anymore
- `CHANGELOG.md` shouldn't be updated directly
2019-11-21 20:27:48 +01:00
rawtaz
b6f01ffbe6
Merge pull request #2394 from bugvillage/doc-backup-passwd
...
add description env var RESTIC_PASSWORD_COMMAND
2019-11-20 23:26:55 +01:00
rawtaz
41fe9318b1
Merge pull request #2425 from thiell/restic_cache_dir_env
...
Add support for $RESTIC_CACHE_DIR
2019-11-20 21:18:57 +01:00
Alexander Neumann
8387d18d4d
Update Go version used for CI tests
2019-11-20 21:13:56 +01:00
rawtaz
929d2b8df3
Merge pull request #2479 from rawtaz/sing-pulitzer-group
...
Accept both singular and plural for --group-by (#2330 )
2019-11-20 21:03:05 +01:00
Leo R. Lundgren
4f0682d730
Correct name of changelog file for #2321
2019-11-20 21:01:10 +01:00
Alexander Neumann
967d1bbf0c
Run 'go mod tidy'
2019-11-20 20:54:43 +01:00
Alexander Neumann
2f80b37b93
Update go-autorest so restic builds with Go 1.13
2019-11-20 20:53:57 +01:00
Leo R. Lundgren
4d2aa18273
Accept both singular and plural for --group-by ( #2330 )
2019-11-20 19:25:48 +01:00
Alexander Neumann
6b1e5d4e18
Update Go version for Appveyor/Travis
2019-11-20 18:32:58 +01:00
rawtaz
26d1f9f4ba
Merge pull request #2307 from gary-kim/fix-2306-password-retries
...
Allow multiple retries for interactive password input
2019-11-20 18:30:20 +01:00
rawtaz
6a89c0f0ef
Merge pull request #2476 from rawtaz/update-doc
...
doc: Simplify wording for check's --read-data-subset parameter.
2019-11-19 03:38:37 +01:00
rawtaz
b87230b93d
Merge pull request #2456 from jenting/installation-opensuse
...
Docs: add installation guide for openSUSE
2019-11-19 02:15:19 +01:00
JenTing Hsiao
6f2b8d622a
Add installation guide for openSUSE
...
Signed-off-by: JenTing Hsiao <jenting.hsiao@suse.com >
2019-11-19 09:08:18 +08:00
Leo R. Lundgren
90440212f2
doc: Simplify wording for check's --read-data-subset parameter.
2019-11-19 00:43:41 +01:00
rawtaz
3a5c9aadad
Merge pull request #2444 from chanibal/patch-2
...
Docs: fixed escaping of argument in documentation
2019-11-18 21:45:00 +01:00
rawtaz
a78142c1bb
Merge pull request #2450 from hallamjeff/patch-1
...
Update 080_examples.rst
2019-11-18 21:43:19 +01:00
rawtaz
07045c7e23
Merge pull request #2442 from lbausch/patch-1
...
Docs: Highlight option correctly
2019-11-18 21:39:07 +01:00
rawtaz
0a5d42db3f
Merge pull request #2463 from whs-dot-hk/fix-ci-rclone
...
Update rclone repo
2019-11-18 21:37:02 +01:00
Jeff Hallam
67d99b8cfb
Update 080_examples.rst
...
added backticks around the -o and --option text.
2019-11-18 16:36:20 -04:00
Alexander Neumann
1a0c0dc277
Remove codecov.io
...
While it was a nice idea, some tests like the backend integration tests
required credentials which were not available to third-party PRs. This
lead to a lot of uncovered code which confused people. So let's disable
codecov.io for now.
2019-11-18 21:21:40 +01:00
rawtaz
e86d9307d0
Merge pull request #2472 from rawtaz/update-backup-doc
...
doc: Improve exclude/include patterns info
2019-11-18 21:04:18 +01:00
rawtaz
923e681af3
Merge pull request #2471 from 8176135/patch-1
...
Small fix to the forget --tag command documentation
2019-11-18 20:40:24 +01:00
Leo R. Lundgren
37770b1d82
doc: Improve include patterns info
...
Clarifies and adds information on how to specify include patterns.
2019-11-18 02:23:01 +01:00
rawtaz
02fea4f76a
doc: Improve exclude patterns info
...
Improves grammar, clarifies and adds information on how to specify exclude patterns.
2019-11-18 01:59:50 +01:00
whs
e6db3596f1
Update rclone repo
2019-11-06 11:59:48 +08:00
8176135
3acc7af310
Small fix to the forget --tag command
...
As described in #2460
2019-11-03 11:48:56 +13:00
Jeff Hallam
5c4653f427
Update 080_examples.rst
...
Added an explanation of how to specify the AWS S3 storage classes and what the default value is.
2019-10-21 19:24:50 -03:00
Krzysztof Bociurko
f7317a9287
Docs: fixed escaping of argument in documentation
...
Issue was visible as `foo`` in https://restic.readthedocs.io/en/latest/040_backup.html
2019-10-16 19:03:40 +02:00
lbausch
30db8057e4
Docs: Highlight option correctly
2019-10-13 21:19:03 +02:00
Stephane Thiell
0e897ef7b8
Add support for $RESTIC_CACHE_DIR
...
Add support for restic-specific $RESTIC_CACHE_DIR environment variable
to override the cache directory like --cache-dir would have.
2019-09-26 15:59:56 -07:00
bugvillage
b3e727f40d
fixing typo/align around RESTIC_PASSWORD_COMMAND
2019-09-07 15:30:23 +02:00
bugvillage
17feccd998
add description env var RESTIC_PASSWORD_COMMAND
...
The environment variable RESTIC_PASSWORD_COMMAND works but has
not been documented yet. e.g. it could contain a command that
would fetch the password from a local user keyring
enhances: https://github.com/restic/restic/pull/2094
2019-09-07 14:00:53 +02:00
Alexander Neumann
604b18aa74
build: Fix building in ~/go
...
Before, build.go only unset GO111MODULE and GOPATH, so the Go compiler
did not see either and worked in Module mode. But if the code is checked
out below ~/go (the default GOPATH), it will detect that the source is
within GOPATH and switch to non-Module mode. Now we're setting
GO111MODULE to "on" explicitly.
2019-07-29 09:22:22 +02:00
Alexander Neumann
01c51b3449
Merge pull request #2321 from restic/fix-index-error-handling
...
Check errors returned by LoadIndex()
2019-07-27 09:37:18 +02:00
Alexander Neumann
de8cf5e345
Merge pull request #2324 from jkahrs/fix/change-cleanup-cache-message
...
updade message that is shown when a cache cleanup is advised
2019-07-27 09:37:10 +02:00
Alexander Neumann
cfa2ac69e0
Merge pull request #2322 from brualan/master
...
minor refactoring
2019-07-27 09:37:06 +02:00
Alexander Neumann
1e9eefa066
Debian stable has restic 0.9.4 ( #2333 )
...
Debian stable has restic 0.9.4
2019-07-11 08:17:40 +02:00
Michael M. Chang
e9af012229
Debian has updated restic
...
Debian now has restic 0.9.4+ds-2+b1 in stable (buster)
2019-07-10 11:53:17 -04:00
Jean Kahrs
8066e93f47
updade message that is shown when a cache cleanup is advised
2019-07-02 10:49:49 +02:00
Alexandr Bruyako
e19622e4b1
start using fileMode const
2019-07-01 00:26:00 +03:00
Alexandr Bruyako
38ea7ed4f6
remove unused code
2019-07-01 00:24:45 +03:00
Alexandr Bruyako
76d1866444
avoiding unnecessary type conversions
2019-06-30 23:58:00 +03:00
Alexandr Bruyako
8b22fe29cf
improved slice copying
2019-06-30 23:56:36 +03:00
Alexandr Bruyako
02014be76c
simplified prefix removal, removed unnecessary if-else statements
2019-06-30 23:34:47 +03:00
Alexandr Bruyako
16eeed2ad5
simplified string sorting by using a more suitable function
2019-06-30 23:20:32 +03:00
Alexander Neumann
3f94f63967
Add entry to changelog
2019-06-30 21:38:10 +02:00
Alexander Neumann
88716794e3
Check errors returned by LoadIndex()
...
Bug was reported in the forum here: https://forum.restic.net/t/check-rebuild-index-prune/1848/13
2019-06-30 21:34:53 +02:00
Fred Akalin
3ca424050f
Add upper bound for t in --read-data-subset=n/t ( #2304 )
...
* Add upper bound for t in --read-data-subset=n/t
* Add changelog entry
2019-06-29 14:34:53 -04:00
Gary Kim
fea2464d4d
Allow multiple retries for interactive password input
...
Restic used to quit if the repository password was typed incorrectly once.
Restic will now ask the user again for the repository password if typed incorrectly.
The user will now get three tries to input the correct password before restic quits.
2019-06-13 20:11:02 +08:00
Alexander Neumann
5bd5db4294
Merge pull request #2206 from garrmcnu/fs-stdin-directory
...
fs: Handle absolute pathname for --stdin-filename
2019-05-08 16:05:37 +02:00
Garry McNulty
4429a66b5f
backup: Convert relative pathname for --stdin-filename to absolute ( #2063 )
2019-05-08 15:21:27 +02:00
Garry McNulty
8066195e6e
fs: Handle absolute pathname for --stdin-filename
...
Return valid directory info from Lstat() for parent directories of the
specified filename. Previously only "/" and "." were valid directories.
Also set directory mode as this is checked by archiver.
Closes #2063
2019-05-08 15:21:27 +02:00
Garry McNulty
f7f14cf8c9
fs: Add file info base name check in reader tests ( #2063 )
2019-05-08 15:21:27 +02:00
Garry McNulty
5096f3b491
fs: Update directory check in reader tests ( #2063 )
2019-05-08 15:21:27 +02:00
Alexander Neumann
cf3fc2a5b1
Merge pull request #2266 from restic/fix-windows-tests
...
Fix tests on Windows
2019-05-05 21:34:04 +02:00
Alexander Neumann
920d458a4a
archiver: Use untyped constants for testing FileInfo
2019-05-05 14:57:38 +02:00
Alexander Neumann
b016dc2ff0
archiver/Windows: Skip test new-content-same-filestamp
2019-05-05 14:02:11 +02:00
Alexander Neumann
355db0bc29
windows: Use LastWriteTime for ctime and mtime
...
Windows does not have a concept of a `change time` in the sense as Unix
has it: the field `CreationTime` of the `Win32FileAttributeData` struct
is not updated when attributes or content is changed. So from now on
we're using the `LastWriteTime` as the `change time` on Windows.
2019-05-05 14:02:11 +02:00
Alexander Neumann
6e2fe73189
archiver: Move tests back into the same file
...
Move all Archiver tests back into `archiver_test.go` and add some tiny
helpers to mock what `lstat` returns (for Windows and Unix separately).
2019-05-05 14:02:11 +02:00
Alexander Neumann
303a5dab6a
archiver: Clarify value in test struct
...
Since I could not remember what the value for `Check` means this commit
renames it to `SameFile`: when set to true, the test should make sure
that `FileChanged` should return false (=file is unmodified).
2019-05-05 12:57:00 +02:00
Alexander Neumann
7dcd2968b6
Merge pull request #2261 from lorenzbausch/patch-1
...
Fix typo
2019-05-04 10:23:49 +02:00
Lorenz Bausch
298f490195
Fix typo
2019-05-02 11:51:35 +02:00
Alexander Neumann
37cb82b28b
Merge pull request #2257 from gliptak/windows1
...
Don't run TestMetadataChanged test on Windows
2019-04-28 08:39:00 +02:00
Gábor Lipták
bce6438d22
Don't run TestMetadataChanged test on Windows
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com >
2019-04-27 21:23:47 -04:00
Alexander Neumann
919dd2ac84
Merge pull request #2252 from restic/fix-2249
...
Read fresh metadata for unmodified files
2019-04-25 09:15:50 +02:00
Alexander Neumann
870bc5108e
Merge pull request #2253 from restic/fix-2174
...
Make sure timestamps are valid
2019-04-25 09:14:43 +02:00
Alexander Neumann
418296c5c9
Add hint for "closes" wording to PR template
2019-04-25 09:00:15 +02:00
Alexander Neumann
a6481b3707
Merge pull request #2212 from cbane/check-ctime
...
Examine file ctime when checking if files have changed.
2019-04-25 08:58:27 +02:00
Courtney Bane
00b527fb09
Update changelog text, and add pull request link.
2019-04-24 20:54:15 -05:00
Courtney Bane
0ebfc55ee3
Use existing setTimestamp function for ctime test and improve error checking.
2019-04-24 20:53:08 -05:00
Courtney Bane
35b7607802
Don't check ctime when ignoring inode.
2019-04-24 20:53:08 -05:00
Alexander Neumann
fad9f65c65
Merge pull request #2251 from restic/update-deps
...
Update dependencies
2019-04-24 16:42:57 +02:00
Alexander Neumann
939f3e972c
node: Make sure year of all timestamps is valid
...
Sometimes restic gets bogus timestamps which cannot be converted to
JSON, because the stdlib JSON encoder returns an error if the year is
not within [0, 9999]. We now make sure that we at least record _some_
timestamp and cap the year either to 0000 or 9999. Before, restic would
refuse to save the file at all, so this improves the status quo.
This fixes #2174 and #1173
2019-04-24 16:39:36 +02:00
Alexander Neumann
ca8c3b4fd5
Update dependencies
2019-04-24 15:17:48 +02:00
Alexander Neumann
4f45b14f25
Add changelog file
2019-04-24 15:17:25 +02:00
Alexander Neumann
389067fb8b
Only use list of blobs for old node
...
Closes #2249
2019-04-24 15:07:26 +02:00
Alexander Neumann
4b0ca9ddab
Add test for #2249
2019-04-24 15:07:23 +02:00
Courtney Bane
b8c2544dcb
Examine file ctime when checking if files have changed.
2019-04-23 21:54:35 -05:00
Alexander Neumann
c7762453cf
Set development version for 0.9.5
2019-04-23 13:19:43 +02:00
Alexander Neumann
303210aa08
Add version for 0.9.5
2019-04-23 13:19:39 +02:00
Alexander Neumann
c029881379
Update manpages and auto-completion
2019-04-23 13:19:39 +02:00
Alexander Neumann
6e89963c21
Generate CHANGELOG.md for 0.9.5
2019-04-23 13:19:36 +02:00
Alexander Neumann
1ac560181b
Prepare changelog for 0.9.5
2019-04-23 13:19:23 +02:00
Alexander Neumann
18ec27a0da
Merge pull request #2243 from treymo/ls-length-2104
...
backend find: Check prefix length < snapshot IDs when searching
2019-04-23 09:41:19 +02:00
Alexander Neumann
b40dea29ad
Merge pull request #2247 from tbm/docs
...
Minor docs fixes
2019-04-23 09:17:22 +02:00
Martin Michlmayr
0561155963
Split paragraph from list in restic stats --help
...
The help text for `restic stats` lists a number of modes in a list.
Make sure the "more info" text is a separate paragraph rather than
being part of the list.
2019-04-23 10:36:33 +07:00
Martin Michlmayr
1aafc17212
Avoid error "undefined control sequence" in LaTeX
...
Converting the changelog to PDF using pandoc leads to:
! Undefined control sequence.
l.1497 ...mple, by creating a file named ``..\test
This is because \t is interpreted as a control sequence. Use ``
instead of "" to work around this.
2019-04-23 10:36:33 +07:00
Martin Michlmayr
f11789c437
Add missing opening parenthesis
2019-04-23 10:36:26 +07:00
Alexander Neumann
8cab0c121d
Merge pull request #2221 from classmarkets/2203-password-from-stdin
...
Fix reading password from stdin
2019-04-22 20:59:59 +02:00
Alexander Neumann
5979414bcd
Merge pull request #2124 from Kidswiss/tar
...
Ability to dump folders to tar via stdout
2019-04-22 20:58:59 +02:00
Simon Beck
cc8b690b52
Restore whole folder to sdtout as tar
...
With this change it is possible to dump a folder to stdout as a tar. The
It can be used just like the normal dump command:
`./restic dump fa97e6e1 "/data/test/" > test.tar`
Where `/data/test/` is a a folder instead of a file.
2019-04-22 20:44:33 +02:00
Alexander Neumann
a164dc9391
Merge pull request #2087 from ArcticXWolf/add_group_by_option_for_snapshots
...
Add GroupBy option to snapshots command
2019-04-22 20:27:24 +02:00
Jan Niklas Richter
9a26be4e5b
Add documentation for --group-by flag for snapshots command
2019-04-22 14:57:53 +02:00
Jan Niklas Richter
733519d895
Refactor duplicate code for grouping snapshots
...
This commit is a followup to the addition of the --group-by flag for the
snapshots command. Adding the grouping code there introduced duplicated
code (the forget command also does grouping). This commit refactors
boths sides to only use shared code.
2019-04-22 14:57:53 +02:00
Jan Niklas Richter
3d5a0c799b
Add changelog of group-by option for snapshots command
2019-04-22 14:37:58 +02:00
Jan Niklas Richter
c4475ac58f
Move snapshot grouping code into own function to deduplicate code
...
This commit moves the code which is used to group snapshots in the
snapshots command into an own function to deduplicate code shared by the
snapshots command and forget command.
2019-04-22 14:37:58 +02:00
Jan Niklas Richter
c9fd9b5275
Fix json tags for grouped snapshot output
...
This commit will add json tags to the structs for json output, so all
json variables of the snapshot command output are lowercase and
snake-case.
Furthermore it adds some internal code changes based on the feedback in
the pull request #2087 .
2019-04-22 14:37:58 +02:00
Jan Niklas Richter
cadcab5a19
Add GroupBy option to snapshots command
...
This commit adds a --group-by option to the snapshots command, which
behaves similar to the --group-by option of forget. Valid option values
are "host, paths, tags". If this option is given, the output of
snapshots will be divided into multiple tables, according to the value
given (i.e. "host" will create a table of snapshots for each host, that
has a snapshot in the list). Also the JSON output will be grouped.
The default behavior (when --group-by is not given) has not changed.
More to this discussion can be found in issue #2037 .
2019-04-22 14:37:58 +02:00
Trey Moore
5ac9c1157a
Prevent "slice bounds out of range" error if prefix is longer than snapshot IDs.
...
This includes tests as well as other tests for the backend_find.Find function. Issue #2104 .
2019-04-16 20:26:20 -07:00
Peter Schultz
5715517e29
Fix reading password from stdin
...
Reading the password from non-terminal stdin used io.ReadFull with a
byte slice of length 1000.
We are now using a Scanner to read one line of input, independent of its
length.
Additionally, if stdin is not a terminal, the password is read only
once instead of twice (in an effort to detect typos).
Fixes #2203
Signed-off-by: Peter Schultz <peter.schultz@classmarkets.com >
2019-04-15 10:05:49 +02:00
Alexander Neumann
ecc2458de8
Merge pull request #2230 from cdhowie/issue-2229
...
Extend find --show-pack-id to work with --tree
2019-04-14 19:38:38 +02:00
Alexander Neumann
2c6ba5d9ac
Merge pull request #2231 from cdhowie/issue-2224
...
find command: don't abort on tree load errors
2019-04-14 19:31:06 +02:00
Alexander Neumann
0cc3647e51
Remove changelog entry, not relevant for end-users
2019-04-14 19:29:12 +02:00
Alexander Neumann
6b700d02f5
Merge pull request #2217 from restic/improve-memory-usage
...
WIP: improve memory usage
2019-04-13 15:07:07 +02:00
Alexander Neumann
2b09a10234
Merge pull request #2218 from kcthrn/patch-1
...
Fix minor error in doc for forgetting snapshots
2019-04-13 14:55:40 +02:00
Alexander Neumann
1c87d01bad
Merge pull request #2220 from BenoitKnecht/s3-storage-class
...
Add config option to set S3 storage class
2019-04-13 14:54:32 +02:00
Alexander Neumann
78a3ffcfb9
Merge pull request #2185 from d3zd3z/json-forget
...
Json forget
2019-04-13 14:23:32 +02:00
Alexander Neumann
4d77c0c21c
Merge pull request #2228 from cstegm/patch-1
...
Update 030_preparing_a_new_repo.rst
2019-04-13 14:20:01 +02:00
Alexander Neumann
fb064afa34
Merge pull request #2232 from jacksgt/document_cachedir-tag
...
Mention Cache Directoy Tagging Standard in man page and help text
2019-04-13 14:17:38 +02:00
Alexander Neumann
7304738872
check: Reduce default parallelism from 40 to 5
2019-04-13 13:38:39 +02:00
Alexander Neumann
66efa425bf
Reuse buffer in worker functions
2019-04-13 13:38:39 +02:00
Alexander Neumann
d51e9d1b98
Add []byte to repo.LoadAndDecrypt and utils.LoadAll
...
This commit changes the signatures for repository.LoadAndDecrypt and
utils.LoadAll to allow passing in a []byte as the buffer to use. This
buffer is enlarged as needed, and returned back to the caller for
further use.
In later commits, this allows reducing allocations by reusing a buffer
for multiple calls, e.g. in a worker function.
2019-04-13 13:38:39 +02:00
Alexander Neumann
e046428c94
Replace FilesInParallel with an errgroup.Group
2019-04-13 13:38:39 +02:00
Alexander Neumann
75906edef5
mock: Remove unused repository type
2019-04-13 13:38:39 +02:00
Alexander Neumann
203d775190
restic: Make JSON unmarshal for ID more efficient
...
This commit reduces several allocations in UnmarshalJSON() by decoding
the hex string directly in a single step.
2019-04-13 13:38:39 +02:00
Jack Henschel
ecd7ee85e8
Mention Cache Directoy Tagging Standard in man page and help text
...
This patch makes it more explicit what is meant by the CACHEDIR.TAG file.
It not only has to have this particular name, but also a specific content
(described at http://bford.info/cachedir/spec.html ), which is not immediately
obvious to the user.
2019-04-02 15:53:07 +02:00
Alexander Neumann
2022355800
doc: Fix versions in self-update example
2019-03-30 09:44:59 +01:00
Chris Howie
36f22a0feb
find command: don't abort on tree load errors
2019-03-29 22:58:12 -04:00
Chris Howie
f58a44b911
Extend find --show-pack-id to work with --tree
2019-03-29 22:56:36 -04:00
cstegm
fe886a6439
Update 030_preparing_a_new_repo.rst
...
Helps users having this issue: https://github.com/restic/restic/issues/2216
2019-03-29 18:24:17 +01:00
Benoît Knecht
be23313072
changelog: Add entry for s3.storage-class option
2019-03-26 16:39:27 +01:00
Benoît Knecht
3c112d9cae
s3: Add config option to set storage class
...
The `s3.storage-class` option can be passed to restic (using `-o`) to
specify the storage class to be used for S3 objects created by restic.
The storage class is passed as-is to S3, so it needs to be understood by
the API. On AWS, it can be one of `STANDARD`, `STANDARD_IA`,
`ONEZONE_IA`, `INTELLIGENT_TIERING` and `REDUCED_REDUNDANCY`. If
unspecified, the default storage class is used (`STANDARD` on AWS).
You can mix storage classes in the same bucket, and the setting isn't
stored in the restic repository, so be sure to specify it with each
command that writes to S3.
Closes #706
2019-03-26 16:37:07 +01:00
kcthrn
2970e38d92
Fix minor error in doc for forgetting snapshots
2019-03-24 17:59:19 -04:00
Alexander Neumann
870e7583a1
Merge pull request #2210 from restic/update-deps
...
Update dependencies
2019-03-17 13:38:34 +01:00
Alexander Neumann
db1c835c37
Update dependencies
2019-03-17 12:13:53 +01:00
Alexander Neumann
190bed9908
Merge pull request #2208 from restic/update-go
...
Update Go for CI tests
2019-03-17 11:36:06 +01:00
Alexander Neumann
85f4c826db
Update Go for CI tests
2019-03-17 11:06:16 +01:00
Alexander Neumann
5da4b0fc7d
Merge pull request #2209 from restic/fix-freebsd
...
Fix build on FreeBSD for Go < 1.12
2019-03-17 11:05:38 +01:00
Alexander Neumann
c1058005c3
Fix build on FreeBSD for Go < 1.12
2019-03-16 20:52:37 +01:00
Alexander Neumann
ca73808649
Merge pull request #2197 from dmgk/master
...
Fix build on FreeBSD with Go 1.12
2019-03-16 20:23:19 +01:00
Alexander Neumann
f2ea91df38
Merge pull request #2189 from ifedorenko/filewrite-race
...
Fix rare 'file already closed' during restore
2019-03-16 19:53:18 +01:00
Alexander Neumann
15cc4d74b2
Run 'go mod tidy' and 'go mod vendor'
2019-03-16 17:01:20 +01:00
Igor Fedorenko
bf9a507148
Fix rare 'file already closed' during restore
...
Fixes #2183
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2019-03-16 17:01:20 +01:00
Alexander Neumann
65b476ead9
Fix gofmt
2019-03-16 13:29:05 +01:00
Alexander Neumann
aaa1cc2c26
Merge pull request 2193 from restic/allow-empty-rclone-args
...
rclone: Rework backend option parsing
2019-03-16 12:17:38 +01:00
Alexander Neumann
95434cff16
Merge pull request 2156 from kayrus/swift-app-cred
...
Swift: introduce application credential auth support
2019-03-16 12:17:17 +01:00
Alexander Neumann
1b94ae1c00
Merge pull request 2205 from heikobornholdt/ignore-inode
...
Add --ignore-inode option to backup cmd
2019-03-16 12:16:31 +01:00
Heiko Bornholdt
d138b38f28
Add pull-2205 to changelog
2019-03-10 21:37:01 +01:00
Heiko Bornholdt
db8f5864fc
Add --ignore-inode option to backup cmd
...
revised version of https://github.com/restic/restic/pull/2047
2019-03-10 21:24:29 +01:00
Dmitri Goutnik
1d8b21cdad
Fix build on FreeBSD with Go 1.12
2019-03-06 09:41:49 -05:00
Alexander Neumann
3865b59716
rclone: Rework backend option parsing
...
This change allows passing no arguments to rclone, using `-o
rclone.args=""`. It is helpful when running rclone remotely via SSH
using a key with a forced command (via `command=` in `authorized_keys`).
2019-03-02 10:36:42 +01:00
Alexander Neumann
7b8d1dc040
Merge pull request 2187 from restic/fix-2181
...
self-update: Don't cancel download after 30s
2019-02-24 21:21:55 +01:00
David Brown
d19a29f79e
Include reasons in json output of forget
...
This dumps the reasons as well as the list of keeps and removes with the
output from the forget command.
2019-02-23 09:38:33 -07:00
David Brown
449c049ce9
Add changelog for #2184
2019-02-23 09:37:38 -07:00
Alexander Neumann
9f436d80e1
Add changelog file
2019-02-23 11:16:08 +01:00
Alexander Neumann
e277a92a2f
self-update: Don't cancel download after 30 seconds
2019-02-23 11:15:18 +01:00
David Brown
d9e22c2df1
Add test for --json
support for forget
command
...
This adds a test of the json output of the forget command, by running it
once, asking it to keep one snapshot, and verifying that the output has
the right number of snapshots listed in the Keep and Remove fields of
the result.
2019-02-22 22:00:20 -07:00
David Brown
4b0fb5af36
Add --json
support to forget
command
...
Fixes #2184
2019-02-22 22:00:15 -07:00
Alexander Neumann
7519c73987
Clarify documentation on --exclude-if-present
2019-02-22 15:22:29 +01:00
Alexander Neumann
45a48eb4a8
Merge pull request 2171 from tbm/typos
...
Fix typos
2019-02-21 19:46:10 +01:00
Martin Michlmayr
a2f30cde4c
Fix typos
2019-02-17 15:31:07 +00:00
kayrus
6ebcfe7c18
Swift: introduce application credential auth support
2019-02-14 14:19:05 +01:00
Alexander Neumann
0022926eba
Merge pull request 2167 from moritzdietz/master
...
Update dead link in docs
2019-02-11 21:10:44 +01:00
Alexander Neumann
3e3a0220ec
Merge pull request 2151 from restic/update-deps
...
Update dependencies
2019-02-11 20:27:17 +01:00
Moritz Dietz
c125fb763d
Update dead link
2019-02-11 20:18:43 +01:00
Alexander Neumann
b9f0f031b6
Update dependencies
...
Closes #2129
2019-02-10 13:24:37 +01:00
Alexander Neumann
aa7043151a
Merge pull request 2147 from kilburn/macports
...
Document installation with MacPorts
2019-02-10 12:50:52 +01:00
Alexander Neumann
ebf22a35f4
Merge pull request 2154 from ciderpunx/patch-1
...
Remove stray "in" from b2 instructions
2019-02-10 12:50:11 +01:00
Alexander Neumann
3f069ac404
Merge pull request 2153 from dmd/umount-message
...
more accurate umount help message, for #815
2019-02-10 12:43:48 +01:00
Alexander Neumann
56e5467096
Merge pull request 2032 from j6s/feature.case-insensitive-exclude
...
Add options for case insensitive includes & excludes
2019-02-10 12:40:33 +01:00
Alexander Neumann
5ee932a124
Add changelog for #2139
2019-02-10 12:35:41 +01:00
Alexander Neumann
fed25714a4
Merge pull request 2139 from restic/fail-zero-bytes-stdin
...
Return error when reading zero byte from stdin
2019-02-10 12:34:05 +01:00
Alexander Neumann
8906d85ab8
Merge pull request 2138 from restic/fix-2136
...
Use processed bytes for summary
2019-02-10 12:32:50 +01:00
Alexander Neumann
97aafc1eec
Add changelog file for #1944
2019-02-10 12:31:18 +01:00
Alexander Neumann
6a5c9f57c2
Merge pull request 1944 from mholt/jsonprogress
...
backup: Support --json flag by streaming JSON to report progress
2019-02-10 12:29:50 +01:00
Matthew Holt
6cf13483b5
Add snapshot ID to summary output
2019-02-10 12:09:09 +01:00
Matthew Holt
f645306a18
Initial implementation of JSON progress reporter
2019-02-10 12:09:09 +01:00
ciderpunx
186e10e0cb
Remove stray "in" from b2 instructions
2019-01-29 12:39:46 +00:00
Daniel M. Drucker
29a5bd5b30
more accurate umount help message, for #815
2019-01-28 16:53:35 -05:00
Marc Pujol
06a01bc016
Document installation with MacPorts
2019-01-21 08:13:53 +01:00
Johannes Hertenstein
cdc287a7f6
Store reference to reject function for insensitive pattern rejection
2019-01-19 11:08:13 +00:00
Johannes Hertenstein
deedc38129
Only convert iexclude & iinclude casing once
2019-01-19 11:04:53 +00:00
Alexander Neumann
1107eef215
Merge pull request 2142 from restic/fix-2140
...
Print message in verbose mode only
2019-01-12 13:30:20 +01:00
Alexander Neumann
60c7020bcb
Print message in verbose mode only
...
Closes #2140
2019-01-10 21:28:22 +01:00
Alexander Neumann
b96ef48562
Set development version for 0.9.4
2019-01-06 21:40:32 +01:00
Alexander Neumann
cd9b2295f1
Add version for 0.9.4
2019-01-06 21:40:32 +01:00
Alexander Neumann
a439cdeb05
Update manpages and auto-completion
2019-01-06 21:40:32 +01:00
Alexander Neumann
827f6d7b24
Generate CHANGELOG.md for 0.9.4
2019-01-06 21:40:31 +01:00
Alexander Neumann
77ab10d401
Create changelog dir for 0.9.4
2019-01-06 21:39:56 +01:00
Alexander Neumann
3b0ad2e368
release: Pull latest alpine image
2019-01-06 21:39:56 +01:00
Alexander Neumann
2996c110f1
Merge pull request 2017 from kylewlacy/fuse_default_permissions_option
...
mount: Add default-permissions flag to set FUSE option
2019-01-06 21:19:27 +01:00
Alexander Neumann
4609b5c24d
Merge pull request 2094 from juergenhoetzel/password-command
...
Add support for reading password from external command
2019-01-06 21:14:52 +01:00
Alexander Neumann
830511460a
mount: Turn on DefaultPermissions for --allow-other`
...
This commit changes the logic slightly: checking the permissions in the
fuse mount when nobody else besides the current user can access the fuse
mount does not sense. The current user has access to the repo files in
addition to the password, so they can access all data regardless of what
the fuse mount does.
Enabling `--allow-root` allows the root user to access the files in the
fuse mount, for this user no permission checks will be done anyway.
The code now enables `DefaultPermissions` automatically when
`--allow-other` is set, it can be disabled with
`--no-default-permissions` to restore the old behavior.
2019-01-06 20:55:49 +01:00
Alexander Neumann
0dc3648416
Add documentation for --password-command
2019-01-06 20:41:38 +01:00
Alexander Neumann
d71dba3788
Merge pull request 2130 from andreaso/docs-https-links
...
Prefer https:// links in the documentation
2019-01-06 20:24:42 +01:00
Alexander Neumann
e482633943
Merge pull request 2137 from kevinawoo/patch-1
...
doc: Add more clarity to B2 application key
2019-01-06 20:24:00 +01:00
Alexander Neumann
900621051a
Merge pull request 2120 from turnkey-commerce/fix-doc-typo
...
Fix a few typos in the FAQ doc.
2019-01-06 15:08:13 +01:00
Alexander Neumann
1f246c5309
Merge pull request 2090 from plumbeo/within-hours
...
Increase the granularity of the "keep within" snapshot retention policy
2019-01-06 15:04:55 +01:00
Alexander Neumann
e40805b002
Merge pull request 2103 from cdhowie/master
...
--one-file-system unsupported on Windows
2019-01-06 14:59:46 +01:00
Alexander Neumann
6f69ae1b8d
Add docs, changelog file
2019-01-06 14:52:20 +01:00
Alexander Neumann
c4fbf2c779
Return error when reading zero byte from stdin
...
This commit changes the internal file system implementation for reading
data from stdin, it now returns an error when no bytes could be read. I
think it's worth failing in this case, the user instructed restic to
read some data from stdin, and no data was read at all. Maybe it was in
a pipe and some earlier stage failed.
See #2135 for a short discussion.
2019-01-06 14:52:20 +01:00
Alexander Neumann
7c084014fa
Use processed bytes for summary
...
When restic reads the backup from stdin, the number of bytes processed
was always displayed as zero. The reason is that the UI for the archive
uses the total bytes as returned by the scanner, which is zero for
stdin. So instead we keep track of the real number of bytes processed
and print that at the end.
Closes #2136
2019-01-06 13:15:23 +01:00
Kevin Woo
d65bea1b2a
doc: Add more clarity to B2 application key
2019-01-05 20:05:11 -08:00
Andreas Olsson
3b68acf853
Prefer https:// links in the documentation
...
All the changed urls are available by way of https://. Most of them
already redirect.
2018-12-29 15:57:44 +01:00
James Culbertson
82a70643a2
Fix a few typos in the FAQ doc.
2018-12-18 08:47:52 -06:00
Alexander Neumann
0dd805421e
Merge pull request 2108 from mholt/noexitprint
...
cmd: Don't exit if printing to stdout or stderr fails (closes #2102 )
2018-12-15 21:34:18 +01:00
Alexander Neumann
16b82f4b1d
Merge pull request 2111 from andreaso/doc-moot-sudo
...
Remove moot sudo usage from documentation
2018-12-15 21:33:51 +01:00
Andreas Olsson
7a6bfcd58c
Remove moot sudo usage from documentation
...
That usage of sudo only applies to the echo command itself. It has no
effect on the permissions of the stdout redirect.
2018-12-09 17:43:50 +01:00
Matthew Holt
de54618852
cmd: Don't exit if printing to stdout or stderr fails ( closes #2102 )
2018-12-01 15:11:22 -07:00
Alexander Neumann
98526b8dbe
Merge pull request 2100 from restic/fix-1989
...
gs: Respect bandwidth limiting
2018-11-28 21:39:42 +01:00
Alexander Neumann
0083680d33
Merge pull request 2099 from restic/fix-1229
...
cache: Don't return an error for truncated files
2018-11-28 21:39:35 +01:00
Chris Howie
05222b7343
--one-file-system unsupported on Windows
2018-11-27 11:14:47 -05:00
Kyle Lacy
d4ff5b6bf4
Add changelog entry about "DefaultPermissions" change
2018-11-26 21:16:01 -08:00
Kyle Lacy
cf0883e16c
mount: Add "no-default-permissions" option
...
This option restores the previous behavior of `mount` by disabling the "DefaultPermissions" FUSE option. This allows any user that can access the mountpoint to read any file from the snapshot. Normal FUSE rules apply, so `allow-root` or `allow-other` can be used to allow users besides the mounting user to access these files.
2018-11-26 21:16:01 -08:00
Kyle Lacy
a35a24b8b4
mount: Enable "DefaultPermissions" FUSE option by default
...
This enforces the Unix permissions of the snapshot files within the mounted filesystem, which will only allow users to access snapshot files if they had access to the file outside of the snapshot.
2018-11-26 21:16:01 -08:00
Juergen Hoetzel
df7f72cdde
Add support for reading password from external command
...
This allows reading the password from an password manager (like "pass").
Signed-off-by: Juergen Hoetzel <juergen@archlinux.org >
2018-11-26 20:18:31 +01:00
plumbeo
3edc723bf0
Update 'restic forget --keep-within' documentation and add changelog entry
2018-11-26 14:27:48 +01:00
plumbeo
71891b340c
Support time ranges expressed in hours in snapshot retention policies
...
Make restic forget --keep-within accept time ranges measured in hours and choose
accordingly which snapshots to keep and which to forget. Add relative tests.
2018-11-26 14:27:42 +01:00
Alexander Neumann
6f5c3e57f6
Update vendor/modules.txt
2018-11-25 19:22:57 +01:00
Alexander Neumann
56af0ce370
Add entry to changelog
2018-11-25 19:07:42 +01:00
Alexander Neumann
c9745cd47e
gs: Respect bandwidth limiting
...
In 0dfdc11ed9
, accidentally we dropped
using the provided http.RoundTripper, this commits adds it back.
Closes #1989
2018-11-25 18:52:32 +01:00
Alexander Neumann
2434ab2106
Merge pull request 2098 from cdhowie/key-hinting
...
Add key hinting (#2097 )
2018-11-25 17:52:54 +01:00
Chris Howie
1688713400
Add key hinting ( #2097 )
2018-11-25 09:13:18 -05:00
Alexander Neumann
00597284de
cache: Don't return an error for truncated files
...
Closes #1229
Closes #1328
2018-11-25 14:18:02 +01:00
Johannes Hertenstein
879f6e0c81
Add changelog file for insensitive includes & excludes
2018-11-25 13:32:16 +01:00
Johannes Hertenstein
8a97bb8661
Add documentation for insensitive includes & excludes
2018-11-25 13:32:16 +01:00
Johannes Hertenstein
5fe6de219d
Add tests for insensitive variants of filter methods
2018-11-25 13:32:16 +01:00
Johannes Hertenstein
c13f79da02
Add iexclude and iinclude options to restore command
2018-11-25 13:32:16 +01:00
Johannes Hertenstein
db82e6b80c
Add iexclude option to backup command
2018-11-25 13:32:16 +01:00
Alexander Neumann
6dc7cca597
Merge pull request 2086 from frebib/fix-2085
...
Allow --files-from multiple times
2018-11-25 13:21:29 +01:00
Alexander Neumann
d32c7c2aba
Rework changelog for #2085
2018-11-25 12:55:03 +01:00
Joe Groocock
09e9b74cbd
Allow --files-from multiple times
...
Fixes https://github.com/restic/restic/issues/2085
2018-11-25 12:55:03 +01:00
Alexander Neumann
d53595e43c
Merge pull request 2088 from garrmcnu/stats-latest-host
...
stats: Add shorthand flag `-H` for host name filter
2018-11-24 19:05:53 +01:00
Alexander Neumann
0de19cc87f
Merge pull request 2095 from plumbeo/parse-location
...
Use local time for user-provided time of backup
2018-11-24 18:50:12 +01:00
plumbeo
2c9ec07d0b
Add changelog entry
2018-11-20 22:18:12 +01:00
plumbeo
a7971a3ece
Use local time for user-provided time of backup
2018-11-20 21:28:19 +01:00
Alexander Neumann
4ab0022da8
Add hint which OS are supported
...
Closes #2016
2018-11-18 12:33:52 +01:00
Garry McNulty
4b3c054257
stats: Add shorthand flag -H
for host name filter
...
The default value of the `--host` flag was set to 'H' (the shorthand
version of the flag), this caused the snapshot lookup to fail.
Also add shorthand `-H` for `backup` command.
Closes #2040
2018-11-14 21:58:31 +00:00
plumbeo
7486bfea5b
Extend custom Duration granularity to hours and add tests
2018-11-14 17:27:02 +01:00
Alexander Neumann
c8fc72364a
Merge pull request 2081 from restic/fix-2080
...
backup: Open repository before async status starts
2018-11-11 14:21:47 +01:00
Alexander Neumann
987ef2f4a9
Merge pull request 2082 from restic/fix-2079
...
dump: Use path instead of filepath
2018-11-11 14:21:37 +01:00
Alexander Neumann
5b95bb7059
Fix error message on Windows
2018-11-11 14:06:32 +01:00
Alexander Neumann
8471a359ee
dump: Use path instead of filepath
...
Some time ago we changed the paths in the repo to always use a slash for
separation, it seems we missed that the `dump` command still uses the
`filepath` package, so on Windows backslashes are used.
Closes #2079
2018-11-10 12:43:11 +01:00
Alexander Neumann
f9422ff4c7
backup: Open repository before async status starts
...
Closes #2080
2018-11-10 12:38:29 +01:00
Alexander Neumann
c0572ca15f
backup: Add warning when patterns do not match any files
2018-11-03 14:51:30 +01:00
Alexander Neumann
a630d69e0c
Merge pull request 2070 from restic/display-local-time
...
Display local time for all commands
2018-11-02 21:16:29 +01:00
Alexander Neumann
20bcd281a3
Add entry to changelog
2018-11-02 20:40:52 +01:00
Alexander Neumann
c012fccd22
Display local time for all commands
2018-11-02 20:36:15 +01:00
Alexander Neumann
920727dd34
Merge pull request #2068 from restic/prune-check-load-error
...
prune: Correctly handle errors returned by Load()
2018-10-28 22:15:29 +01:00
Alexander Neumann
157d365894
Add entry to CHANGELOG
2018-10-28 21:38:04 +01:00
Alexander Neumann
bfa18ee8ec
DownloadAndHash: Check error returned by Load()
2018-10-28 21:28:56 +01:00
Alexander Neumann
890eebf151
Correct summary for #1978
2018-10-28 20:55:49 +01:00
Alexander Neumann
9310cd0cd6
Merge pull request #2056 from restic/recover-data
...
Add new command 'recover'
2018-10-28 14:26:48 +01:00
Alexander Neumann
9f7ce7ce5a
Merge pull request #2066 from restic/fix-list-error
...
rebuild-index/prune: Correctly handle error listing files
2018-10-28 14:26:40 +01:00
Alexander Neumann
0b600d6cef
index.New: Test various error conditions
2018-10-28 14:02:31 +01:00
Alexander Neumann
3ae2a79bdf
restic: Use local rand source instead of global one
2018-10-28 14:01:30 +01:00
Alexander Neumann
f7c0893f76
index: Add tests for error conditions
2018-10-28 13:16:36 +01:00
Alexander Neumann
c3de301fc8
index: Use interfaces instead of *repository.Repository
2018-10-28 12:58:34 +01:00
Alexander Neumann
944b446ac0
index: Cancel context for tests
2018-10-28 11:17:04 +01:00
Alexander Neumann
b096fc7abf
index: Correctly process errors listing all files
...
This also removes the now unused `list` and `worker` packages.
2018-10-28 11:16:29 +01:00
Alexander Neumann
d10754e2b4
Merge pull request 2057 from re1/patch-1
...
Update install instructions for Arch Linux
2018-10-21 20:04:07 +02:00
Alexander Neumann
7ac683c360
rclone: Inject debug logger for HTTP
2018-10-21 19:58:40 +02:00
Markus
6caa9d38ac
Update install instructions for Arch Linux
...
restic has been added to the official community repositories in august 2018.
2018-10-20 13:09:52 +00:00
Alexander Neumann
19fd0f101f
Merge pull request 2053 from andyjack/correct-doc-for-self-update
...
Fix incorrect command name in long doc for self-update
2018-10-20 11:51:13 +02:00
Alexander Neumann
8c91c51d1b
Fix timestamps
2018-10-20 11:08:03 +02:00
Alexander Neumann
7e28bf7e97
Add 'recover' command
2018-10-20 11:08:03 +02:00
Alexander Neumann
43d6e426c8
Merge pull request 2054 from gliptak/patch-3
...
Correct typo
2018-10-20 11:04:49 +02:00
Alexander Neumann
26fc60e7cb
Merge pull request 2055 from gliptak/patch-4
...
Correct ineffassign
2018-10-20 11:04:32 +02:00
Gábor Lipták
e5d7879622
Correct ineffassign
...
Signed-off-by: Gábor Lipták <gliptak@gmail.com >
2018-10-19 16:58:14 -04:00
Gábor Lipták
d2ee58f2e9
Correct typo
2018-10-18 21:30:14 -04:00
Andy Jack
3f25537a06
Fix incorrect command name in long doc for self-update
2018-10-18 18:45:31 -04:00
Alexander Neumann
d203ae37f4
Merge pull request 2050 from andreasnuesslein/patch-1
...
tiny formatting fix
2018-10-18 22:31:15 +02:00
Andreas Nüßlein
6eedd66c1a
tiny formatting fix
...
I noticed this discrepancy when trying to parse the output of restic.
2018-10-17 09:41:11 +02:00
Alexander Neumann
e4b39ae553
Merge pull request 2044 from restic/fix-verify
...
restore: Close files tested with --verify
2018-10-15 21:16:58 +02:00
Alexander Neumann
7cbcb6d318
Merge pull request 2043 from cgroschupp/patch-1
...
Add ssh binary to docker image to allow sftp repository
2018-10-14 21:43:04 +02:00
Alexander Neumann
c0fca3f50a
restore: Close files tested with --verify
...
Before, the target files were opened once per blob and never closed,
this commit fixes that.
2018-10-14 21:00:14 +02:00
Alexander Neumann
4c2072d875
Merge pull request 1719 from ifedorenko/mt-restorer
...
new optimized multithreaded restore implementation
2018-10-14 20:29:16 +02:00
Christian Groschupp
92ecca1808
Add ssh binary to docker image to allow sftp repository
2018-10-14 19:56:02 +02:00
Alexander Neumann
7236635cc1
Merge pull request 2042 from restic/fix-2041
...
self-update: fix path to output file
2018-10-14 19:48:28 +02:00
Alexander Neumann
21a3486ebb
Rework changelog entry
2018-10-14 17:39:42 +02:00
Igor Fedorenko
bda8d7722e
restorer: Optimize empty file restore
...
don't create fileInfo structs for empty files. this saves memory.
this also avoids extra serial scan of all fileInfo, which should
make restore faster and more consistent.
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:39:42 +02:00
Igor Fedorenko
c2bcb764cd
restorer: Add a note on hardlink metadata
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:39:42 +02:00
Igor Fedorenko
9e24154ec9
restore: significantly reduce memory footprint
...
reworked restore error callback to use file location
path instead of much heavier Node. this reduced restore
memory usage by as much as 50% in some of my tests.
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:39:42 +02:00
Igor Fedorenko
9f3ca97ee8
restore: Chang fileInfo to use snapshot location instead of target path
...
* uses less memory as common prefix is only stored once
* stepping stone for simpler error callback api, which
will allow further memory footprint reduction
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:39:42 +02:00
Igor Fedorenko
32d5ceba87
restore: Fix packcache capacity math with failed downloads
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:39:42 +02:00
Igor Fedorenko
e010f3b884
restore: Fix small memory leak in filesWriter, add tests
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:39:42 +02:00
Alexander Neumann
941202c119
restore: Rename things, match the rest of the project
2018-10-14 17:39:37 +02:00
Alexander Neumann
c021ad2334
restore: Move documentation to godoc
2018-10-14 17:39:35 +02:00
Igor Fedorenko
2b3420820b
go mod vendor
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:37:30 +02:00
Igor Fedorenko
da57302fca
restore: Removed legacy restore implementation
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:37:30 +02:00
Igor Fedorenko
1869930d95
restore: New optimized multithreaded implementation
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:37:30 +02:00
Igor Fedorenko
1213d8fef4
Cleanup: more realistic restorer test data setup
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-10-14 17:37:30 +02:00
Alexander Neumann
a432b42c81
self-update: Check current version before download
2018-10-14 17:29:46 +02:00
Alexander Neumann
7d0f2eaf24
self-update: Use correct path to restic binary
...
Closes #2041
2018-10-14 17:29:19 +02:00
Alexander Neumann
41a4d67d93
Merge pull request 1962 from mholt/lsjson
...
ls: Stream output when using --json option
2018-10-14 15:51:38 +02:00
Alexander Neumann
afde60e433
Merge pull request #2039 from restic/fix-2038
...
snapshots: Don't print empty line for --compact
2018-10-13 21:24:26 +02:00
Alexander Neumann
d7baa67acb
snapshots: Don't print empty line for --compact
...
Closes #2038
2018-10-13 20:17:34 +02:00
Alexander Neumann
167397c18c
Set development version for 0.9.3
2018-10-13 13:48:31 +02:00
Alexander Neumann
be36c5f150
Add version for 0.9.3
2018-10-13 13:48:31 +02:00
Alexander Neumann
9484a14ab2
Update manpages and auto-completion
2018-10-13 13:48:30 +02:00
Alexander Neumann
0f5fc8fb3d
Generate CHANGELOG.md for 0.9.3
2018-10-13 13:48:29 +02:00
Alexander Neumann
a5b40e9372
helpers: Use version string in built binaries
2018-10-13 13:48:03 +02:00
Alexander Neumann
c5ec4efe91
Update prepare-release
2018-10-13 13:48:03 +02:00
Alexander Neumann
e64a0e0454
helpers: Don't run sha256sums in build
2018-10-13 13:48:03 +02:00
Alexander Neumann
8b5b031f90
Prepare changelog for 0.9.3
2018-10-13 13:48:03 +02:00
Alexander Neumann
4a2134bbc5
changelog: Rename issue
2018-10-13 13:48:03 +02:00
Alexander Neumann
484844aa1a
Document the build and release processes
2018-10-13 13:48:03 +02:00
Alexander Neumann
4ed10239ad
doc: Add developer information
2018-10-11 22:37:25 +02:00
Alexander Neumann
c4896ed642
Add build-release-binaries
2018-10-11 22:37:25 +02:00
Alexander Neumann
29aaec383c
Move scripts/ to helpers/
2018-10-11 22:37:25 +02:00
Alexander Neumann
0cb241b7d3
Remove build tag release
2018-10-11 19:40:38 +02:00
Alexander Neumann
de4750b8e0
Add entry to changelog
2018-10-11 19:37:20 +02:00
Alexander Neumann
7b91c40e21
Merge pull request #2033 from j6s/feature.cache-size
...
Output directory size in cache command
2018-10-11 19:34:57 +02:00
Alexander Neumann
cc9bf02da1
Merge pull request #2036 from SimJoSt/patch-1
...
doc: cache: fix typo
2018-10-11 19:34:14 +02:00
Joda Stößer
b7959c44d2
doc: cache: fix typo
2018-10-11 14:00:51 +02:00
Johannes Hertenstein
277cba4b32
Catch errors when walking cache directories
2018-10-08 15:47:34 +02:00
Johannes Hertenstein
ed651df19b
Use correct method for joining paths
2018-10-08 15:47:08 +02:00
Johannes Hertenstein
641dc65e6e
Output directory size in cache command
2018-10-07 14:37:51 +02:00
Alexander Neumann
de9136b29f
Merge pull request #2022 from moritzdietz/update-faq
...
Add example to spot path expansion errors
2018-10-07 12:11:13 +02:00
Moritz Dietz
b36345fd84
Add example to spot path expansion errros
2018-10-07 12:09:46 +02:00
Alexander Neumann
03402c8a04
Merge pull request #2031 from danielb2/latest
...
use latest instead of newest in forget language
2018-10-06 21:20:21 +02:00
Daniel Bretoi
966e5a5575
use latest instead of newest in forget language
2018-10-06 12:02:22 -07:00
Alexander Neumann
5aa0deeff9
Merge pull request #2026 from gottwald/update-go4docker
...
Update Go version to 1.11.1 in Docker build script
2018-10-06 13:11:19 +02:00
Alexander Neumann
af4d822380
Merge pull request #2025 from kurin/fixloop
...
b2: simplify object iteration
2018-10-06 13:01:27 +02:00
Alexander Neumann
fd95b86894
Merge pull request #2029 from j6s/feature.escape-docker-build
...
Escape subcommand in docker build script
2018-10-06 12:46:08 +02:00
Alexander Neumann
5dbef3712e
Merge pull request #2027 from j6s/feature.cache-dir-information
...
Print base directory with cache command
2018-10-06 12:40:48 +02:00
Johannes Hertenstein
63647e93e4
Escape subcommand in docker build script
2018-10-05 22:13:49 +02:00
Johannes Hertenstein
9b8deb51ba
Print base directory with cache command
2018-10-05 21:23:57 +02:00
Ingo Gottwald
2c4b0d975e
Update Go version to 1.11.1 in Docker build script
...
Restic cannot be built with Go 1.8.3 any more, it requires at least Go
1.9.0.
2018-10-05 21:13:28 +02:00
Toby Burress
8ceda538ef
b2: simplify object iteration
...
Blazer is moving to a simpler object list interface, so I'm changing
this here as well.
2018-10-05 11:39:02 -07:00
Alexander Neumann
233596f4bc
Merge pull request #2019 from restic/recheck-cache
...
cache: Recheck before downloading
2018-10-05 12:26:21 +02:00
Alexander Neumann
6712ee8f92
Merge pull request #2020 from j6s/feature.cache-dir-documentation
...
Add defaults to command line help of --cache-dir
2018-10-05 12:26:12 +02:00
Johannes Hertenstein
0916ff71bd
Add defaults to command line help of --cache-dir
2018-10-04 19:50:05 +02:00
Alexander Neumann
5971650f77
cache: Fix recheck logic, remove channel from inProgress
2018-10-04 17:09:43 +02:00
Alexander Neumann
19725954ee
cache: Recheck before downloading
2018-10-04 14:31:18 +02:00
Alexander Neumann
b1e1b71bab
docker: Base image on latest alpine release
2018-10-03 21:33:13 +02:00
Alexander Neumann
f1799de309
Merge pull request #2018 from restic/fix-1967
...
Use `--host` for all commands, deprecate --hostname
2018-10-03 21:19:01 +02:00
Alexander Neumann
585a5e3416
Use --host
for all commands, deprecate --hostname
2018-10-03 14:12:35 +02:00
Alexander Neumann
b7eeeedc3f
Add minimal docs for the top-level package
...
Closes #173
2018-10-03 13:43:40 +02:00
Alexander Neumann
a20d4bc6b0
Merge pull request #1892 from Stell0/1891
...
Expand Glob (wildcards character) in paths in file in --files-from
2018-10-03 12:05:55 +02:00
Alexander Neumann
fb31d66951
backup: Improve error message for invalid pattern
2018-10-03 11:12:51 +02:00
Alexander Neumann
33dfbf5c38
Reword changelog
2018-10-03 10:37:35 +02:00
Stefano Fancello
d1df3718b5
Add changelog unreleased file
2018-10-03 10:37:35 +02:00
Stefano Fancello
e2da0a416c
Expand Glob (wildcards character) in paths in file in --files-from
2018-10-03 10:37:35 +02:00
Alexander Neumann
0c0a8e3d2b
docs: Explain recognizing modified files
2018-10-02 14:21:08 +02:00
Alexander Neumann
0882aca3a8
Add hint for FUSE on FreeBSD
2018-09-26 21:40:43 +02:00
Alexander Neumann
cd41915e10
Merge pull request #2009 from restic/update-minio
...
Update github.com/minio/minio-go
2018-09-26 14:33:30 +02:00
Alexander Neumann
2effacd444
Update github.com/minio/minio-go
...
Closes #1918
2018-09-26 14:12:34 +02:00
Alexander Neumann
c6901ff908
Merge pull request #2002 from ifedorenko/dumb-terminals
...
termstatus: detect and respect dumb terminals on Unix
2018-09-25 13:53:57 +02:00
Alexander Neumann
2f774acce3
Merge pull request #2006 from Calinou/doc-add-scoop-installation
...
Add Scoop installation method to the documentation
2018-09-25 13:23:28 +02:00
Alexander Neumann
5f8658238c
Merge pull request #2005 from Calinou/doc-osx-to-macos
...
Rename OS X to macOS in the documentation
2018-09-25 13:21:28 +02:00
Hugo Locurcio
2bb1be4d4e
Add Scoop installation method to the documentation
2018-09-23 18:42:50 +02:00
Hugo Locurcio
40e0016403
Rename OS X to macOS in the documentation
...
macOS is the official name since the release of macOS 10.12 (Sierra).
2018-09-23 16:13:34 +02:00
Igor Fedorenko
541d232f1c
termstatus: detect and respect dumb terminals on Unix
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-09-21 07:24:41 -04:00
Alexander Neumann
6bc99ce451
Merge pull request #1993 from rfjakob/lchown
...
restore: suppress lchown errors when not running as root
2018-09-09 20:10:50 +02:00
Jakob Unterwurzacher
e42d2d1da8
restore: suppress lchown errors when not running as root
...
Like "cp -a" and "rsync -a" do, only report lchown errors if we run
as root.
Like cp from GNU coreutils does, we check Geteuid() to determine if
we are running as root
( http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/copy.c#n3012 ).
On Windows, lchown errors are always reported.
Fixes https://github.com/restic/restic/issues/1766
2018-09-09 15:39:10 +02:00
Alexander Neumann
bd9022962e
Merge pull request #1992 from restic/add-go-mod-tidy
...
Run go mod tidy during CI
2018-09-09 11:03:16 +02:00
Alexander Neumann
91f1b40206
Run go mod tidy during CI
2018-09-09 10:36:27 +02:00
Alexander Neumann
d9b89eead0
Run 'go mod tidy'
2018-09-08 22:12:23 +02:00
Alexander Neumann
5399297de6
Merge pull request #1980 from restic/update-deps
...
Update dependencies
2018-09-08 21:57:39 +02:00
Alexander Neumann
96f7be5d9b
Update dependencies
2018-09-08 21:17:22 +02:00
Alexander Neumann
0922367308
Merge pull request #1991 from restic/debug-1978
...
scanner: Use context only for cancellation
2018-09-08 20:22:15 +02:00
Alexander Neumann
e2d9900d82
Add entry to CHANGELOG
2018-09-08 18:53:12 +02:00
Alexander Neumann
1140950d7b
scanner: Use context only for cancellation
...
When the scanner is slower than the actual backup, the tomb cancels the
context passed to Scan(), which then returns ctx.Err(). In the end, the
main function prints an error message that is not helpful ("Context
cancelled") and exits with an error code although no error occurred.
The code now ignores the error in the context and just uses it for
cancellation. The scanner is not supposed to return an error anyway.
Closes #1978
2018-09-08 18:53:12 +02:00
Alexander Neumann
6d9c008900
Add template for "regular" issue
2018-09-08 18:00:29 +02:00
Alexander Neumann
b617444158
Test issue template
2018-09-08 17:58:08 +02:00
Alexander Neumann
e588c42646
Move template
2018-09-08 17:55:44 +02:00
Alexander Neumann
14bb2a9005
Add custom issue template
2018-09-08 17:53:52 +02:00
Alexander Neumann
f04d347e7a
Merge pull request #1982 from tyll/installation
...
Update installation instructions
2018-09-05 21:15:38 +02:00
Alexander Neumann
746182c526
Correct name for Apple's desktop OS
2018-09-05 20:41:37 +02:00
Alexander Neumann
08beb7d84c
Add section about FreeBSD, move anchor
2018-09-05 20:40:28 +02:00
Alexander Neumann
9795b00f51
Merge pull request #1983 from armhold/vet-cleanup
...
gh-1385 clean up some errors from 'go vet ./...'
2018-09-05 20:31:11 +02:00
George Armhold
bfc1bc6ee6
clean up some errors from 'go vet ./...'
2018-09-05 08:04:55 -04:00
Till Maas
e9cdcf131c
Update installation instructions
...
- sort sections for different third-party methods
- Mention that Fedora can now just be installed via dnf
- Fix some typos
2018-09-04 14:39:40 +02:00
Alexander Neumann
35e9885e8b
Appveyor: correct build cache location
2018-09-02 13:26:02 +02:00
Alexander Neumann
16885529f7
Merge pull request #1973 from restic/announce-new-cache
...
cache: Print message when new cache is created
2018-09-02 13:00:55 +02:00
Alexander Neumann
3c02eeb5a8
Merge pull request #1920 from restic/support-go111
...
Support Go 1.11
2018-09-01 11:38:41 +02:00
Alexander Neumann
9e9bb62ad4
Travis: Don't use cached test results
2018-08-31 22:00:47 +02:00
Alexander Neumann
175e630717
Travis: Also cache $GOPATH/pkg/mod
2018-08-31 22:00:47 +02:00
Alexander Neumann
44f38ad049
Travis: Also cache on Darwin
2018-08-31 22:00:47 +02:00
Alexander Neumann
ca928aeae4
Appveyor: Cache Go build cache
2018-08-31 22:00:47 +02:00
Alexander Neumann
27b60a05b4
Travis: Cache Go build artifacts
2018-08-31 22:00:47 +02:00
Alexander Neumann
8af4b331ef
Travis: Remove gotestcover
2018-08-31 22:00:47 +02:00
Alexander Neumann
a5a46e4989
Travis: don't use GOPATH for Go >= 1.11
2018-08-31 22:00:47 +02:00
Alexander Neumann
e4cdb0eab3
Travis: Run with -mod=vendor only for Go >= 1.11
2018-08-31 22:00:47 +02:00
Alexander Neumann
e9a764129f
Update docs for Go 1.11
2018-08-31 22:00:47 +02:00
Alexander Neumann
65129bde5e
Makefile: Try -mod=vendor first
2018-08-31 22:00:47 +02:00
Alexander Neumann
b4beaf807b
Travis: Run build.go with -mod=vendor
2018-08-31 22:00:47 +02:00
Alexander Neumann
4734056583
build.go: Major rework, support Go modules
2018-08-31 22:00:47 +02:00
Alexander Neumann
71e0408390
Add entry to changelog
2018-08-31 21:10:26 +02:00
Alexander Neumann
1352a9d848
run_integration_tests: Replace dep with Go modules
2018-08-31 21:10:26 +02:00
Alexander Neumann
e0f68ec2c0
Vendor dependencies with go mod vendor
2018-08-31 21:10:26 +02:00
Alexander Neumann
9c6e0c6eb9
Document gofmt version
2018-08-31 21:10:26 +02:00
Alexander Neumann
4cbc7c4467
Only run gofmt for latest stable version
2018-08-31 21:10:26 +02:00
Alexander Neumann
aaff8803ef
Fix formatting for gofmt with Go 1.11
2018-08-31 21:10:26 +02:00
Alexander Neumann
16e20676b6
build.go: Set GOPROXY=off
2018-08-31 21:10:26 +02:00
Alexander Neumann
6cd5f8b7f5
Set GOXPROXY=off for tests, run with -mod=vendor
2018-08-31 21:10:26 +02:00
Alexander Neumann
10c0b8080e
Add Go 1.11 to CI tests
2018-08-31 21:10:26 +02:00
Alexander Neumann
d31666d332
build.go: Don't ignore error
2018-08-31 19:51:48 +02:00
Alexander Neumann
6d53e767d5
cache: Print message when new cache is created
...
Sometimes, users run restic without retaining the local cache
directories. This was reported several times in the past.
Restic will now print a message whenever a new cache directory is
created from scratch (i.e. it did not exist before), so users have a
chance to recognize when the cache is not kept between different runs of
restic.
2018-08-29 22:01:10 +02:00
Alexander Neumann
f1b0bb33dd
Merge pull request #1975 from moritzdietz/fix-env-docu
...
Update B2 env variable information
2018-08-29 22:00:17 +02:00
Moritz Dietz
99ae913414
Update B2 env variable information
...
* Fixed the B2 environment variables as they had the same description
* Added the variables for the newly introduced Application Key support #1906
2018-08-29 21:05:57 +02:00
Thomas Damgaard
df78896e59
doc: Add list of environment variables
2018-08-28 22:18:47 +02:00
Alexander Neumann
c896751ce2
Merge pull request #1970 from McKael/pull-1780-changelog
...
Improve changelog entry (pull-1780)
2018-08-28 20:59:10 +02:00
Alexander Neumann
501189625e
Merge pull request #1971 from bobsaintcool/doc/fix_man_output
...
Doc/fix man output
2018-08-28 20:58:21 +02:00
Quentin Bourgeois
a065ada46a
Make generated man pages more easy to read with items
...
Allow Cobra to output a more list items friendly format, this make
reading of the documentation more easily using information from
manpages.
2018-08-27 17:42:54 +02:00
Mikael Berthe
17d6d537e2
Improve changelog entry (pull-1780)
2018-08-27 15:58:39 +02:00
Quentin Bourgeois
5cc224e44a
Merge remote-tracking branch 'upsteam/master'
2018-08-26 20:05:02 +02:00
Alexander Neumann
896089976a
Fix comment
2018-08-26 19:54:17 +02:00
Quentin Bourgeois
a563f87818
<docs/manual_rest: Fix broken link to restc Design page>
2018-08-26 01:46:38 +02:00
Alexander Neumann
de307ea2ab
Merge pull request #1876 from restic/forget-explain
...
forget: Add --explain
2018-08-25 21:48:44 +02:00
Alexander Neumann
4bc904a527
Merge pull request #1780 from McKael/what-contains
...
Add options to 'find' for searching IDs (blobs, ...)
2018-08-25 21:46:25 +02:00
Alexander Neumann
5937b5b355
Add entry to changelog
2018-08-20 22:00:23 +02:00
Alexander Neumann
76387b6cd0
Remove old text table implementation
2018-08-20 22:00:23 +02:00
Alexander Neumann
9aa36a37c7
Vendor cmpopts
2018-08-20 21:47:51 +02:00
Alexander Neumann
9fd3796d93
forget: Display reasons why snapshots are kept
...
This change displays the reasons for keeping a snapshot in the table,
unless `--compact` is specified.
2018-08-20 21:47:51 +02:00
Mikael Berthe
93fa17b53f
Add entry to changelog (new find flags)
2018-08-19 23:28:04 +02:00
Alexander Neumann
15ad0e5bc7
walk: Pass parent tree ID to WalkFunc
2018-08-19 23:28:04 +02:00
Mikael Berthe
1f27d17c0d
walker.Walk: Pass parent tree-id to WalkFunc
2018-08-19 23:28:04 +02:00
Mikael Berthe
8af918a1e4
find: Add support for multiple patterns or objects
2018-08-19 23:28:04 +02:00
Mikael Berthe
bb5425a1d8
find: Add support for blobs, IDs and packs lookups
...
With --blob, --tree and --pack, the find command now lists the snapshots
that contain a specific tree or blob, or the snapshots that contain
blobs belonging to a given pack.
It also displays the pack ID a blob belongs to.
A list of IDs can be given, as long as the IDs are all of the same type.
2018-08-19 22:32:30 +02:00
Alexander Neumann
12246969db
ui/table: Add small package for writing tables
2018-08-19 21:39:35 +02:00
Matthew Holt
9151eec24e
Add changelog entry
2018-08-19 09:14:58 -06:00
Matthew Holt
22475729ce
Select specific Node fields for listing
2018-08-19 09:03:47 -06:00
Matthew Holt
04c67d700d
ls: Stream output when using --json option
2018-08-19 00:18:43 -06:00
Alexander Neumann
d708d607fa
Merge pull request #1953 from kitone/ls-add-json
...
ls: Add JSON output support for restic ls cmd
2018-08-18 15:31:15 +02:00
Alexander Neumann
46f71f4c22
Improve changelog entry
2018-08-18 15:14:52 +02:00
kitone
48cc2f2188
fix: switch struct_type value to lower case
2018-08-18 14:57:50 +02:00
kitone
bd6e7c934c
add changelog entry
2018-08-18 14:57:50 +02:00
kitone
7925217e25
ls: Add JSON output support for restic ls cmd
2018-08-18 14:57:50 +02:00
Alexander Neumann
401a564486
Merge pull request #1961 from mholt/statsoutput
...
stats: Show what was scanned and scanning mode used
2018-08-18 14:29:14 +02:00
Alexander Neumann
31176d212b
doc: Add explanation for "processed" vs "added"
2018-08-18 14:26:57 +02:00
Matthew Holt
2d89311d49
stats: Show what was scanned and scanning mode used
2018-08-17 17:15:30 -06:00
Alexander Neumann
5a25ad1972
Update version in build.go
2018-08-17 21:17:26 +02:00
Alexander Neumann
79d3a18b31
release.go: Add version to global.go
...
Closes #1958
2018-08-17 21:17:10 +02:00
Alexander Neumann
89f17847ad
Merge pull request #1955 from restic/fix-prune-1954
...
prune: Fix calculation for removed bytes
2018-08-14 22:30:59 +02:00
Alexander Neumann
1ab5703404
prune: Fix calculation for removed bytes
2018-08-14 22:06:05 +02:00
Alexander Neumann
49d95e9a50
Merge pull request #1949 from restic/add-self-update
...
Add command self-update
2018-08-13 22:02:34 +02:00
Alexander Neumann
7dff1a08d0
Merge pull request #1950 from ldelouw/master
...
Add RPM SPEC file to create restic packages on Fedora and RHEL
2018-08-13 22:00:18 +02:00
Alexander Neumann
5fee36fa84
Merge pull request #1941 from mholt/lsfilter
...
ls: Implement directory filter, optionally subfolders
2018-08-13 21:58:32 +02:00
Luc de Louw
b0211dff49
Small change for RHEL6 which does not know about the %license macro
2018-08-13 21:39:04 +02:00
Luc de Louw
0f6d21cf84
Add the SPEC file restic.spec to build RPMs
...
Tested on Fedora 28, RHEL 6 and 7
2018-08-13 21:39:04 +02:00
Alexander Neumann
10b5cf8f32
Add self-update to the docs
2018-08-12 23:56:06 +02:00
Alexander Neumann
ad5aec3f3b
Add entry to changelog
2018-08-12 23:56:01 +02:00
Alexander Neumann
6e1a3987b7
Add 'self-update' command
...
This commit adds a command called `self-update` which downloads the
latest released version of restic from GitHub and replacing the current
binary with it. It does not rely on any external program (so it'll work
everywhere), but still verifies the GPG signature using the embedded GPG
public key.
By default, the `self-update` command is hidden behind the `selfupdate`
built tag, which is only set when restic is built using `build.go`. The
reason for this is that downstream distributions will then not include
the command by default, so users are encouraged to use the
platform-specific distribution mechanism.
2018-08-12 23:34:47 +02:00
Alexander Neumann
9630398e3b
ls: Rework and simplify logic
...
This commit introduces two functions: withinDir() and
approachingMatchingTree()
Both bind the list of directories with a closure, so we don't need to
iterate over the list in the function passed to Walk(). This reduces the
indentation level and since we can just use return, we don't need the
breaks any more.
The case that len(dirs) == 0 can also be handled by the functions with a
return, which saves another indentation level.
The main function body of the function passed to Walk() was reduced to
three cases:
* Within one of the dirs: Print the node, and if recursive operation is
requested, directly return, so the walker continues recursive
traversal
* Approaching one of the dirs: don't print anything, but continue
recursive traversal.
* Nothing of the two: abort walking this branch of the tree.
2018-08-12 23:13:34 +02:00
Alexander Neumann
7e34de4c29
ls: Add comments
2018-08-12 22:18:44 +02:00
Alexander Neumann
ace5cc4ed3
ls: Only skip directory nodes
...
Special case for Walk(): When SkipDir is returned for a non-dir node,
the remaining nodes for the current tree are skipped. We don't want
that.
2018-08-12 22:02:59 +02:00
Alexander Neumann
7f617cfd7f
ls: Use nodepath for filter
2018-08-12 22:01:38 +02:00
Alexander Neumann
0deb4e5994
ls: Check dirs before opening the repository
...
Users get feedback instantly, and before any expensive network calls
have been made.
2018-08-12 21:59:57 +02:00
Alexander Neumann
6b9dde3ce8
Merge pull request #1912 from askielboe/select-funcs
...
Support for different kinds of select functions
2018-08-12 19:26:36 +02:00
Alexander Neumann
c145b618d4
Add entry to changelog
2018-08-12 17:51:12 +02:00
Andreas Skielboe
b07bb3d8c3
Reject files excluded by name before calling lstat to improve scan speed
...
Adds a SelectByName method to the archive and scanner which only require
the filename as input, and can thus be run before calling lstat on the
file. Can speed up scanning significantly if a lot of filename excludes
are used.
2018-08-12 17:51:12 +02:00
Alexander Neumann
9b513312e2
Merge pull request #1946 from restic/fix-1945
...
Remove truncated files from cache
2018-08-12 17:23:56 +02:00
Alexander Neumann
bf26a3ed57
Merge pull request #1948 from restic/update-build-go
...
Update build.go
2018-08-12 17:18:11 +02:00
Alexander Neumann
77a8d931b8
Update build.go
2018-08-12 15:44:13 +02:00
Matthew Holt
11ce572894
Fix bug where some folder listings were empty
2018-08-11 17:17:43 -06:00
Matthew Holt
7a468d1226
Speed up nonrecursive queries; include exact filter match
2018-08-11 16:18:09 -06:00
Matthew Holt
00e2fd8b5f
Apply feedback and use SkipNode
2018-08-11 15:25:22 -06:00
Alexander Neumann
0f83fea007
cache: Fix test for new behavior
...
Accessing beyond the end of the file now removes the file from the cache
because it is assumed to be truncated. Usually, this means that the data
is fetched directly from the backend instead.
2018-08-11 23:11:51 +02:00
Alexander Neumann
04f7c054cd
Add entry to changelog
2018-08-11 22:54:22 +02:00
Alexander Neumann
5dd0df0162
cache: Remove files from cache which are too small
2018-08-11 22:47:01 +02:00
Alexander Neumann
abc923f693
Merge pull request #1942 from mholt/statserr
...
stats: Improve error message for bad snapshot ID (fixes #1933 )
2018-08-11 14:26:24 +02:00
Matthew Holt
ac3bd6b2eb
Replace Exitf with errors.Fatalf
2018-08-10 22:15:33 -06:00
Matthew Holt
156d85a29b
Minor fixes/tweaks; add docs
2018-08-10 22:10:02 -06:00
Matthew Holt
8c146eac4b
ls: Implement directory filter, optionally subfolders
2018-08-10 21:41:38 -06:00
Matthew Holt
6f5b0f3622
stat: Improve error message for bad snapshot ID ( fixes #1933 )
2018-08-08 16:49:36 -06:00
Alexander Neumann
beb208e159
Add VERSION for 0.9.2
2018-08-06 21:28:59 +02:00
Alexander Neumann
c221d662d0
Update manpages and auto-completion
2018-08-06 21:28:59 +02:00
Alexander Neumann
143597d445
Generate CHANGELOG.md for 0.9.2
2018-08-06 21:28:48 +02:00
Alexander Neumann
16ca837763
Create changelog/ release subdir for 0.9.2
2018-08-06 21:28:16 +02:00
Alexander Neumann
ce7fb166b3
Merge pull request #1927 from prosoitos/minor-fixes_examples
...
minor-fixes_examples
2018-08-05 12:27:03 +02:00
Marie-Helene Burle
9de51d04ec
minor-fixes_examples
...
- update link to latest restic release to install restic for `restic` user
- correct typo in path to this app
2018-08-05 02:15:17 -07:00
Alexander Neumann
dc39773cd2
Merge pull request #1924 from cuspat96/master
...
Clarify B2 Application Keys once again
2018-08-03 21:15:16 +02:00
cuspat96
30fa305c07
Clarify B2 Application Keys once again
...
This commit fixes documentation about Application Keys in Backblaze B2.
2018-08-02 21:29:29 +02:00
Alexander Neumann
686f24b578
doc: Clarify B2 application keys
2018-08-02 21:14:05 +02:00
Alexander Neumann
247d2b7215
Merge pull request #1921 from salbertson/patch-1
...
Add a "Reviewed by Hound" badge
2018-08-02 20:03:43 +02:00
Alexander Neumann
017cd113d3
Merge pull request #1922 from salbertson/patch-2
...
Use https when linking to chris.beams.io
2018-08-02 20:03:40 +02:00
Scott Albertson
f744c2553e
Use https when linking to chris.beams.io
...
Why not link to How to [Write a Git Commit Message](https://chris.beams.io/posts/git-commit/ ) using HTTPS, it's going to redirect anyway.
2018-08-01 14:59:06 -07:00
Alexander Neumann
56cd6bd495
Merge pull request #1919 from restic/update-deps
...
Update dependencies
2018-08-01 23:56:55 +02:00
Alexander Neumann
bff635bc5f
Update dependencies, enable pruning for vendor/
...
So, `dep` got an nice new feature to remove tests and non-go files from
`vendor/`, and this brings the size of the vendor directory from ~300MiB
down to ~20MiB. We don that now.
2018-08-01 21:32:15 +02:00
Alexander Neumann
3422c1ca83
Merge pull request #1729 from mholt/stats
...
Implement `restic stats` command to get more info about a repository
2018-07-31 23:24:36 +02:00
Matthew Holt
f6b2731aa5
stats: Add manual doc, improve -h doc
...
Also rename files-by-content to files-by-contents, once and for all
2018-07-31 22:54:10 +02:00
Scott Albertson
3eb5b45b41
Add a "Reviewed by Hound" badge
2018-07-31 13:53:24 -07:00
Alexander Neumann
01aacf41b5
Merge pull request #1915 from mlissner/patch-2
...
Adds warning re performance of prune
2018-07-31 22:42:20 +02:00
Mike Lissner
2caf8edc55
Add warning of the performance of prune
...
I went pretty loud with this, but I think the performance is bad enough
that it's really worth highlighting, especially since it locks the index
during the prune.
2018-07-31 22:41:40 +02:00
Alexander Neumann
3151978f58
Fix changelog type
2018-07-31 21:57:27 +02:00
Alexander Neumann
ab4ef432ff
Add entry to changelog
2018-07-31 21:29:47 +02:00
Alexander Neumann
be4f54b603
Merge pull request #1913 from restic/restic-password-stdin-message
...
Print message for password being read from stdin
2018-07-31 21:28:12 +02:00
Alexander Neumann
7260110c27
Merge pull request #1914 from restic/update-blazer
...
Add support for B2 application keys
2018-07-31 21:27:50 +02:00
Alexander Neumann
2437f11af7
Update github.com/kurin/blazer to 0.5.1
...
This adds support for B2 application keys.
2018-07-31 20:51:36 +02:00
Alexander Neumann
57873502f8
Add note about B2 application keys to the docs
2018-07-31 20:49:54 +02:00
Alexander Neumann
3678ec9ad8
Print message for password being read from stdin
...
Closes #1911
2018-07-31 20:21:18 +02:00
Alexander Neumann
a717e9e6f7
Improve message for number of bytes newly added
2018-07-31 19:08:43 +02:00
Alexander Neumann
12c797700e
make statsWalkSnapshot return a function
2018-07-27 21:44:59 +02:00
Matthew Holt
daca9d6815
Consolidate mode flags; use new Walk function
2018-07-27 21:27:40 +02:00
Matthew Holt
930602a444
Update comment now that question was answered
2018-07-27 21:27:39 +02:00
Matthew Holt
acb05e7855
Fix filepath uniqueness bug for blobs-per-file mode
2018-07-27 21:27:39 +02:00
Matthew Holt
a7b95d716a
Implement four counting modes
2018-07-27 21:27:39 +02:00
Matthew Holt
925b542eb0
Count unique files by blob sequence rather than tree ID
2018-07-27 21:27:39 +02:00
Matthew Holt
f7659bd8b0
stats: Initial implementation of stats command
2018-07-27 21:27:39 +02:00
Alexander Neumann
8c124a2b75
Merge pull request #1902 from mlissner/patch-1
...
b2 bucket names need to be unique
2018-07-23 22:58:42 +02:00
Mike Lissner
d3ad63a4ec
b2 bucket names need to be unique
...
Adds a small warning indicating that b2 bucket names need to be unique. It's an easy mistake to make, and it's surprising to get the following error if you're not accustomed to the way B2 works:
Fatal: create repository at b2:postgres failed: NewBucket: b2_create_bucket: 400: Bucket name is already in use
2018-07-23 11:48:59 -07:00
Alexander Neumann
271c50cf5c
Add entry to changelog
2018-07-23 20:15:55 +02:00
Alexander Neumann
1aeb193fd9
Merge pull request #1900 from restic/fix-1870
...
restorer: Add test for restore with include filter
2018-07-23 20:15:50 +02:00
Alexander Neumann
f715bef82f
Merge pull request #1899 from garrmcnu/check-cache-dir
...
check: Use --cache-dir argument
2018-07-22 21:03:52 +02:00
Alexander Neumann
4fc00d4120
Merge pull request #1901 from restic/update-blazer
...
Update github.com/kurin/blazer
2018-07-22 20:59:52 +02:00
Garry McNulty
7603ab7ac1
check: Update --cache-dir argument handling based on code review comments
...
The temporary cache directory is created in the specified directory, or
if not specified in the default temporary directory.
2018-07-22 18:24:11 +01:00
Alexander Neumann
36fa1f8c20
Merge pull request #1894 from restic/fix1893
...
Return error when exclude file cannot be read
2018-07-22 14:34:27 +02:00
Alexander Neumann
445fb23b6d
Rework issue templates for Bug reports and Features
2018-07-22 14:26:23 +02:00
Alexander Neumann
5f79b4cb6c
Update issue template again
2018-07-22 14:21:08 +02:00
Alexander Neumann
8e15b59347
Use underline style markup for issue/PR templates
2018-07-22 14:17:53 +02:00
Alexander Neumann
6e2e957332
Add entry to changelog
2018-07-22 14:16:08 +02:00
Alexander Neumann
7ffc03ff8f
Update github.com/kurin/blazer to 0.5.0
...
This includes support for the upcoming B2 application keys feature.
2018-07-22 14:12:02 +02:00
Alexander Neumann
44924ba043
restorer: Fix traverseTree
...
traverseTree() was meant to call enterDir() whenever a directory is
selected for restore, either explicitly or implicitly (=contains a file
which is to be restored). After restoring a file, leaveDir() is called
in reverse order for all intermediate directories so that the metadata
can be restored.
When a directory is selected implicitly, the metadata for it is
restored. This is different from the previous restorer behavior, which
created implicitly selected intermediate directories with permissions
0700 (only user can read/write it).
This commit changes the behavior back to the old one. Only a directory
is explicitly selected for restore, enterDir()/leaveDir() are called for
it. Otherwise, only visitNode() is called, so visitNode() needs to make
sure the parent directory exists. If the directory is explicitly
included, leaveDir() will then restore the metadata correctly.
When we decide to change the behavior (restore metadata for all
intermediate directories, even if selected implicitly), we should do
that in the selection functions, not here.
This finally resolves #1870
2018-07-21 23:24:40 +02:00
Alexander Neumann
ce19f26948
restorer: Add tests for traverseTree
2018-07-21 23:24:40 +02:00
Alexander Neumann
74016d5981
restorer: Fix return of saveSnapshot
2018-07-21 23:24:40 +02:00
Alexander Neumann
57636a4573
restorer: Run tests in the same package
2018-07-21 23:24:40 +02:00
Alexander Neumann
4f6d2502f7
restorer: Add test for restore with include filter
2018-07-21 23:24:40 +02:00
Garry McNulty
f1f69bc648
check: Use --cache-dir argument
...
Closes #1880
2018-07-20 20:51:20 +01:00
Alexander Neumann
d7551d7b0c
Add entry to changelog
2018-07-18 21:41:20 +02:00
Alexander Neumann
fb74de6360
Return an error when exclude files cannot be read
2018-07-18 21:39:07 +02:00
Alexander Neumann
67535e00a8
Merge pull request #1889 from ProactiveServices/patch-3
...
doc: Minor grammar, RST syntax fixes
2018-07-18 21:22:10 +02:00
Alexander Neumann
19592285eb
Merge pull request #1888 from ProactiveServices/patch-2
...
doc: Minor grammar fixes
2018-07-18 21:21:52 +02:00
Alexander Neumann
f64862722a
Merge pull request #1887 from restic/disable-error-size
...
checker: Disable size check for now
2018-07-18 21:19:54 +02:00
Adam Piggott
254239c2a9
doc: Minor grammar, RST syntax fixes
...
Fix unescaped backslash
Fix wording of Windows installation
2018-07-18 02:28:23 +01:00
Adam Piggott
cce1a1f768
doc: Minor grammar fixes
2018-07-18 02:25:31 +01:00
Alexander Neumann
754482fe6c
checker: Disable size check for now
2018-07-15 21:52:38 +02:00
Alexander Neumann
73153dbd3f
Merge pull request #1885 from restic/create-restore-target
...
restore: Make sure the target directory exists
2018-07-15 16:28:25 +02:00
Alexander Neumann
92421ec47f
restore: Make sure target directory exists
2018-07-15 16:02:04 +02:00
Alexander Neumann
9acc9243ba
Add test for not-existing top-level dir and top-level file
2018-07-15 16:00:26 +02:00
Alexander Neumann
df64998649
Merge pull request #1882 from duzvik/aws-credentials-priority
...
Change AWS credentials priority, to accept AWS_SESSION_TOKEN
2018-07-14 20:48:42 +02:00
Alexander Neumann
64d27eed86
doc: Improve dump to stdout
...
Closes #1884
2018-07-14 20:45:52 +02:00
Alexander Neumann
abb18a830c
Fix test
2018-07-14 11:51:34 +02:00
denis.uzvik
1e42f4f300
S3 backend: accept AWS_SESSION_TOKEN
2018-07-12 16:18:19 +03:00
Alexander Neumann
bd742ddb69
cache: Don't recreate CACHEDIR.TAG
2018-07-08 12:05:12 +02:00
Alexander Neumann
b511f4dce2
Improve help message for check
2018-07-05 22:19:08 +02:00
Alexander Neumann
7961740dcc
Fix link
2018-07-05 21:03:40 +02:00
Alexander Neumann
dc3032c360
Mention that AppsCode is sponsoring backend tests
2018-07-05 21:01:57 +02:00
Alexander Neumann
44fb2a860f
Merge pull request #1861 from McKael/fix_find_ignore_case
...
Fix find -i (case-insensitive search)
2018-06-24 21:08:03 +02:00
Mikael Berthe
fbf8073dfc
Fix find -i (case-insensitive search)
2018-06-24 19:35:11 +02:00
Alexander Neumann
7ddf91b65c
Merge pull request #1772 from ifedorenko/restore-verify
...
Restore verify
2018-06-23 14:50:29 +02:00
Alexander Neumann
8dae2de2ce
Merge pull request #1858 from restic/fix-1857
...
Allow excluding files with $ via --exclude-file
2018-06-22 21:22:23 +02:00
Alexander Neumann
03a0377410
Merge pull request #1856 from stkw0/master
...
Ignore ExcludeOtherFs if Stdin is true
2018-06-22 20:49:34 +02:00
Alexander Neumann
025ec9dff5
Allow excluding files with $ via --exclude-file
...
Previously it wasn't possbile to exclude files with a literal dollar
sign (`$`) via exclude files, now users can write `$$` for that.
2018-06-22 20:46:04 +02:00
David Roman
2384c1cee7
Ignore ExcludeOtherFs if Stdin is true
...
Closes : #1807
2018-06-21 23:12:38 +02:00
Alexander Neumann
bb2ad76833
Merge pull request #1855 from restic/fix-1854
...
Allows saving files/dirs on different file systems together with `--one-file-system`.
2018-06-21 20:48:33 +02:00
Alexander Neumann
30cfd13328
Add changelog
2018-06-20 23:05:09 +02:00
Alexander Neumann
9ffc26883a
archiver: Unroll tree
2018-06-20 22:56:41 +02:00
Alexander Neumann
83c51db903
fs: Add helper functions ReadDir/ReadDirNames
2018-06-20 22:53:53 +02:00
Alexander Neumann
d30d5d4473
Merge pull request #1853 from skriss/list-keys-json-output
...
add JSON output support for restic key list cmd
2018-06-19 21:28:45 +02:00
Steve Kriss
5088905502
add JSON output support for restic key list cmd
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-06-18 15:26:26 -07:00
Alexander Neumann
ae72b438b0
doc: Fix typo
2018-06-18 22:19:01 +02:00
Alexander Neumann
ddf2065ce2
doc: Split references out into smaller files
...
Closes #1852
2018-06-18 22:17:48 +02:00
Alexander Neumann
228a970540
doc: Add paragraph about finding path in file
2018-06-17 20:49:11 +02:00
Alexander Neumann
c7a8086c19
Merge pull request #1851 from restic/fix-1849
...
walker: Don't ignore empty trees by default
2018-06-17 12:25:33 +02:00
Alexander Neumann
c2c06ae2c9
walker: Don't ignore empty trees by default
...
Closes #1849
2018-06-17 09:49:03 +02:00
Alexander Neumann
1824168aa3
Merge pull request #1848 from iquiw/netbsd-support
...
Support NetBSD without fuse
2018-06-16 17:12:20 +02:00
Iku Iwasa
350761f1ba
Add cross-compilation for netbsd/386 and netbsd/amd64
2018-06-16 21:05:26 +09:00
Alexander Neumann
3231945a85
Merge pull request #1846 from cbergmann/patch-1
...
Clarify live status display
2018-06-16 11:19:58 +02:00
Iku Iwasa
f080142137
Support NetBSD without fuse
2018-06-16 15:55:04 +09:00
Clemens Bergmann
ff785924de
Clarify live status display
...
When I backup one of my filesystems which has a lot of Hard Links (Backup directory of burp) the live status shows me 4.5 TB but it only takes up 1.2 TB of space in the repository. This is confusing because my repo is on S3 and I feared a huge Bill. This change should clarify this.
2018-06-15 12:41:48 +02:00
Alexander Neumann
393a7266c9
Merge pull request #1845 from dimejo/patch-2
...
doc: enhance FAQ about AV software on Windows
2018-06-14 20:48:15 +02:00
Alex JOST
cb8d2d3df5
doc: enhance FAQ about AV software on Windows
...
As discussed in #1840 , realtime protection of AV software can cause serious performance degradation on Windows OS.
2018-06-14 19:39:04 +02:00
Alexander Neumann
a884ce1566
Merge pull request #1841 from jernst/master
...
Added documentation about what happens if you run out of space during a backup
2018-06-14 19:13:31 +02:00
Alexander Neumann
5ae8316c24
Merge pull request #1844 from gsanchietti/patch-1
...
Documentation: minor RST syntax fixes
2018-06-14 19:12:57 +02:00
Giacomo Sanchietti
85eca1b5e9
Documentation: minor RST syntax fixes
...
- Fix bad link syntax
- Fix compilation warning
2018-06-14 15:01:49 +02:00
Johannes Ernst
a1536f38fa
Fixed typo and grammar per feedback on PR.
2018-06-13 00:24:42 +00:00
Johannes Ernst
888f52afd1
Added documentation about what happens if you run out of space
...
during a backup, based on conversation on the forum:
https://forum.restic.net/t/limited-backup-destination-space/733/6
2018-06-11 21:20:08 +00:00
Igor Fedorenko
e206680947
restore: New --verify flag to verify restored files content
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-06-11 07:57:22 -04:00
Igor Fedorenko
5fa6dc53cb
Refactor: introduced restorer tree visitor
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-06-11 07:57:22 -04:00
Igor Fedorenko
26be094f28
Refactor: moved restorer to separate package
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-06-11 07:57:22 -04:00
Alexander Neumann
e4c0d77bdd
Add VERSION for 0.9.1
2018-06-10 11:31:03 +02:00
Alexander Neumann
1dd655dad2
Generate CHANGELOG.md for 0.9.1
2018-06-10 11:30:53 +02:00
Alexander Neumann
581d0984fe
Fix changelog entry
2018-06-10 11:29:57 +02:00
Alexander Neumann
e62add84bc
Move changelog files for 0.9.1
2018-06-10 11:22:32 +02:00
Alexander Neumann
63779c1eb4
Merge pull request #1839 from restic/fix-find
...
Fix find, do not skip some snapshots
2018-06-10 10:08:47 +02:00
Alexander Neumann
c204382ea9
Revert "Fix integration tests on Windows"
...
This reverts commit 33dbd0ba5c
.
2018-06-10 00:01:28 +02:00
Alexander Neumann
321efec60c
Fix integration tests on Windows
2018-06-10 00:00:22 +02:00
Alexander Neumann
33dbd0ba5c
Fix integration tests on Windows
2018-06-09 23:58:44 +02:00
Alexander Neumann
9a73869c27
Update docs for RHEL/CentOS
2018-06-09 23:41:40 +02:00
Alexander Neumann
8f26fe271c
ls: Use walker for ls
2018-06-09 23:35:20 +02:00
Alexander Neumann
251335f124
Add entry to changelog
2018-06-09 23:35:20 +02:00
Alexander Neumann
081743d0a5
find: Use walker.Walk
2018-06-09 23:35:20 +02:00
Alexander Neumann
3a86f4852b
Add walker for trees in the repo
2018-06-09 23:35:20 +02:00
Alexander Neumann
14aead94b3
filter: Allow double wildcard in ChildMatch
2018-06-09 23:18:13 +02:00
Alexander Neumann
ce01ca30d6
find: Correct tree pruning optimization
...
The `find` command will now take care to only mark trees as "not found"
when the pattern couldn't be found within any subtree.
Closes #1825 , #1823
2018-06-09 18:59:13 +02:00
Alexander Neumann
e2d347a698
find: Use OS independent slash-based format
2018-06-09 18:58:13 +02:00
Alexander Neumann
42ebb0a0a6
backup: Parse timestamp earlier
2018-06-09 18:21:12 +02:00
Alexander Neumann
419acad3c3
Merge pull request #1837 from restic/fix-1833
...
cache: Ensure failed downloads are retried
2018-06-09 18:20:21 +02:00
Alexander Neumann
810b5ea076
Add entry to changelog
2018-06-09 17:55:51 +02:00
Alexander Neumann
fc5439a37a
cache: Ensure failed downloads are retried
...
This fixes #1833 , which consists of two different bugs:
* The `defer` in `cacheFile()` may remove a channel from the
`inProgress` map although it is not responsible for downloading the
file
* If the download fails, goroutines waiting for the file to be cached
assumed that the file was there, there was no way to signal the
error.
2018-06-09 17:50:56 +02:00
Alexander Neumann
48aab8bd65
Merge pull request #1836 from restic/update-blazer
...
Update github.com/kurin/blazer
2018-06-09 14:31:12 +02:00
Alexander Neumann
6fbcd1694b
Add entry to changelog
2018-06-09 14:31:02 +02:00
Alexander Neumann
494fe2a8b5
Merge pull request #1835 from restic/fix-1834
...
backup: Fix deadlock
2018-06-09 14:28:16 +02:00
Alexander Neumann
f761068f4e
Update github.com/kurin/blazer
2018-06-09 12:32:18 +02:00
Alexander Neumann
c44e808aa5
backup: Fix deadlock
...
When the archiver is faster than the scanner, restic deadlocks. This
commit adds a `finished` channel to the struct in `ui/backup.go` so that
scanner results are ignored when the archiver is already finished.
Closes #1834
2018-06-09 12:15:19 +02:00
Alexander Neumann
ab37c6095a
Merge pull request #1821 from michaelkoetter/fix-1795
...
#1795 use unix.IoctlGetWinsize to get terminal size
2018-06-07 20:20:06 +02:00
Michael Kötter
d6fd94e49d
Don't run Solaris build for go1.9
2018-06-04 15:04:50 +02:00
Michael Kötter
53040a2e34
add "solaris/amd64" to cross-compile archs
2018-06-04 12:51:34 +02:00
Alexander Neumann
cfc19b4582
Merge pull request #1828 from restic/handle-s3-list-errors
...
s3: Pass list errors up to the caller
2018-06-02 10:34:49 +02:00
Alexander Neumann
141fabdd09
s3: Pass list errors up to the caller
2018-06-01 22:15:23 +02:00
Alexander Neumann
d49ca42771
Merge pull request #1827 from restic/azure-large-files
...
azure: Support uploading large files
2018-06-01 18:37:26 +02:00
Alexander Neumann
f6fded729d
Add entry to changelog
2018-06-01 14:52:16 +02:00
Alexander Neumann
465700595c
azure: Support uploading large files
...
Closes #1822
2018-06-01 14:52:16 +02:00
Alexander Neumann
0fcd9d6926
Merge pull request #1824 from rfjakob/ssh_command_exited
...
sftp: persist "ssh command exited" error
2018-05-31 21:26:39 +02:00
Jakob Unterwurzacher
dd3b9910ee
sftp: persist "ssh command exited" error
...
If our ssh process has died, not only the next, but all subsequent
calls to clientError() should indicate the error.
restic output when the ssh process is killed with "kill -9":
Save(<data/afb68adbf9>) returned error, retrying after 253.661803ms: Write: failed to send packet header: write |1: file already closed
Save(<data/afb68adbf9>) returned error, retrying after 580.752212ms: ssh command exited: signal: killed
Save(<data/afb68adbf9>) returned error, retrying after 790.150468ms: ssh command exited: signal: killed
Save(<data/afb68adbf9>) returned error, retrying after 1.769595051s: ssh command exited: signal: killed
[...]
error in cleanup handler: ssh command exited: signal: killed
Before this patch:
Save(<data/de698d934f>) returned error, retrying after 252.84163ms: Write: failed to send packet header: write |1: file already closed
Save(<data/de698d934f>) returned error, retrying after 660.236963ms: OpenFile: failed to send packet header: write |1: file already closed
Save(<data/de698d934f>) returned error, retrying after 568.049909ms: OpenFile: failed to send packet header: write |1: file already closed
Save(<data/de698d934f>) returned error, retrying after 2.428813824s: OpenFile: failed to send packet header: write |1: file already closed
[...]
error in cleanup handler: failed to send packet header: write |1: file already closed
2018-05-30 19:28:14 +02:00
Alexander Neumann
185b60c22b
Document project governance
2018-05-28 22:29:06 +02:00
Michael Kötter
589c23dc23
#1795 use unix.IoctlGetWinsize to get terminal size
2018-05-27 23:44:48 +02:00
Alexander Neumann
0183fea926
Merge pull request #1820 from restic/fix-1803
...
termstatus: Fix panic for non-terminal runs
2018-05-27 13:08:25 +02:00
Alexander Neumann
7d9642523b
termstatus: Fix panic for non-terminal runs
...
Closes #1803
2018-05-27 12:52:01 +02:00
Alexander Neumann
4bf07a74a0
Merge pull request #1806 from mholt/patch-1
...
doc: Clarify multiple forget policies get ORed
2018-05-26 11:03:22 +02:00
Alexander Neumann
2a976d795f
b2: Remove extra error check
2018-05-26 10:12:30 +02:00
Alexander Neumann
1892b314f8
Merge pull request #1815 from restic/update-blazer
...
Update github.com/kurin/blazer
2018-05-25 20:46:35 +02:00
Alexander Neumann
b7bed406b9
Update github.com/kurin/blazer
2018-05-25 20:26:26 +02:00
Matt Holt
ee4202f7c3
doc: Clarify multiple forget policies get ORed
2018-05-23 17:28:02 -06:00
Alexander Neumann
4cd28713b6
Merge pull request #1802 from restic/rclone-add-limits
...
rclone: Add limiting bandwidth to the rclone backend
2018-05-22 21:19:52 +02:00
Alexander Neumann
e3fe87f269
Remove superseded feature from the CHANGELOG
...
For a discussion please see https://github.com/restic/restic/issues/1796
2018-05-22 20:57:07 +02:00
Alexander Neumann
a02698fcdd
Add entry to changelog
2018-05-22 20:48:29 +02:00
Alexander Neumann
bfd923e81e
rclone: Respect bandwith limits
2018-05-22 20:48:17 +02:00
Alexander Neumann
20bfed5985
Update build.go
2018-05-21 20:31:19 +02:00
Alexander Neumann
e40191942d
Add VERSION for 0.9.0
2018-05-21 15:57:32 +02:00
Alexander Neumann
abd34ab76f
Update manpages and auto-completion
2018-05-21 15:57:32 +02:00
Alexander Neumann
4b43a269ee
Generate CHANGELOG.md for 0.9.0
2018-05-21 15:57:22 +02:00
Alexander Neumann
e2b7dc6528
Move changelog files for the 0.9.0 release
2018-05-21 15:57:02 +02:00
Alexander Neumann
d2431b667f
Merge pull request #1794 from restic/fix-1789
...
Update docs, clarify --cacert
2018-05-21 12:35:06 +02:00
Alexander Neumann
b70fdf61c4
Merge pull request #1791 from restic/fix-1790
...
archiver: Fix backup from stdin
2018-05-21 12:07:55 +02:00
Alexander Neumann
e6f25c4811
Update docs, clarify --cacert
...
Closes #1789
2018-05-21 12:06:30 +02:00
Alexander Neumann
adb682bc43
archiver: Don't open files with O_NONBLOCK
...
This is not necessary any more, we're doing an lstat() before opening
an item, so we already known it's a file and not a pipe.
2018-05-20 16:11:51 +02:00
Alexander Neumann
1e9744c9a4
archiver: Refuse to save an empty snapshot
2018-05-20 16:11:51 +02:00
Alexander Neumann
9a02f17cc2
archiver: Add tests for Save() for fs.Reader
2018-05-20 16:11:36 +02:00
Alexander Neumann
c284712cae
Merge pull request #1784 from restic/improve-error-list
...
list: Improve error message
2018-05-18 21:53:09 +02:00
Alexander Neumann
2dbdf381b2
Merge pull request #1782 from skriss/add-s3-file-creds
...
Add S3 file creds and reorder creds chain
2018-05-18 21:52:54 +02:00
Alexander Neumann
a1a49ce211
Merge pull request #1787 from tyll/patch-1
...
Use more descriptive long option
2018-05-18 21:51:24 +02:00
Till Maas
3252e4200c
Use more descriptive long option
...
-r could also mean recursive so use --repo to be clear.
2018-05-18 19:25:56 +02:00
Alexander Neumann
8d9d218d1c
list: Improve error message
...
Before:
$ restic list
Fatal: type not specified
After:
$ restic list
Fatal: type not specified, usage: list [blobs|packs|index|snapshots|keys|locks]
Closes #1783
2018-05-17 19:41:56 +02:00
Steve Kriss
0785fbd418
changelog entry
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-05-17 10:09:38 -07:00
Steve Kriss
b358dd369b
S3: rearrange credentials chain to be standard
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-05-16 16:49:33 -07:00
Steve Kriss
d67b9a32c6
S3: add file credentials to chain
...
Signed-off-by: Steve Kriss <steve@heptio.com >
2018-05-16 16:35:14 -07:00
Alexander Neumann
ecfe59235e
Merge pull request #1781 from McKael/fix_restick_backup_rejectByDevice
...
Fix restic backup --one-file-system /
2018-05-16 21:58:58 +02:00
Mikael Berthe
a868a30f4d
Fix restic backup --one-file-system /
...
This patch should fix the following panic when trying to backup the
root filesystem with thre --one-file-system flag:
% restic backup --one-file-system /
(...)
panic: item /, device id 2082 not found, allowedDevs: map[/:2082]
2018-05-16 13:44:14 +02:00
Alexander Neumann
347a645450
Fix double error message
2018-05-15 11:03:33 +02:00
Alexander Neumann
9f5565b0fc
Merge pull request #1735 from mholt/forget-max-age
...
forget: Add --max-age policy to set hard cutoff for removing snapshots
2018-05-14 21:18:06 +02:00
Alexander Neumann
fd979ab4c5
Merge pull request #1779 from restic/improve-error
...
Improve error message for readdir/readdirnames
2018-05-14 21:17:57 +02:00
Alexander Neumann
375868edcf
Add documentation
2018-05-13 12:54:23 +02:00
Alexander Neumann
060d8b57e0
Restructure TestApplyPolicy
2018-05-13 12:48:42 +02:00
Alexander Neumann
cc627e832b
Add custom Duration type
2018-05-13 12:48:42 +02:00
Alexander Neumann
5a0f0e3faa
Add support for keeping a range of snapshots
2018-05-13 12:48:42 +02:00
Matthew Holt
b52f2aa9a4
forget: Add policy to keep snapshots before a date
2018-05-13 12:48:10 +02:00
Alexander Neumann
60ea2435be
Improve error message for readdir/readdirnames
...
As mentioned in the forum[1], restic does not include the dir name when
readdir/readdirnames fails.
[1] https://forum.restic.net/t/readdirnames-readdirent-no-such-file-or-directory/653
2018-05-13 10:34:50 +02:00
Alexander Neumann
159badf5ba
Merge pull request #1778 from restic/fix-1771
...
archiver: Improve error handling
2018-05-13 00:13:54 +02:00
Alexander Neumann
903a3a31dc
Merge pull request #1776 from restic/fix-1775
...
Always use cleaned path for excludes
2018-05-13 00:13:52 +02:00
Alexander Neumann
548227e6df
Merge pull request #1773 from ExoUNX/patch-1
...
Fix small typo
2018-05-13 00:13:49 +02:00
Alexander Neumann
cd03275005
Merge pull request #1774 from ExoUNX/patch-2
...
Fix formatting
2018-05-13 00:13:46 +02:00
Alexander Neumann
e43c9202a6
archiver: Make sure backend error is passed up
2018-05-12 23:55:59 +02:00
Alexander Neumann
c5e75d1c98
archiver: Add test for early abort on unhandled error
2018-05-12 23:55:59 +02:00
Alexander Neumann
526956af35
archiver: Read files/dirs in order
2018-05-12 23:55:54 +02:00
Alexander Neumann
256104111d
archiver: Clarify names
2018-05-12 23:55:54 +02:00
Alexander Neumann
21c83b1725
archiver: Add high-level documentation
2018-05-12 23:55:54 +02:00
Alexander Neumann
581c62ee72
archiver: Improve error handling
...
This commit changes how the worker goroutines for saving e.g. blobs
interact. Before, it was possible to get stuck sending an instruction to
archive a file or dir when no worker goroutines were available any more.
This commit introduces a `done` channel for each of the worker pools,
which is set to the channel returned by `tomb.Dying()`, so it is closed
when the first worker returned an error.
2018-05-12 23:55:54 +02:00
Alexander Neumann
ef7747313d
backup: Use absolute paths for allowed devices
2018-05-11 21:32:44 +02:00
Alexander Neumann
18d4ac2fd9
backup: Always use cleaned path for excludes
2018-05-11 21:32:41 +02:00
Alexander Neumann
9180e2c48a
Remove unneeded file excludes
2018-05-11 21:26:10 +02:00
Gaige Lama
a63989afcd
Ran gofmt on backend.go
...
I ran gofmt on backend.go, this appears to valid edit.
2018-05-11 11:07:16 -04:00
Gaige Lama
d3c0bd6d0e
Fix small typo
...
"explicitely" should be "explicitly"
2018-05-11 10:55:12 -04:00
Alexander Neumann
fcfa6f0355
build: Add option to enable PIE build mode
2018-05-11 09:50:10 +02:00
Alexander Neumann
580f90d745
Merge pull request #1770 from restic/handle-blob-save-errors
...
archiver: Correct error handling
2018-05-10 22:36:00 +02:00
Alexander Neumann
c7b624ba0d
Merge pull request #1769 from McKael/cat_snapshot_stacktrace
...
cat snapshot: Do not display a stack trace with invalid IDs
2018-05-10 21:41:04 +02:00
Alexander Neumann
ca4af43c03
archiver: Return low-level errors
...
This commit changes the archiver so that low-level errors saving data to
the repo are returned to the caller (instead of being handled by the
error callback function). This correctly bubbles up errors like a full
temp file system and makes restic abort early and makes all other worker
goroutines exit.
2018-05-10 21:30:09 +02:00
Alexander Neumann
1f2463f42e
archiver: Return correct error
2018-05-10 20:48:00 +02:00
Alexander Neumann
157c854d04
backup: Remove errored files from status display
2018-05-10 20:48:00 +02:00
Mikael Berthe
ffc276a603
cat: Do not display a stack trace
...
Don't show a stack trace when "restic cat snapshot" is invoked with
invalid/nonexistent IDs.
2018-05-10 19:22:46 +02:00
Alexander Neumann
e42b7db008
Merge pull request #1767 from restic/update-blazer
...
Update github.com/kurin/blazer
2018-05-08 22:48:54 +02:00
Alexander Neumann
024148cac9
Update github.com/kurin/blazer
2018-05-08 22:33:55 +02:00
Alexander Neumann
8943741a0b
Fix code block
2018-05-08 20:36:58 +02:00
Alexander Neumann
95c5517c35
Merge pull request #1765 from restic/update-deps
...
Update golang.org/x/{sys,crypto}
2018-05-08 19:34:30 +02:00
Alexander Neumann
06179a7e81
Change URL for Travis
2018-05-08 19:13:39 +02:00
Alexander Neumann
cf1fb50f9c
Merge pull request #1764 from restic/fix-display
...
Fix display
2018-05-07 23:30:50 +02:00
Alexander Neumann
6793300850
Raise minimum Go version to 1.9
...
The golang.org/sys/crypto library uses math/bits, which was only
introduced in Go 1.9.
2018-05-07 23:28:48 +02:00
Alexander Neumann
2cbdfbf652
Update golang.org/x/{sys,crypto}
2018-05-07 22:47:39 +02:00
Alexander Neumann
b2208bb9c2
Rework termstatus
...
This now keeps the cursor at the first column of the first status line
so that messages printed to stdout or stderr by some other part of the
progarm will still be visible. The message will overwrite the status
lines, but those are easily reprinted on the next status update.
2018-05-07 21:40:07 +02:00
Alexander Neumann
4c25495d68
backup: Hide percent until total size is known
2018-05-06 20:20:25 +02:00
Alexander Neumann
abdd59ea1b
Merge pull request #1757 from restic/fix-debug-1755
...
Fix panic for nil-pointer dereference
2018-05-03 21:11:37 +02:00
Alexander Neumann
05ca903d48
Mention that first backup will take longer
2018-05-03 20:57:30 +02:00
Alexander Neumann
fd77646f8b
Fix panic for nil-pointer dereference
...
Closes #1755
2018-05-03 20:49:30 +02:00
Alexander Neumann
2a67258867
Merge pull request #1754 from restic/fix-quiet
...
backup: Disable status output for --quiet
2018-05-02 21:42:17 +02:00
Alexander Neumann
fca4fe4459
backup: Disable status output for --quiet
2018-05-02 21:24:18 +02:00
Alexander Neumann
26757ae2e5
Merge pull request #1750 from restic/archiver-fix-small-things
...
backup: Tune user interface a bit
2018-05-01 23:15:54 +02:00
Alexander Neumann
9d6890a236
Merge pull request #1751 from restic/fix-archiver
...
archiver: Use lstat before open/fstat
2018-05-01 23:15:32 +02:00
Alexander Neumann
2218ecd049
archiver: Use lstat before open/fstat
...
The previous code tried to be as efficient as possible and only do a
single open() on an item to save, and then fstat() on the fd to find out
what the item is (file, dir, other). For normal files, it would then
start reading the data without opening the file again, so it could not
be exchanged for e.g. a symlink.
This behavior starts the watchdog on my machine when /dev is saved
with restic, and after a few seconds, the machine reboots.
This commit reverts the behavior to the strategy the old archiver code
used: run lstat(), then decide what to do. For normal files, open the
file and then run fstat() on the fd to verify it's still a normal file,
then start reading the data.
The downside is that for normal files we now do two stat() calls
(lstat+fstat) instead of only one. On the upside, this does not start
the watchdog. :)
2018-05-01 23:05:50 +02:00
Alexander Neumann
d0974c155d
backup: Tune user interface a bit
...
Make non-verbose mode a bit more verbose.
2018-05-01 22:18:32 +02:00
Alexander Neumann
8026e6fdfb
Merge pull request #1749 from restic/add-cache-cmd
...
Add 'cache' command to list and cleanup cache dirs
2018-05-01 21:25:52 +02:00
Alexander Neumann
01f9662614
Merge pull request #1748 from restic/detect-bom
...
Respect Encoding and Byte Order Mark when reading text files
2018-05-01 21:25:46 +02:00
Alexander Neumann
f928aeec34
Add 'cache' command
2018-05-01 16:27:44 +02:00
Alexander Neumann
f77bc0fae8
Use textfile.Read() to read files
...
This converts the text to UTF-8 and removes a Byte Order Mark.
2018-05-01 16:25:53 +02:00
Alexander Neumann
eb6650b201
Add textfile
2018-05-01 14:38:59 +02:00
Alexander Neumann
bc68d55e94
fs: Add TestTempFile
2018-05-01 14:38:41 +02:00
Alexander Neumann
ecbbd851a1
Merge pull request #1744 from restic/fix-parent-detect
...
backup: Clean target paths before finding parent
2018-05-01 11:13:19 +02:00
Alexander Neumann
336719b058
Merge pull request #1746 from brycied00d/fix_tls-client-cert_argument_parsing
...
http backend: Parse the correct argument when loading --tls-client-cert
2018-05-01 10:22:10 +02:00
Bryce Chidester
e9f1721678
http backend: Parse the correct argument when loading --tls-client-cert
...
Previously, the function read from ARGV[1] (hardcoded) rather than the
value passed to it, the command-line argument as it exists in globalOptions.
Resolves #1745
2018-04-30 15:21:09 -07:00
Alexander Neumann
64d98945a6
backup: Clean target paths before finding parent
...
This resolves an issue described in the forum where restic could not
find a parent snapshot if the target path ends with a slash:
https://forum.restic.net/t/new-archiver-code-please-test/623/23
2018-04-30 22:03:11 +02:00
Alexander Neumann
84f82dae1a
Correct typo
...
Closes #1743
2018-04-30 21:41:30 +02:00
Alexander Neumann
6bfd9f833b
Merge pull request #1742 from tbm/typos
...
Fix typos in section on rclone
2018-04-30 19:21:19 +02:00
Martin Michlmayr
bb1a22d1e6
Fix typos in section on rclone
2018-04-30 18:32:10 +02:00
Alexander Neumann
438719f269
Merge pull request #1741 from restic/improve-archiver
...
Improve archiver, fix hang on fifos
2018-04-30 16:00:10 +02:00
Alexander Neumann
c83c03ed63
archiver: Fix blocking on pipes
2018-04-30 15:34:58 +02:00
Alexander Neumann
19b9c881ca
fs: Add O_NONBLOCK
2018-04-30 15:34:58 +02:00
Alexander Neumann
4e34325035
archiver: Process dirs concurrently
2018-04-30 15:13:28 +02:00
Alexander Neumann
78bd591c7c
archiver: Improve buffer pool
2018-04-30 15:13:28 +02:00
Alexander Neumann
39ac12f6ea
archiver: Correct comment
2018-04-30 14:19:07 +02:00
Alexander Neumann
400730afca
archiver: Improve memory usage, tune buffer pool
2018-04-30 14:19:07 +02:00
Alexander Neumann
d80e108b03
backup: Clear status lines on finish
2018-04-30 14:19:07 +02:00
Alexander Neumann
846c2b6869
backup: Fix ETA calculation for >= 100%
2018-04-30 14:19:07 +02:00
Alexander Neumann
d8bbe5dc84
Print repository ID after opening
2018-04-30 14:19:07 +02:00
Alexander Neumann
d926b9fd80
Add profile build flag
2018-04-30 14:19:04 +02:00
Alexander Neumann
4ba8d40282
Add block profile option
2018-04-30 14:18:45 +02:00
Alexander Neumann
4fb1401266
Fix --cacert help text
2018-04-29 13:17:33 +02:00
Alexander Neumann
6d4c40f8d0
Add section about file read concurrency
2018-04-28 22:39:56 +02:00
Alexander Neumann
56e394ac33
Merge pull request #1494 from restic/new-archiver
...
New archiver code
2018-04-28 22:24:39 +02:00
Alexander Neumann
c3cc5d7cee
Update docs
2018-04-28 22:08:11 +02:00
Alexander Neumann
6b12b92339
Add entry to changelog
2018-04-28 22:08:11 +02:00
Alexander Neumann
16c314ab7f
termstatus: Don't print status if in background
2018-04-28 22:08:11 +02:00
Alexander Neumann
1449d7dc29
Remove background checking code
2018-04-28 22:08:11 +02:00
Alexander Neumann
0e78ac92d8
Use new archiver code for backup
2018-04-28 22:08:11 +02:00
Alexander Neumann
c703d21d55
Vendor gopkg.in/tomb.v2
2018-04-27 21:42:15 +02:00
Alexander Neumann
1af96fc6dd
Add termstatus
2018-04-27 21:42:15 +02:00
Alexander Neumann
9fac2ca832
Add flags to set verbosity
2018-04-25 14:42:45 +02:00
Alexander Neumann
a5c0cf2324
Add workaround for symlinked temp dir on darwin
...
Chdir to the tempdir, then use os.Getwd() to get the name that
filepath.Abs() uses (and stores in the Snapshot).
2018-04-25 14:42:45 +02:00
Alexander Neumann
38926d8576
Use new archiver code in tests
2018-04-25 14:42:45 +02:00
Alexander Neumann
f279731168
Add new archiver code
2018-04-25 14:42:45 +02:00
Alexander Neumann
76b616451f
Remove unneeded code
2018-04-23 21:40:33 +02:00
Alexander Neumann
fd12a3af20
Remove old archiver code
2018-04-23 21:40:33 +02:00
Alexander Neumann
3cd92efdcf
Vendor github.com/mattn/go-isatty
2018-04-22 11:37:05 +02:00
Alexander Neumann
b804279fe8
integration tests: Don't print anything to stdout
2018-04-22 11:37:05 +02:00
Alexander Neumann
a56b8fad87
repository: Improve buffer pooling
2018-04-22 11:37:05 +02:00
Alexander Neumann
4c00efd4bf
Vendor go-cmp
2018-04-22 11:37:05 +02:00
Alexander Neumann
b6f98bdb02
node: Fill minimal info
2018-04-22 11:37:05 +02:00
Alexander Neumann
c4b2486b7c
fs: Add interface and FS implementations
...
This adds two implementations of the new `FS` interface: One for the local
file system (`Local`) and one for a single file read from an
`io.Reader` (`Reader`).
2018-04-22 11:37:05 +02:00
Alexander Neumann
83ca08245b
checker: Check metadata size and blob sizes
2018-04-22 11:37:05 +02:00
Alexander Neumann
a069467e72
ls: Improve output
2018-04-22 11:37:05 +02:00
Alexander Neumann
6a7c23d2ae
tree: Add convenience functions
2018-04-22 11:37:05 +02:00
Alexander Neumann
cc847a3d6d
tree: Improve error for pre-existing node
2018-04-22 11:37:05 +02:00
Alexander Neumann
baebf45e2e
FindLatestSnapshot: Use absolute paths
2018-04-22 11:37:05 +02:00
Alexander Neumann
fa4f438bc1
snapshot: Do not modify slice of paths
2018-04-22 11:37:05 +02:00
Alexander Neumann
4e0b2a8e3a
snapshot: correct error handling for filepath.Abs
2018-04-22 11:37:05 +02:00
Alexander Neumann
0532f08048
Add test.Helper, also works with Go 1.8
2018-04-22 11:37:05 +02:00
Alexander Neumann
a472868e06
fs: Add TestChdir()
2018-04-22 11:37:05 +02:00
Alexander Neumann
e4fdc5eb76
fs: Add IsRegularFile()
2018-04-22 11:37:05 +02:00
Alexander Neumann
09365cc4ea
Add --trace-profile
2018-04-22 11:37:05 +02:00
Eri Bastos
2aa6b49651
Return exit code 130 when SIGINT is received
2018-04-20 21:09:50 +02:00
Alexander Neumann
7877797c7e
Merge pull request #1720 from mholt/new-password-flag
...
key: Add --new-password flag for non-interactive password changes
2018-04-20 14:52:41 +02:00
Matthew Holt
1a26355dbe
Add changelog file
2018-04-20 14:29:39 +02:00
Matthew Holt
c5829e9ffc
key: Add flag for non-interactive password changes
2018-04-20 14:29:39 +02:00
Alexander Neumann
b5b246edd5
Add entry to changelog
2018-04-20 14:23:37 +02:00
Alexander Neumann
ee5e14d536
Merge pull request #1731 from restic/fix-1730
...
Do not restore sockets, correct error handling
2018-04-20 14:21:01 +02:00
Alexander Neumann
09bd924710
Do not restore sockets, correct error handling
...
Closes #1730
2018-04-20 13:53:11 +02:00
Alexander Neumann
a9c2e84ccd
Merge pull request #1718 from ardichoke/patch-1
...
Update Autocompletion Generation Documentation
2018-04-13 22:23:37 +02:00
Ryan DeShone
a144b81c4a
Update Autocompletion Generation Documentation
...
The autocompletion command has been changed to generate. Update documentation to reflect this change.
2018-04-12 11:50:26 -04:00
Alexander Neumann
3c453a4217
Merge pull request #1715 from rawtaz/patch-1
...
Add "Including and Exluding Files" heading in docs
2018-04-11 21:27:22 +02:00
rawtaz
1e2f23d77a
Add "Including and Exluding Files" heading in docs
...
Adds "Including and Exluding Files" heading in the backup section in the docs.
[ci skip]
2018-04-11 21:14:26 +02:00
Alexander Neumann
2c76e724ab
Merge pull request #1712 from restic/list-ignore-non-existing-dirs
...
Improve handling non-existing dirs in List()
2018-04-10 21:54:00 +02:00
Alexander Neumann
577faa7570
local/sftp: Handling non-existing dirs in List()
2018-04-10 21:35:30 +02:00
Alexander Neumann
6a34e0d10f
Merge pull request #1709 from restic/improve-check-errors
...
Improve error message for orphaned pack files
2018-04-07 13:38:41 +02:00
Alexander Neumann
b08f21cdc6
Add entry to changelog
2018-04-07 13:05:44 +02:00
Alexander Neumann
1c1fede399
Improve error message for orphaned pack files
2018-04-07 10:07:54 +02:00
Alexander Neumann
63a0913e6e
Merge pull request #1705 from alirazeen/doc-add-scripting
...
Add scripting section to docs
2018-04-07 09:47:17 +02:00
Ali Razeen
325957443e
Add scripting section to docs
2018-04-04 10:43:20 -04:00
Alexander Neumann
4b2d3b15a2
Add entry to changelog
2018-04-03 20:42:06 +02:00
Alexander Neumann
4e2a87c920
Merge pull request #1703 from ebastos/issue1608
...
Fixed issue #1608 - Use --time argument properly
2018-04-03 20:40:41 +02:00
Eri Bastos
901e1b129c
Fixed issue #1608 - Use --time argument properly
...
Backups via stdin will now handle --time argument and pass it down as
expected
2018-04-03 14:40:42 -03:00
Alexander Neumann
4478d633e2
Merge pull request #1702 from restic/update-simple-scrypt
...
Update github.com/elithrar/simple-scrypt
2018-04-02 20:07:18 +02:00
Alexander Neumann
92f516b1d4
Update github.com/elithrar/simple-scrypt
...
For details see #1697
2018-04-02 19:48:25 +02:00
Alexander Neumann
03193e6d92
Fix changelog entries
2018-04-02 12:42:48 +02:00
Alexander Neumann
01fe719aff
check: Make sure temp cache dir is removed
2018-04-01 18:09:53 +02:00
Alexander Neumann
2c964df3e2
Merge pull request #1699 from restic/fix-incremental-backup-test
...
Slightly increment size for TestIncrementalBackup
2018-04-01 14:33:12 +02:00
Alexander Neumann
8919125b0b
Merge pull request #1696 from restic/fix-check-cache
...
check: Improve cache handling
2018-04-01 14:33:00 +02:00
Alexander Neumann
1f5137aa70
Add entry to CHANGELOG
2018-04-01 13:59:27 +02:00
Alexander Neumann
a95eb33616
check: Use cache in temporary directory if possible
...
Closes #1694
2018-04-01 13:59:27 +02:00
Alexander Neumann
e68a7fea8a
check: Allow filling the cache during check
...
Closes #1665
2018-04-01 13:59:27 +02:00
Alexander Neumann
2e7ec717c1
repository: Move cache preparation into function
2018-04-01 13:59:27 +02:00
Alexander Neumann
22d5061df2
Merge pull request #1698 from restic/reduce-backend-tests-travis
...
Travis: Skip cloud backend tests for most Go versions
2018-04-01 13:58:38 +02:00
Alexander Neumann
4544a77172
Slightly increment size for TestIncrementalBackup
...
This should make the test more reliable, it should hit the accidental
"repo is has grown too much" way less often.
2018-04-01 13:49:42 +02:00
Alexander Neumann
b3a073e066
Travis: Skip cloud backend tests for most Go versions
2018-04-01 13:13:38 +02:00
Alexander Neumann
b077a1227b
Merge pull request #1657 from restic/rclone-backend
...
Rclone backend
2018-04-01 10:56:10 +02:00
Alexander Neumann
3f48e0e0f4
Add extra options to rclone
...
For details see https://github.com/restic/restic/pull/1657#issuecomment-377707486
2018-04-01 10:34:30 +02:00
Alexander Neumann
86f4b03730
Remove unneeded byte counters
2018-04-01 10:18:38 +02:00
Alexander Neumann
c43c94776b
rclone: Make concurrent connections configurable
2018-04-01 10:18:38 +02:00
Alexander Neumann
0b776e63e7
backend/rclone: Request random file name
...
When `/` is requested, rclone returns the list of all files in the
remote, which is not what we want (and it can take quite some time).
2018-04-01 10:18:38 +02:00
Alexander Neumann
360ff1806a
doc: Fix instructions for rclone backend
2018-04-01 10:18:38 +02:00
Alexander Neumann
1beeb7d0dd
doc/REST: Make documentation match reality
2018-04-01 10:18:38 +02:00
Alexander Neumann
e978b36713
doc: Add hint how to debug rclone
2018-04-01 10:18:38 +02:00
Alexander Neumann
737d93860a
Extend first timeout to 60 seconds.
2018-04-01 10:18:38 +02:00
Alexander Neumann
011217e4bf
backend/rclone: Improve documentation and README
2018-04-01 10:18:38 +02:00
Alexander Neumann
362d5afec4
Add entry to changelog
2018-04-01 10:18:38 +02:00
Alexander Neumann
4172fcd167
doc: Add rclone backend
2018-04-01 10:18:38 +02:00
Alexander Neumann
518bf4e5f6
doc: Correct verbatim text in the manual
2018-04-01 10:18:38 +02:00
Alexander Neumann
17312d3a98
backend/rest: Ensure base URL ends with slash
...
This makes it easier for rclone.
2018-04-01 10:18:38 +02:00
Alexander Neumann
4d5c7a8749
backend/rclone: Make sure rclone terminates
2018-04-01 10:18:38 +02:00
Alexander Neumann
fc0295016a
Address code review comments
2018-04-01 10:18:38 +02:00
Alexander Neumann
99b62c11b8
backend/rclone: Stop rclone in case of errors
2018-04-01 10:18:38 +02:00
Alexander Neumann
6d9a029e09
backend/rclone: Prefix all error messages
2018-04-01 10:18:38 +02:00
Alexander Neumann
20352886f3
Update Gopkg.lock
2018-04-01 10:18:38 +02:00
Alexander Neumann
3622b60c13
CI: Check that rclone backend test isn't skipped
2018-04-01 10:16:31 +02:00
Alexander Neumann
065fe1e54f
backend/rclone: Skip test if binary is unavailable
2018-04-01 10:16:31 +02:00
Alexander Neumann
4dc0f24b38
backend/tests: Drain reader before returning error
2018-04-01 10:16:31 +02:00
Alexander Neumann
fe99340e40
Add rclone backend
2018-04-01 10:16:31 +02:00
Alexander Neumann
e377759c81
rest: Export Backend struct
2018-04-01 10:16:31 +02:00
Alexander Neumann
61f6db25f4
CI: install rclone
2018-04-01 10:16:31 +02:00
Alexander Neumann
cabbbd2b14
backend/rest: Export Content-Types
2018-04-01 10:16:31 +02:00
Alexander Neumann
cf4cf94418
Move backend/sftp.StartForeground to backend/
2018-04-01 10:16:31 +02:00
Alexander Neumann
34f27edc03
Refactor SplitShellStrings
2018-04-01 10:16:31 +02:00
Alexander Neumann
345b6c4694
Move backend/sftp.SplitShellArgs to backend/
2018-04-01 10:16:31 +02:00
Alexander Neumann
e4a39e02d2
Merge pull request #1695 from xulongwu4/patch-2
...
Add instructions for installation on Solus
2018-03-31 09:14:25 +02:00
xulongwu4
432e167255
Add instructions for installation on Solus
2018-03-30 17:36:29 -04:00
Alexander Neumann
594256bfa4
Merge pull request #1693 from restic/update-deps
...
Update dependencies
2018-03-30 17:19:08 +02:00
Alexander Neumann
0fcb1e6b7a
Merge pull request #1692 from restic/print-forget-policy
...
forget: Print policy
2018-03-30 17:19:05 +02:00
Alexander Neumann
38795c66c9
Update vendored library gopkg.in/yaml.v2
2018-03-30 12:53:13 +02:00
Alexander Neumann
c0960f538f
Update vendored library google.golang.org/api
2018-03-30 12:51:18 +02:00
Alexander Neumann
5b6568875c
Update vendored library golang.org/x/text
2018-03-30 12:50:04 +02:00
Alexander Neumann
d8dd79eb0b
Update vendored library golang.org/x/sys
2018-03-30 12:48:49 +02:00
Alexander Neumann
2bdeb645b9
Update vendored library golang.org/x/sync
2018-03-30 12:47:30 +02:00
Alexander Neumann
9f2ffa3e50
Update vendored library golang.org/x/oauth2
2018-03-30 12:46:26 +02:00
Alexander Neumann
d4bab5c133
Update vendored library golang.org/x/net
2018-03-30 12:45:07 +02:00
Alexander Neumann
3473d73d0c
Update vendored library github.com/spf13/cobra
2018-03-30 12:43:03 +02:00
Alexander Neumann
917cc542c9
Update vendored library github.com/sirupsen/logrus
2018-03-30 12:41:46 +02:00
Alexander Neumann
a9cf5d482a
Update vendored library github.com/russross/blackfriday
2018-03-30 12:40:05 +02:00
Alexander Neumann
75946e7c58
Update vendored library github.com/pkg/xattr
2018-03-30 12:38:37 +02:00
Alexander Neumann
19035e977b
Update vendored library github.com/pkg/sftp
2018-03-30 12:37:16 +02:00
Alexander Neumann
d9ba9279e0
Update vendored library github.com/ncw/swift
2018-03-30 12:35:13 +02:00
Alexander Neumann
31e156c666
Update vendored library github.com/minio/minio-go
2018-03-30 12:33:40 +02:00
Alexander Neumann
7e6fff324c
Update vendored library golang.org/x/crypto
2018-03-30 12:26:26 +02:00
Alexander Neumann
e94d2da890
Update vendored library github.com/golang/protobuf
2018-03-30 11:52:18 +02:00
Alexander Neumann
874b3dbbd9
Update vendored library github.com/go-ini/ini
2018-03-30 11:51:01 +02:00
Alexander Neumann
0d01c27c9e
Update vendored library github.com/dgrijalva/jwt-go
2018-03-30 11:49:18 +02:00
Alexander Neumann
30110fcfc2
Update vendored library github.com/cpuguy83/go-md2man
2018-03-30 11:48:16 +02:00
Alexander Neumann
673f0bbd6c
Update vendored library github.com/cenkalti/backoff
2018-03-30 11:45:27 +02:00
Alexander Neumann
5a77b2ab49
Update vendored library github.com/Azure/azure-sdk-for-go
2018-03-30 11:42:11 +02:00
Alexander Neumann
a951e7b126
Update vendored library cloud.google.com/go
2018-03-30 11:41:12 +02:00
Alexander Neumann
d3f9c8b362
forget: Print policy
2018-03-30 10:24:26 +02:00
Alexander Neumann
a4ff591165
Update URL to template
2018-03-25 11:55:37 +02:00
Alexander Neumann
49dd70c771
Merge pull request #1686 from gtrafimenkov/minor-spelling-fixes
...
Correct spelling mistakes
2018-03-25 11:54:53 +02:00
Gennady Trafimenkov
a64f24029b
Correct spelling mistakes
2018-03-25 00:42:33 +03:00
Alexander Neumann
0886738d24
Add entry to CHANGELOG
2018-03-24 18:40:49 +01:00
Alexander Neumann
9fc38803e0
Merge pull request #1684 from restic/fix-rest-tests
...
Fix rest-server tests
2018-03-24 18:39:44 +01:00
Alexander Neumann
e5c929b793
Fix rest-server tests
...
Since today, the rest-server needs to be explicitly told (via
`--no-auth`) that authentication is not necessary.
2018-03-24 18:06:21 +01:00
Alexander Neumann
0e0fee9c8f
Update changelog template
2018-03-24 17:31:21 +01:00
Alexander Neumann
26769a39eb
Merge pull request #1679 from rawtaz/version-oneliner
...
Make version output one line.
2018-03-23 21:14:37 +01:00
Leo R. Lundgren
923be90906
Make version output one line.
2018-03-21 21:49:03 +01:00
Alexander Neumann
84a22eac92
Merge pull request #1675 from oliver/doc-fixes
...
Minor doc fixes/improvements
2018-03-21 20:54:51 +01:00
Alexander Neumann
6eb1be0be4
Fix changelog files
2018-03-21 20:53:11 +01:00
Alexander Neumann
f31bbcf1a9
CI: Return error when calens fails
2018-03-21 20:53:01 +01:00
Alexander Neumann
5d09fca6a2
Merge pull request #1676 from bowensong/quiet-skip-scan
...
Skip archiver.Scan before backup when --quiet is set
2018-03-21 20:45:34 +01:00
Bowen Song
34671d7c9b
Skip archiver.Scan before backup when --quiet is set
2018-03-20 20:44:10 +00:00
Alexander Neumann
4a524da736
FAQ: Add suggestion on how to solve sftp error
2018-03-18 21:39:11 +01:00
Oliver Gerlich
e361cc3807
040_backup.rst: add note regarding paths in --files-from argument
2018-03-18 20:51:04 +01:00
Alexander Neumann
3cd8a7bc96
Fix small things left open by #1552
2018-03-18 19:54:12 +01:00
Alexander Neumann
8206f85d2e
Merge pull request #1552 from lawrencejones/use-auto-auth
...
Automatically load Google auth
2018-03-18 19:53:30 +01:00
Alexander Neumann
7022144e0f
Merge pull request #1673 from rawtaz/doc-precompiled
...
doc: Add more info about using pre-compiled builds.
2018-03-18 19:50:25 +01:00
Oliver Gerlich
1bee3e01fa
040_backup.rst: fix typo
2018-03-18 17:06:21 +01:00
Oliver Gerlich
624a2d8305
040_backup.rst: quote wildcard characters
...
This doesn't really matter for --exclude in most cases, but it avoids
spreading bad ideas.
2018-03-18 17:05:53 +01:00
Lawrence Jones
57c6233982
dep ensure
2018-03-16 10:31:30 +00:00
Leo R. Lundgren
c161aba084
doc: Add more info about using pre-compiled builds.
2018-03-15 21:23:07 +01:00
Alexander Neumann
0279fd7212
Merge pull request #1669 from restic/make-tests-faster
...
Reduce test runtime
2018-03-13 19:50:34 +01:00
Alexander Neumann
dedf17f5e8
Merge pull request #1650 from copart/patch-1
...
Added copr repositories for RHEL/Centos/Fedora
2018-03-11 21:52:18 +01:00
Alexander Neumann
817890794d
Merge pull request #1668 from restic/fix-1663
...
Return the first password/key which works
2018-03-11 21:51:54 +01:00
Alexander Neumann
b9ada91054
Reduce data for TestCreateSnapshot
2018-03-11 21:42:39 +01:00
Alexander Neumann
dfb6d0fced
Reduce data for TestIncrementalBackup
2018-03-11 21:17:27 +01:00
Alexander Neumann
c6c1dccc53
Reduce data set for TestRestore
2018-03-11 21:10:37 +01:00
Alexander Neumann
279566bafe
Reduce dataset for integration tests
2018-03-11 21:07:47 +01:00
Alexander Neumann
c67a8452f7
Disable polynomial check for chunker for tests
2018-03-11 20:59:40 +01:00
Alexander Neumann
5253ef218c
Remove TestParallelSaveWithDuplication
2018-03-11 19:49:48 +01:00
Alexander Neumann
0923976909
Remove TestArchiverDuplication
2018-03-11 19:44:25 +01:00
Lawrence Jones
492baf991f
Update docs and add changelog entry: Google auth
...
Add documentation around using default Google application credentials,
along with a changelog extra that describes the feature and the
potential impact on existing restic uses (read: none).
2018-03-11 17:12:30 +00:00
Lawrence Jones
0dfdc11ed9
Automatically load Google auth
...
This change removes the hardcoded Google auth mechanism for the GCS
backend, instead using Google's provided client library to discover and
generate credential material.
Google recommend that client libraries use their common auth mechanism
in order to authorise requests against Google services. Doing so means
you automatically support various types of authentication, from the
standard GOOGLE_APPLICATION_CREDENTIALS environment variable to making
use of Google's metadata API if running within Google Container Engine.
2018-03-11 17:11:25 +00:00
Alexander Neumann
54c6837ec4
Merge pull request #1651 from qbit/obsd_inst
...
doc: Add install instructions for OpenBSD
2018-03-11 14:49:40 +01:00
Alexander Neumann
e085713b35
Return the first password/key which works
...
Closes #1663
2018-03-11 14:12:21 +01:00
Alexander Neumann
e77d8c64a7
Merge pull request #1661 from restic/fix-rest-content-length
...
rest: Really set Content-Length HTTP header
2018-03-10 20:34:30 +01:00
Alexander Neumann
a410fa16a1
Merge pull request #1667 from restic/improve-error-config
...
Return error message for config decryption failure
2018-03-10 20:34:25 +01:00
Alexander Neumann
b3e1089cf9
Return error message for config decryption failure
...
See #1663
2018-03-09 21:05:35 +01:00
Alexander Neumann
7f8e269891
Merge pull request #1662 from ebastos/version_password
...
Skip checking for password file issue #1632
2018-03-09 20:42:32 +01:00
Alexander Neumann
fcc9ce81ba
rest: Really set Content-Length HTTP header
2018-03-09 20:21:34 +01:00
Eri Bastos
b9d643358a
Skip checking for password file existence if command is 'version' - Issue #1632
2018-03-08 17:55:03 -04:00
Alexander Neumann
ab5ef600a2
Merge pull request #1660 from ncw/rest-fix
...
backend/rest: check HTTP error response for List
2018-03-08 21:55:58 +01:00
Nick Craig-Wood
04c4033695
backend/rest: check HTTP error response for List
...
Before this change restic would attempt to JSON decode the error
message resulting in confusing `Decode: invalid character 'B' looking
for beginning of value` messages. Afterwards it will return `List
failed, server response: 400 Bad Request (400)`
2018-03-08 10:22:43 +00:00
Alexander Neumann
de37b68baa
Move all unreleased changelog entries
2018-03-05 21:31:52 +01:00
Alexander Neumann
bdc206d440
Remove unneeded mkdir
2018-03-05 21:17:57 +01:00
Alexander Neumann
efe2e792b3
Correct changelog entries
2018-03-05 21:17:52 +01:00
Alexander Neumann
6f3c23eba7
Merge pull request #1653 from restic/fix-1652
...
lock: Ignore invalid lock file
2018-03-05 20:49:03 +01:00
Alexander Neumann
4b34bc3210
Reformat changelog entry
2018-03-05 20:40:40 +01:00
Alexander Neumann
6ed9100aa1
Add version number hint for the changelog entry
2018-03-05 20:34:07 +01:00
Alexander Neumann
c63b02d0f1
Move changelog entries to unreleased version
2018-03-05 20:32:10 +01:00
Alexander Neumann
d0205ec889
Add entry to changelog
2018-03-05 20:22:45 +01:00
Alexander Neumann
d8dcbc89d1
lock: Ignore invalid lock file
...
This commit fixes a bug introduced in
e9ea268847
: When an invalid lock is
encountered (e.g. if the file is empty), the code used to ignore that,
but now returns the error.
Now, invalid files are ignored for the normal lock check, and removed
when `restic unlock --remove-all` is run.
Closes #1652
2018-03-05 20:19:57 +01:00
Alexander Neumann
be0a5b7f06
Merge pull request #1649 from jasperla/solaris
...
Minimal set of patches to get restic working on Solaris
2018-03-05 20:00:17 +01:00
Aaron Bieber
24ce08e122
doc: Add install instructions for OpenBSD
2018-03-05 06:31:57 -07:00
copart
864eaeab7c
Added copr repositories for RHEL/Centos/Fedora
2018-03-04 15:50:30 -05:00
Jasper Lievisse Adriaanse
96311d1a2b
Add support for illumos/Solaris
...
This does come without xattr/fuse support at this point.
NB: not hooking up the integration tests as restic won't compile without
cgo with Go < 1.10.
2018-03-04 20:11:29 +00:00
Alexander Neumann
da77f4a2e2
Merge pull request #1647 from duzvik/aws-session-token
...
Change priority of AWS credential providers to accept AWS_SESSION_TOKEN
2018-03-04 20:54:56 +01:00
denis.uzvik
6bb1bcce03
Change priority of AWS credential providers to accept AWS_SESSION_TOKEN
2018-03-04 19:58:27 +02:00
Alexander Neumann
6edf28d1e1
Merge pull request #1639 from restic/improve-backend-save
...
backend: Improve/Cleanup Save()
2018-03-04 13:35:50 +01:00
Alexander Neumann
929afc63d5
Use int64 for the length in the RewindReader
2018-03-04 10:40:42 +01:00
Alexander Neumann
99f7fd74e3
backend: Improve Save()
...
As mentioned in issue [#1560 ](https://github.com/restic/restic/pull/1560#issuecomment-364689346 )
this changes the signature for `backend.Save()`. It now takes a
parameter of interface type `RewindReader`, so that the backend
implementations or our `RetryBackend` middleware can reset the reader to
the beginning and then retry an upload operation.
The `RewindReader` interface also provides a `Length()` method, which is
used in the backend to get the size of the data to be saved. This
removes several ugly hacks we had to do to pull the size back out of the
`io.Reader` passed to `Save()` before. In the `s3` and `rest` backend
this is actively used.
2018-03-03 15:49:44 +01:00
Alexander Neumann
58306bfabb
Merge pull request #1648 from duzvik/s3-bucketexists
...
Ignore s3 AccessDenied error, during creation of repository
2018-03-02 22:38:33 +01:00
denis.uzvik
f6890210aa
Add entry to changelog
2018-03-02 11:06:06 +02:00
denis.uzvik
5873ab4031
Ignore s3 AccessDenied error, during creation of repository
2018-03-02 10:47:20 +02:00
Alexander Neumann
ab7a3a803d
Update build.go from github.com/fd0/build-go
2018-02-28 21:19:28 +01:00
Alexander Neumann
1e868933c5
build.go: Allow specifying the temp dir to use
2018-02-27 21:56:42 +01:00
Alexander Neumann
21f67a0a13
Fix linebreak in GitHub changelog template
2018-02-26 21:41:37 +01:00
Alexander Neumann
272ccec7e1
Add VERSION for 0.8.3
2018-02-26 21:32:16 +01:00
Alexander Neumann
68bf1509bd
Update manpages and auto-completion
2018-02-26 21:32:16 +01:00
Alexander Neumann
cfccd67600
Generate CHANGELOG.md for 0.8.3
2018-02-26 21:32:07 +01:00
Alexander Neumann
bc461d32e0
Add release date for 0.8.3
2018-02-26 21:31:50 +01:00
Alexander Neumann
ee4bfdf954
changelog: Fix spelling
2018-02-26 21:27:32 +01:00
Alexander Neumann
3037894f62
Add entry to changelog
2018-02-26 21:20:41 +01:00
Alexander Neumann
89075bdf6d
Merge pull request #1643 from restic/fix-1641
...
Ignore files in the repo with invalid names
2018-02-26 21:18:05 +01:00
Alexander Neumann
c323f73bf9
Ignore files in the repo with invalid names
...
Closes #1641
2018-02-26 20:53:38 +01:00
Alexander Neumann
aef5e03731
Merge pull request #1638 from restic/fix-list-retry
...
backend/retry: return worker function error and abort
2018-02-25 21:20:08 +01:00
Alexander Neumann
fc1f74d32d
Merge pull request #1640 from restic/fix-1637
...
mount: Ignore non-existing locks
2018-02-25 14:00:04 +01:00
Alexander Neumann
7d59df1ab8
mount: Ignore non-existing locks
...
Closes #1637
2018-02-25 13:11:03 +01:00
Alexander Neumann
2866f3f31c
Add pull request to changelog entry
2018-02-24 14:53:46 +01:00
Alexander Neumann
dc1154c8ad
Merge pull request #1556 from ifedorenko/check-subset
...
Add --read-data-subset flag to check command
2018-02-24 14:53:20 +01:00
Alexander Neumann
35a816e8ab
Add entry to changelog
2018-02-24 13:34:42 +01:00
Alexander Neumann
93210614f4
backend/retry: return worker function error and abort
...
This is a bug fix: Before, when the worker function fn in List() of the
RetryBackend returned an error, the operation is retried with the next
file. This is not consistent with the documentation, the intention was
that when fn returns an error, this is passed on to the caller and the
List() operation is aborted. Only errors happening on the underlying
backend are retried.
The error leads to restic ignoring exclusive locks that are present in
the repo, so it may happen that a new backup is written which references
data that is going to be removed by a concurrently running `prune`
operation.
The bug was reported by a user here:
https://forum.restic.net/t/restic-backup-returns-0-exit-code-when-already-locked/484
2018-02-24 13:26:13 +01:00
Alexander Neumann
dfd37afee2
Merge pull request #1636 from kurin/pack-header
...
Refactor the eager-header reads for readability.
2018-02-23 17:36:45 +01:00
Toby Burress
08a5281bd4
Incorporate PR review comments.
2018-02-22 17:37:10 +00:00
Toby Burress
cdb48a8970
Add tests for the eager-header refactor.
2018-02-22 01:14:04 +00:00
Toby Burress
4fd5f0b8a9
Refactor the eager-header reads for readability.
...
This pulls the header reads into a function that works in terms of the
number of records requested. This preserves the existing logic of
initially reading 15 records and then falling back if that fails.
In the event of a header with more than 15 records, it will read all
records, including the already-seen final 15 records.
2018-02-22 00:45:40 +00:00
Alexander Neumann
92ad6bf74f
Add pull request to changelog
2018-02-21 19:52:16 +01:00
Alexander Neumann
2c7dd3edf4
Merge pull request #1635 from ifedorenko/1633-negative-load-offset
...
Fixed unexpected 'pack file cannot be listed' error
2018-02-21 19:51:38 +01:00
Igor Fedorenko
19e7803ac6
Fixed unexpected 'pack file cannot be listed' error
...
Fixes #1633
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-02-20 21:28:57 -05:00
Alexander Neumann
9f0605766c
Add entry to changelog
2018-02-20 22:10:52 +01:00
Alexander Neumann
1a5d7a9965
Merge pull request #1634 from restic/update-blazer
...
Update github.com/kurin/blazer to 0.3.0
2018-02-20 22:01:30 +01:00
Alexander Neumann
296769355d
Update github.com/kurin/blazer to 0.3.0
...
This commit will reduce the number of HTTP requests per file uploaded
from two to one.
2018-02-20 21:01:21 +01:00
Igor Fedorenko
07d080830e
Add --read-data-subset flag to check command
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-02-18 23:31:27 -05:00
Alexander Neumann
c99eabfb37
Merge pull request #1625 from restic/update-blazer
...
Update B2 client library (github.com/kurin/blazer)
2018-02-18 19:18:52 +01:00
Alexander Neumann
842fe43590
Update github.com/kurin/blazer to 0.2.2
2018-02-18 14:53:23 +01:00
Alexander Neumann
be02008025
Merge pull request #1611 from qbit/master
...
On OpenBSD only root can set sticky bit
2018-02-18 12:57:54 +01:00
Alexander Neumann
29da86b473
Merge pull request #1623 from restic/backend-relax-restrictions
...
backend: Relax requirement for new files
2018-02-18 12:56:52 +01:00
Alexander Neumann
bad7215696
Add entry to CHANGELOG
2018-02-18 12:04:44 +01:00
Alexander Neumann
881ff5e554
Move changelog file, improve text
2018-02-18 11:51:45 +01:00
Alexander Neumann
86b7fd0335
Merge pull request #1624 from rawtaz/patch-1
...
Attempt to make issue template a bit clearer
2018-02-18 11:50:11 +01:00
rawtaz
70209d7d1d
End both list items with a dot.
...
Changed my mind after checking other lists in the project's files, ending with a dot seems to be preferred here, and I like that better too.
2018-02-17 23:47:40 +01:00
rawtaz
f07552161c
Remove potentially excessive dot
...
Some people like list items to not end with a comma or dot, some like it when they do. To keep things like and coherent I removed them in this case.
2018-02-17 23:40:30 +01:00
rawtaz
856f3a9135
Add forum URL back
2018-02-17 23:36:47 +01:00
Alexander Neumann
49e9bcadb7
Merge pull request #1560 from ifedorenko/1559-load-error-handling
...
Retry all repository file download errors
2018-02-17 23:25:28 +01:00
rawtaz
1b8823ef2e
Attempt to make issue template a bit clearer
2018-02-17 23:19:58 +01:00
Alexander Neumann
b5062959c8
backend: Relax requirement for new files
...
Before, all backend implementations were required to return an error if
the file that is to be written already exists in the backend. For most
backends, that means making a request (e.g. via HTTP) and returning an
error when the file already exists.
This is not accurate, the file could have been created between the HTTP
request testing for it, and when writing starts. In addition, apart from
the `config` file in the repo, all other file names have pseudo-random
names with a very very low probability of a collision. And even if a
file name is written again, the way the restic repo is structured this
just means that the same content is placed there again. Which is not a
problem, just not very efficient.
So, this commit relaxes the requirement to return an error when the file
in the backend already exists, which allows reducing the number of API
requests and thereby the latency for remote backends.
2018-02-17 22:39:18 +01:00
Alexander Neumann
2fb4d44a4d
Add VERSION for 0.8.2
2018-02-17 20:27:28 +01:00
Alexander Neumann
3c08f956a3
Update manpages and auto-completion
2018-02-17 20:27:28 +01:00
Alexander Neumann
1463a7aaaa
Generate CHANGELOG.md for 0.8.2
2018-02-17 20:27:17 +01:00
Alexander Neumann
76b8e080c3
changelog: Add release date for 0.8.2
2018-02-17 20:26:43 +01:00
Alexander Neumann
a9f9243afc
scripts/release: Fix usage for restic/builder
...
The restic/builder Docker container now has a slightly different usage.
2018-02-17 19:10:32 +01:00
Alexander Neumann
34bf9de339
Fix Go versions for Travis
2018-02-17 18:48:15 +01:00
Alexander Neumann
597f6be4e4
Disable CI tests on Go 1.8 on OS X
2018-02-17 18:39:16 +01:00
Alexander Neumann
aeeec0ff94
Update Go version for CI tests
2018-02-17 18:37:37 +01:00
Igor Fedorenko
ab040d8811
Introduced repository.DownloadAndHash helper
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-02-16 21:13:11 -05:00
Igor Fedorenko
d58ae43317
Reworked Backend.Load API to retry errors during ongoing download
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-02-16 21:12:14 -05:00
Alexander Neumann
b723094739
scripts/release: Check changelog subdir with date
2018-02-16 23:13:36 +01:00
Alexander Neumann
84dcc3c396
Update changelog/ for new version of calens
...
We've reworked calens[1] a bit, the changelog/releases file is not
needed any more. Insteady, the release date is stored in the dir name
which contains the changelog entries.
[1] https://github.com/restic/calens
2018-02-16 23:05:58 +01:00
Alexander Neumann
21747bc219
Remove punctuation from changelog entry title
2018-02-16 22:49:24 +01:00
Alexander Neumann
28b00891d2
scripts/release: Check Go version in container
2018-02-16 22:35:53 +01:00
Alexander Neumann
b4e00c324f
scripts/release: Check release date first
2018-02-16 21:52:34 +01:00
Alexander Neumann
4eb9df63cf
Merge pull request #1616 from rawtaz/fix-backup-doc
...
Restructure and complement exclude options doc
2018-02-14 22:11:14 +01:00
Alexander Neumann
fde674d214
Merge pull request #1615 from rawtaz/fix-forget-doc
...
Fix #1519 and formatting in `forget` doc
2018-02-14 22:11:10 +01:00
rawtaz
fbb08c14de
Note that multiple --exclude-file
may be used.
2018-02-14 22:05:52 +01:00
Leo R. Lundgren
8b95b48bae
Fix grammar and formatting.
2018-02-14 02:59:47 +01:00
Leo R. Lundgren
71a4ccea71
Document refusal to process empty forget policy.
2018-02-14 02:59:41 +01:00
Leo R. Lundgren
5a9c7c51e6
Fix --keep-* options list formatting.
2018-02-14 02:59:33 +01:00
rawtaz
5abd133e26
Restructure and complement exclude options doc
2018-02-14 02:03:04 +01:00
Alexander Neumann
2debb5c0e0
Merge pull request #1613 from restic/strip-space-files-from
...
Strip spaces from items read via --files-from
2018-02-11 21:35:23 +01:00
Alexander Neumann
54c0794cf3
Merge pull request #1603 from jfparis/master
...
Add support for GOARM parameter when cross compiling
2018-02-11 21:03:29 +01:00
Alexander Neumann
cff3f3dc0d
Add entry to CHANGELOG
2018-02-11 21:00:38 +01:00
Alexander Neumann
c5575c7ed9
Strip spaces from items read via --files-from
...
In #1590 , it was mentioned that while lines read from exclude files via
`--exclude-file` have leading and trailing spaces stripped, this is not
the case for lines read via `--files-from`. This commit fixes that,
spaces are always stripped.
2018-02-11 20:56:11 +01:00
Aaron Bieber
99d88ad297
Disable the 'testSticky' test on OpenBSD. Only root can set sticky.
2018-02-11 07:46:31 -07:00
Alexander Neumann
7f0d964a05
Update build.go
2018-02-11 11:34:03 +01:00
Alexander Neumann
514f1b8917
Relax timeout backend test
2018-02-10 12:53:38 +01:00
Alexander Neumann
a7a99be460
Correct forum host name in issue template
...
Closes #1609
2018-02-10 11:13:22 +01:00
Alexander Neumann
e17f65b23a
Update logo
2018-02-05 20:48:48 +01:00
Jean-François Paris
e86fb5eedd
Add support for GOARM parameter when cross compiling
...
Go can cross compile to older ARM architectures (e.g. v5). In order to
do so one needs to use the GOARM parameter as documented in
https://github.com/golang/go/wiki/GoArm
2018-02-04 14:15:12 +00:00
Alexander Neumann
c8cb9a9509
Merge pull request #1579 from ifedorenko/RetryBackend-List
...
Implement RetryBackend.List()
2018-01-30 21:39:21 +01:00
Igor Fedorenko
aa333f4d49
Implement RetryBackend.List()
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-01-29 22:14:12 -05:00
Alexander Neumann
c40002246d
Merge pull request #1598 from Phaeilo/s3-tutorial
...
Update AWS S3 tutorial, fixing #1593
2018-01-29 21:52:32 +01:00
Philip Huppert
77a6054d64
Update AWS S3 tutorial, fixing #1593
2018-01-29 20:47:27 +01:00
Alexander Neumann
94ec55ff2c
Merge pull request #1595 from restic/remove-read-bandwidth
...
Remove archiver progress "data processed" bandwith
2018-01-28 10:15:53 +01:00
Alexander Neumann
2369da158f
Merge pull request #1592 from ncw/helpful-tests
...
Make backend tests more helpful
2018-01-28 10:09:35 +01:00
Alexander Neumann
5379950c64
Add entry to changelog
2018-01-28 09:36:55 +01:00
Alexander Neumann
cbfa516575
Remove archiver progress "data processed" bandwith
...
This commit removes the bandwidth displayed during backup process. It is
misleading and seldomly correct, because it's neither the "read
bandwidth" (only for the very first backup) nor the "upload bandwidth".
Many users are confused about (and rightly so), c.f. #1581 , #1033 , #1591
We'll eventually replace this display with something more relevant when
#1494 is done.
2018-01-28 09:30:26 +01:00
Nick Craig-Wood
fb62da1748
Make backend tests more helpful
...
* In TestList check that backend is empty first
* Improve error message in TestBackend
2018-01-27 21:36:35 +00:00
Alexander Neumann
b1b1f6e04f
Merge pull request #1594 from restic/gcs-use-http-transport
...
GS: Use generic http transport
2018-01-27 22:16:49 +01:00
Alexander Neumann
05f826a4fc
Update Gopkg.lock
2018-01-27 21:48:41 +01:00
Alexander Neumann
649afb1198
Add entry to changelog
2018-01-27 20:16:51 +01:00
Alexander Neumann
5dc8d3588d
GS: Use generic http transport
...
During the development of #1524 I discovered that the Google Cloud
Storage backend did not yet use the HTTP transport, so things such as
bandwidth limiting did not work. This commit does the necessary magic to
make the GS library use our HTTP transport.
2018-01-27 20:12:34 +01:00
Alexander Neumann
9d2aa0a71c
Merge pull request #1524 from brycied00d/https_client_certificate
...
Support for TLS client certificate authentication
2018-01-27 20:12:09 +01:00
Alexander Neumann
c34db983d8
Read TLS client cert and key from the same file
2018-01-27 14:02:01 +01:00
Bryce Chidester
e805b968b1
Support for TLS client certificate authentication
...
This adds --tls-client-cert and --tls-client-key parameters and enables use
of that certificate/key pair when connecting to https servers.
2018-01-27 13:18:22 +01:00
Alexander Neumann
e706f1a8d1
Merge pull request #1589 from restic/fix-intermediate-index-upload
...
archiver: Fix intermediate index upload
2018-01-27 12:22:11 +01:00
Alexander Neumann
4219bfbcc9
Add entry to changelog
2018-01-26 22:05:53 +01:00
Alexander Neumann
f99c95c766
archiver: Fix intermediate index upload
...
A user discovered[1] that when the backup finishes during the upload of
an intermediate index, the upload is cancelled and the index never fully
saved, but the snapshot is saved and the backup finalizes without an
error. This lead to a situation where a snapshot references data that is
contained in the repo, but not referenced in any index, leading to
strange error messages.
This commit uses a dedicated context to signal the intermediate index
uploading routine to terminate after the last index has been uploaded.
This way, an upload running when the backup finishes is completed before
the routine terminates and the snapshot is saved.
[1] https://forum.restic.net/t/error-loading-tree-check-prune-and-forget-gives-error-b2-backend/406
2018-01-26 22:01:07 +01:00
Alexander Neumann
cccb2fc7e7
Merge pull request #1583 from restic/close-open-backend-files
...
Close backend files in case of errors
2018-01-26 21:57:28 +01:00
Alexander Neumann
ff3de66ddf
Merge pull request #1582 from restic/optimize-debug-log
...
Optimize debug logs
2018-01-26 21:57:18 +01:00
Alexander Neumann
fb0d01ef1f
Add pull request URL to changelog
2018-01-26 21:56:59 +01:00
Alexander Neumann
e11a183578
Merge pull request #1588 from restic/fix-sftp-without-tty
...
sftp: Allow running ssh without a tty
2018-01-26 21:56:41 +01:00
Alexander Neumann
ee6732d2c6
Add entry to changelog
2018-01-26 21:56:29 +01:00
Alexander Neumann
4b2f2b542d
Merge pull request #1584 from restic/limit-index-file-size
...
Limit index file size
2018-01-26 21:53:12 +01:00
Alexander Neumann
6eb2d76435
index: Lower parallel load to 4
2018-01-26 21:10:38 +01:00
Alexander Neumann
f63c7048c7
index: Limit index files to 3000 pack files
2018-01-26 21:07:16 +01:00
Alexander Neumann
ca3c566a99
index: Check structure after saving a new index
2018-01-26 21:07:16 +01:00
Alexander Neumann
7719cf88d9
b2: Check timeout
2018-01-26 21:07:05 +01:00
Alexander Neumann
00e905ebe6
sftp: Allow running ssh without a tty
2018-01-26 19:21:14 +01:00
Alexander Neumann
164acceb55
Appveyor: Update Go version and download URL
2018-01-25 21:09:23 +01:00
Alexander Neumann
909d9273cc
Close backend files in case of errors
2018-01-25 21:05:57 +01:00
Alexander Neumann
d62a664bb7
Merge pull request #1580 from ifedorenko/tests-errors-cause
...
Use errors.Cause in backend TestListCancel
2018-01-25 20:55:43 +01:00
Alexander Neumann
663c57ab4d
debug: Remove manual Str() call Log()
2018-01-25 20:49:41 +01:00
Alexander Neumann
ed99f53786
debug: Auto-shorten IDs passed as parameters
2018-01-25 20:49:26 +01:00
Igor Fedorenko
abc4027083
Use errors.Cause in backend TestListCancel
...
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-01-25 08:53:50 -05:00
Alexander Neumann
d6212ee2d9
Fix entry to changelog
2018-01-24 20:54:51 +01:00
Alexander Neumann
9c55e8d69c
Merge pull request #1549 from MJDSys/more_index_lookup_avoids
...
More optimizations to avoid calling Index.Lookup()
2018-01-24 20:53:30 +01:00
Alexander Neumann
1c9fca6d14
Combine changelog files for #1574 and #1575
2018-01-24 20:07:22 +01:00
Alexander Neumann
be205563be
Merge pull request #1575 from ifedorenko/1567_optimize-repository-ListPack
...
Optimize Repository.ListPack()
2018-01-24 20:01:15 +01:00
Alexander Neumann
fc6c341b26
Merge pull request #1574 from ifedorenko/1567_optimize-pack-readHeader
...
Optimize pack readHeader() implementation
2018-01-24 19:54:14 +01:00
Alexander Neumann
f86c141b83
Merge pull request #1577 from EdwardBetts/patch-1
...
Correct a spelling mistake.
2018-01-24 19:44:49 +01:00
Alexander Neumann
a6d4888d48
Merge pull request #1573 from restic/update-dps
...
Update dependencies
2018-01-24 19:43:32 +01:00
Alexander Neumann
44550a88a0
Merge pull request #1571 from restic/rework-backend-list
...
Rework backend list
2018-01-24 19:43:07 +01:00
Edward Betts
b5c23695c9
Correct a spelling mistake.
2018-01-24 12:09:41 +00:00
Igor Fedorenko
0084e42cb6
Optimize Repository.ListPack()
...
Use pack file size returned by Backend.List() to avoid extra per-pack
Backend.Stat() requests
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-01-23 22:39:51 -05:00
Matthew Dawson
fe33c05a20
debug/log: Add benchmarks for calling the logging function
...
Add some benchmarks for calling Log, both with a static string
along with calling the ID.Str and ID.String functions.
2018-01-23 22:30:00 -05:00
Matthew Dawson
3789e55e20
repostiory/index: Remove logging from Lookup function.
...
The logging in these functions double the time they take to execute.
However, it is only really useful on failures, which are better
reported by the calling functions.
benchmark old ns/op new ns/op delta
BenchmarkMasterIndexLookupSingleIndex-6 897 395 -55.96%
BenchmarkMasterIndexLookupMultipleIndex-6 2001 1090 -45.53%
BenchmarkMasterIndexLookupSingleIndexUnknown-6 492 215 -56.30%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6 1649 912 -44.69%
benchmark old allocs new allocs delta
BenchmarkMasterIndexLookupSingleIndex-6 9 1 -88.89%
BenchmarkMasterIndexLookupMultipleIndex-6 19 1 -94.74%
BenchmarkMasterIndexLookupSingleIndexUnknown-6 6 0 -100.00%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6 16 0 -100.00%
benchmark old bytes new bytes delta
BenchmarkMasterIndexLookupSingleIndex-6 160 96 -40.00%
BenchmarkMasterIndexLookupMultipleIndex-6 240 96 -60.00%
BenchmarkMasterIndexLookupSingleIndexUnknown-6 48 0 -100.00%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6 128 0 -100.00%
2018-01-23 22:28:38 -05:00
Matthew Dawson
4cec7e236a
Add Changelog
2018-01-23 22:28:32 -05:00
Matthew Dawson
3a16148447
archiver/archiver: Use Index.Has() instead of Index.Lookup() in isKnownBlob
...
Index.Has() is a faster then Index.Lookup() for checking if a blob exists
in the index. As the returned data is never used, this avoids a ton
of allocations.
2018-01-23 22:26:10 -05:00
Matthew Dawson
df2c03a6a4
repository/master_index: Optimize Index.Lookup()
...
When looking up a blob in the master index, with several
indexes present in the master index, a significant amount of time
is spent generating errors for each failed lookup. However, these
errors are often used to check if a blob is present, but the contents
are not inspected making the overhead of the error not useful.
Instead, change Index.Lookup (and Index.LookupSize) to instead return
a boolean denoting if the blob was found instead of an error. Also change
all the calls to these functions to handle the new function signature.
benchmark old ns/op new ns/op delta
BenchmarkMasterIndexLookupSingleIndex-6 820 897 +9.39%
BenchmarkMasterIndexLookupMultipleIndex-6 12821 2001 -84.39%
BenchmarkMasterIndexLookupSingleIndexUnknown-6 5378 492 -90.85%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6 17026 1649 -90.31%
benchmark old allocs new allocs delta
BenchmarkMasterIndexLookupSingleIndex-6 9 9 +0.00%
BenchmarkMasterIndexLookupMultipleIndex-6 59 19 -67.80%
BenchmarkMasterIndexLookupSingleIndexUnknown-6 22 6 -72.73%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6 72 16 -77.78%
benchmark old bytes new bytes delta
BenchmarkMasterIndexLookupSingleIndex-6 160 160 +0.00%
BenchmarkMasterIndexLookupMultipleIndex-6 3200 240 -92.50%
BenchmarkMasterIndexLookupSingleIndexUnknown-6 1232 48 -96.10%
BenchmarkMasterIndexLookupMultipleIndexUnknown-6 4272 128 -97.00%
2018-01-23 22:25:56 -05:00
Matthew Dawson
ebce4b2581
repository/index: Speed up benchmarks and tests
...
When setting up the index used for benchmarking, use math/rand instead of
crypto/rand since the generated ids don't need to be evenly distributed,
and not be secure against guessing. As such, use a different random id
function (only available during tests) that uses math/rand instead.
2018-01-23 22:21:05 -05:00
Igor Fedorenko
953f3d55ee
Optimize pack readHeader() implementation
...
Load pack header length and 15 header entries with single backend
request. This eliminates separate header Load() request for most pack
files and significantly improves index.New() performance.
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-01-23 22:02:25 -05:00
Alexander Neumann
7e6bfdae79
backend/rest: Implement REST API v2
2018-01-23 23:15:26 +01:00
Alexander Neumann
0f4cbea27d
Document the REST v2 protocol
2018-01-23 23:15:26 +01:00
Alexander Neumann
59782e347c
repository: Fix repack test
...
This reduces the chance of duplicate blobs, otherwise the tests fail
(make the contents of a blob depend on a pseudo-random number instead of
the size, sizes may be duplicate).
2018-01-23 23:14:05 +01:00
Alexander Neumann
e835abeceb
backend/test: Reliably trigger timeout error
2018-01-23 23:14:05 +01:00
Alexander Neumann
8e812b7ac0
errors: Make Cause() unwrap *url.Error
2018-01-23 23:14:05 +01:00
Alexander Neumann
685ce719ad
Add comments for List()
2018-01-23 23:14:05 +01:00
Alexander Neumann
2b39f9f4b2
Update dependencies
...
Among others, this updates minio-go, so that the new "eu-west-3" zone
for AWS is supported.
2018-01-23 19:40:42 +01:00
Alexander Neumann
b63de7c798
script/release: Tag versioned docker image
2018-01-21 21:41:14 +01:00
Alexander Neumann
b0c6e53241
Fix calls to repo/backend.List() everywhere
2018-01-21 21:15:09 +01:00
Alexander Neumann
e9ea268847
Change List() implementation for all backends
2018-01-21 21:15:09 +01:00
Alexander Neumann
dd91b13ff3
Vendor golang.org/x/sync
2018-01-21 18:35:37 +01:00
Alexander Neumann
c4e9d5d11e
backend: Add tests for new List() function
2018-01-21 18:35:37 +01:00
Alexander Neumann
52230b8f07
backend: Rework List()
...
For a discussion see #1567
2018-01-21 18:35:37 +01:00
Alexander Neumann
a3d43a92b3
Merge pull request #1569 from restic/ext-rest-backend-test
...
REST: refactor backend tests
2018-01-21 18:02:09 +01:00
Alexander Neumann
2130897ce0
rest: Add test for external server
2018-01-20 10:25:47 +01:00
Alexander Neumann
67da240068
rest: Refactor backend tests
2018-01-20 10:25:37 +01:00
Alexander Neumann
1046eabf95
rest: Remove unneeded tempdir
2018-01-20 10:13:04 +01:00
Alexander Neumann
663e8284b2
init: Correct text (backend vs. repository)
...
Closes #1565
2018-01-20 09:51:49 +01:00
Alexander Neumann
5a43ca1ccb
Add entry to CHANGELOG
2018-01-20 09:50:31 +01:00
Alexander Neumann
200415e0a1
Merge pull request #1564 from restic/sftp-password-prompt
...
sftp: Prompt for password, don't terminate on SIGINT
2018-01-20 09:48:17 +01:00
Alexander Neumann
ea50687e8b
Merge pull request #1568 from martinseener/patch-1
...
Added hint where to place restic.exe on windows
2018-01-20 09:47:50 +01:00
Alexander Neumann
7335a2492f
Add PR to changelog
2018-01-19 13:05:55 +01:00
Alexander Neumann
bcb6881ffb
Merge pull request #1548 from ifedorenko/checker-backend-Test
...
checker: Optimize checker.Packs()
2018-01-19 13:05:35 +01:00
Alexander Neumann
37df829b3d
CONTRIBUTING: clarify wording
2018-01-19 13:00:49 +01:00
Martin
39f1ba1897
Added hint where to place restic.exe on windows
...
I've added a hint for pre-compiled binaries on windows where to place them for easier use in the shell or in scripts without the hassle for absolute paths.
2018-01-19 12:24:09 +01:00
Igor Fedorenko
231076fa4a
checker: Optimize checker.Packs()
...
Use result of single repository.List() to find both missing and
orphaned data packs. For 500GB repository this eliminates ~100K
repository.Test() calls and improves check time by >30M in my
environment (~45min before this change and ~7min after).
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-01-18 20:50:39 -05:00
Alexander Neumann
0bdb131521
Remove SuspendSignalHandler
2018-01-17 23:14:47 +01:00
Alexander Neumann
c31a5e7e5c
Add argument to Skipf()
2018-01-17 23:14:37 +01:00
Alexander Neumann
05958caf6e
sftp: Prompt for password, don't terminate on SIGINT
...
This is a follow-up on fb9729fdb9
, which
runs the `ssh` in its own process group and selects that process group
as the foreground group. After the sftp connection is established,
restic switches back to the previous foreground process group.
This allows `ssh` to prompt for the password, but it won't receive
the interrupt signal (SIGINT, ^C) later on, because it is not in the
foreground process group any more, allowing a clean tear down.
2018-01-17 23:02:47 +01:00
Alexander Neumann
87e31799f2
Merge pull request #1483 from dstosberg/master
...
document how to create a full backup without running restic as root
2018-01-16 17:21:55 +01:00
Alexander Neumann
35528506a6
Merge pull request #1554 from restic/fix-988
...
fuse: Correct behavior for reading after EOF, add snapshot template string
2018-01-16 17:17:55 +01:00
Alexander Neumann
2544978aaf
Add entry to changelog
2018-01-15 14:47:17 +01:00
Alexander Neumann
97565d68a2
fuse/mount: Add option for snapshot template
2018-01-15 14:47:17 +01:00
Alexander Neumann
f49f5c5903
fuse: Don't return an error for EOF
2018-01-13 10:14:10 +01:00
Alexander Neumann
d89f2e5226
fuse: Remove debug log message
2018-01-13 10:10:07 +01:00
Alexander Neumann
02f4f5dc66
Update build.go, correct version detection
2018-01-12 22:06:42 +01:00
Alexander Neumann
5723636b35
Add entry for changelog
2018-01-09 21:57:07 +01:00
Alexander Neumann
5632ca4f44
Merge pull request #1538 from MJDSys/make_lookup_internal
...
repository/index: Avoid creating an error when checking if an id is in the index.
2018-01-09 21:55:37 +01:00
Matthew Dawson
539599d1f1
repository/index: Optimize index.Has()
...
When backing up several million files (>14M tested here) with few changes,
a large amount of time is spent failing to find an id in an index and creating
an error to signify this. Since this is checked using the Has method,
which doesn't use this error, this time creating the error is wasted.
Instead, directly check if the given id and type are present in the index.
This also avoids reporting all the packs containing this blob, further
reducing cpu usage.
2018-01-08 21:46:17 +01:00
Alexander Neumann
d77a326bb0
Add benchmark for Index.Has()
2018-01-08 21:10:30 +01:00
Dennis Stosberg
60a7a9d019
manual: document how to create a full backup without running restic as root
2018-01-08 19:59:15 +01:00
Alexander Neumann
99f0fce673
Merge pull request #1536 from restic/fix-restorer-permissions
...
restore: Fix directory permissions
2018-01-07 17:18:29 +01:00
Alexander Neumann
b708cfee3f
Add entry to changelog
2018-01-07 15:16:16 +01:00
Alexander Neumann
b8620429e2
restorer: Set directory mode as last step
...
Closes #1512
2018-01-07 15:13:24 +01:00
Alexander Neumann
aab414b368
Add test case for #1512
2018-01-07 14:50:47 +01:00
Alexander Neumann
e120b17abd
Update PR template
2018-01-07 11:53:30 +01:00
Alexander Neumann
5f43e17918
Merge pull request #1535 from ifedorenko/check-retry
...
fixed restic-check does not retry backend.Test failures
2018-01-07 09:43:49 +01:00
Alexander Neumann
489eef5a6f
Merge pull request #1534 from restic/improve-error-restore
...
restore: Improve error message for more than one ID
2018-01-07 09:40:06 +01:00
Igor Fedorenko
8c550ca011
fixed restic-check does not retry backend.Test failures
...
added missing RetryBackend.Test implementation
Signed-off-by: Igor Fedorenko <igor@ifedorenko.com >
2018-01-06 23:22:35 -05:00
Alexander Neumann
032621289b
errors: Add "Fatal" prefix for Fatalf()
2018-01-06 23:27:47 +01:00
Alexander Neumann
92316a9853
restore: Improve error message for more than one ID
2018-01-06 22:44:18 +01:00
Alexander Neumann
180741609e
Merge pull request #1530 from juliangehring/patch-1
...
Fix code block formatting in FAQs
2018-01-06 18:46:14 +01:00
Julian Gehring
70250762f3
Fix code block formatting in FAQs
...
Fixes the formatting of a code block in the FAQs and makes it render properly.
2018-01-05 23:02:03 +00:00
Alexander Neumann
39ba17a2d6
Add entry to CHANGELOG
2018-01-05 19:29:02 +01:00
Alexander Neumann
cfe8c8c9cd
Merge pull request #1529 from restic/fix-1528
...
Fix creating missing dirs in local/sftp repo
2018-01-05 19:28:17 +01:00
Alexander Neumann
b45fc89512
local/sftp: Create repo dirs on demand in Save()
2018-01-05 17:51:09 +01:00
Alexander Neumann
aabc0ccaa7
fs: Make HasPathPrefix work with relative paths
2018-01-05 17:38:52 +01:00
Alexander Neumann
2bc4d200d4
Merge pull request #1518 from restic/fix-1317-again
...
forget: Also run prune when only IDs are forgotten
2018-01-02 20:39:12 +01:00
Alexander Neumann
0247fe01c0
Update homepage URL in README
2018-01-01 21:50:44 +01:00
Alexander Neumann
c912b38bf0
forget: Also run prune when only IDs are forgotten
2018-01-01 21:27:40 +01:00
Alexander Neumann
559946c58a
Add linebreak to VERSION generation
2017-12-30 09:55:56 +01:00
Alexander Neumann
a99637c613
Merge pull request #1511 from restic/improve-http-limiting
...
Improve limiting HTTP based backends
2017-12-29 20:57:02 +01:00
Alexander Neumann
36501dda73
Add changelog issue
2017-12-29 12:51:43 +01:00
Alexander Neumann
18ecd9df30
Improve limiting HTTP based backends
2017-12-29 12:43:49 +01:00
Alexander Neumann
c686dd0448
Merge pull request #1507 from restic/fix-fuse-list-timeout
...
fuse: Only reload list of snapshots once per minute
2017-12-28 14:06:59 +01:00
Alexander Neumann
6d91d468e7
Add entry to releases
2017-12-28 13:20:19 +01:00
Alexander Neumann
5f9b5b0219
Add entry to changelog
2017-12-28 13:20:03 +01:00
Alexander Neumann
3f7d85360a
fuse: Only reload list of snapshots once per minute
2017-12-28 13:18:27 +01:00
Alexander Neumann
8d8456590c
Update release script, add check for changelog/releases
2017-12-27 23:32:11 +01:00
Alexander Neumann
85f9f3e290
Fix changelog template for GitHub
2017-12-27 23:26:19 +01:00
Alexander Neumann
9e1180a29b
Fix changelog IDs
2017-12-27 23:22:35 +01:00
Alexander Neumann
e17c1096a0
Add date for 0.8.1
2017-12-27 22:42:15 +01:00