2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-16 01:57:10 +00:00
restic/internal
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
..
archiver Reject files excluded by name before calling lstat to improve scan speed 2018-08-12 17:51:12 +02:00
backend S3 backend: accept AWS_SESSION_TOKEN 2018-07-12 16:18:19 +03:00
cache cache: Fix test for new behavior 2018-08-11 23:11:51 +02:00
checker checker: Disable size check for now 2018-07-15 21:52:38 +02:00
crypto crypto: Rework Seal/Open to use sliceForAppend 2017-11-01 10:30:40 +01:00
debug debug: Auto-shorten IDs passed as parameters 2018-01-25 20:49:26 +01:00
errors errors: Make Cause() unwrap *url.Error 2018-01-23 23:14:05 +01:00
filter filter: Allow double wildcard in ChildMatch 2018-06-09 23:18:13 +02:00
fs fs: Add helper functions ReadDir/ReadDirNames 2018-06-20 22:53:53 +02:00
fuse Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
hashing Moves files 2017-07-23 14:19:13 +02:00
index Merge pull request #1582 from restic/optimize-debug-log 2018-01-26 21:57:18 +01:00
limiter rclone: Respect bandwith limits 2018-05-22 20:48:17 +02:00
list Optimize Repository.ListPack() 2018-01-23 22:39:51 -05:00
migrations Fix calls to repo/backend.List() everywhere 2018-01-21 21:15:09 +01:00
mock check: Allow filling the cache during check 2018-04-01 13:59:27 +02:00
options errors: Add "Fatal" prefix for Fatalf() 2018-01-06 23:27:47 +01:00
pack backend: Improve Save() 2018-03-03 15:49:44 +01:00
repository repository: Improve buffer pooling 2018-04-22 11:37:05 +02:00
restic stat: Improve error message for bad snapshot ID (fixes #1933) 2018-08-08 16:49:36 -06:00
restorer restorer: Fix traverseTree 2018-07-21 23:24:40 +02:00
selfupdate Add 'self-update' command 2018-08-12 23:34:47 +02:00
test Add test.Helper, also works with Go 1.8 2018-04-22 11:37:05 +02:00
textfile Add textfile 2018-05-01 14:38:59 +02:00
ui Improve message for number of bytes newly added 2018-07-31 19:08:43 +02:00
walker walker: Don't ignore empty trees by default 2018-06-17 09:49:03 +02:00
worker Run goimports 2017-07-23 14:21:03 +02:00