restic/cmd/restic
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
..
testdata Reduce dataset for integration tests 2018-03-11 21:07:47 +01:00
.gitignore
cleanup.go Return exit code 130 when SIGINT is received 2018-04-20 21:09:50 +02:00
cmd_backup.go Reject files excluded by name before calling lstat to improve scan speed 2018-08-12 17:51:12 +02:00
cmd_cache.go Add 'cache' command 2018-05-01 16:27:44 +02:00
cmd_cat.go cat: Do not display a stack trace 2018-05-10 19:22:46 +02:00
cmd_check.go check: Update --cache-dir argument handling based on code review comments 2018-07-22 18:24:11 +01:00
cmd_debug.go
cmd_diff.go
cmd_dump.go
cmd_find.go Fix find -i (case-insensitive search) 2018-06-24 19:35:11 +02:00
cmd_forget.go Add custom Duration type 2018-05-13 12:48:42 +02:00
cmd_generate.go
cmd_init.go
cmd_key.go add JSON output support for restic key list cmd 2018-06-18 15:26:26 -07:00
cmd_list.go list: Improve error message 2018-05-17 19:41:56 +02:00
cmd_ls.go ls: Use walker for ls 2018-06-09 23:35:20 +02:00
cmd_migrate.go
cmd_mount.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
cmd_options.go
cmd_prune.go debug: Remove manual Str() call Log() 2018-01-25 20:49:41 +01:00
cmd_rebuild_index.go index: Limit index files to 3000 pack files 2018-01-26 21:07:16 +01:00
cmd_restore.go restore: New --verify flag to verify restored files content 2018-06-11 07:57:22 -04:00
cmd_self_update.go Add 'self-update' command 2018-08-12 23:34:47 +02:00
cmd_snapshots.go
cmd_stats.go Replace Exitf with errors.Fatalf 2018-08-10 22:15:33 -06:00
cmd_tag.go debug: Remove manual Str() call Log() 2018-01-25 20:49:41 +01:00
cmd_unlock.go
cmd_version.go Make version output one line. 2018-03-21 21:49:03 +01:00
doc.go
exclude.go Reject files excluded by name before calling lstat to improve scan speed 2018-08-12 17:51:12 +02:00
exclude_test.go Reject files excluded by name before calling lstat to improve scan speed 2018-08-12 17:51:12 +02:00
find.go
flags_test.go
format.go find: Use walker.Walk 2018-06-09 23:35:20 +02:00
global.go Print message for password being read from stdin 2018-07-31 20:21:18 +02:00
global_debug.go Add profile build flag 2018-04-30 14:19:04 +02:00
global_release.go Add profile build flag 2018-04-30 14:19:04 +02:00
integration_fuse_test.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
integration_helpers_test.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
integration_helpers_unix_test.go
integration_helpers_windows_test.go
integration_test.go Refactor: introduced restorer tree visitor 2018-06-11 07:57:22 -04:00
local_layout_test.go
lock.go mount: Ignore non-existing locks 2018-02-25 13:11:03 +01:00
main.go Use new archiver code for backup 2018-04-28 22:08:11 +02:00
table.go