2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-05 10:30:49 +00:00
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 Moves files 2017-07-23 14:19:13 +02:00
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 Fix calls to repo/backend.List() everywhere 2018-01-21 21:15:09 +01:00
cmd_diff.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
cmd_dump.go repository/master_index: Optimize Index.Lookup() 2018-01-23 22:25:56 -05:00
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 Rework generation of manpages and completion files 2017-09-26 13:12:12 +02:00
cmd_init.go init: Correct text (backend vs. repository) 2018-01-20 09:51:49 +01:00
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 Capitalize short help commands 2017-09-11 09:32:44 -07:00
cmd_mount.go Support NetBSD without fuse 2018-06-16 15:55:04 +09:00
cmd_options.go Capitalize short help commands 2017-09-11 09:32:44 -07:00
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 Add --last flag to snapshots command 2017-10-26 14:02:29 +08:00
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 use global context for check, debug, dump, find, forget, init, key, 2017-12-06 07:02:55 -05:00
cmd_version.go Make version output one line. 2018-03-21 21:49:03 +01:00
doc.go Moves files 2017-07-23 14:19:13 +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
exclude.go Reject files excluded by name before calling lstat to improve scan speed 2018-08-12 17:51:12 +02:00
find.go Fix calls to repo/backend.List() everywhere 2018-01-21 21:15:09 +01:00
flags_test.go Moves files 2017-07-23 14:19:13 +02:00
format.go find: Use walker.Walk 2018-06-09 23:35:20 +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
global.go Print message for password being read from stdin 2018-07-31 20:21:18 +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 Moves files 2017-07-23 14:19:13 +02:00
integration_helpers_windows_test.go Moves files 2017-07-23 14:19:13 +02:00
integration_test.go Refactor: introduced restorer tree visitor 2018-06-11 07:57:22 -04:00
local_layout_test.go Remove all dot-imports 2017-10-02 15:06:39 +02:00
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 Show the amount of snapshots 2017-10-01 17:14:54 +02:00