Alexander Neumann
cf497c2728
Add context to restic packages
2017-06-04 14:35:14 +02:00
Pauline Middelink
642cd3bebf
Fix restoring files as non-root user
...
As we cannot reliably detect in advance if we can set ownership, permissions,
timestamps or ext attributes, execute ALL the requested changes before
returning the first error we found.
Report total errors at end of restore and stop printing entire stacktraces
where just the error message is sufficient.
Fixes #655
2017-03-12 16:51:58 +01:00
Pauline Middelink
3468108d4c
Implement --tag processing to backup
and restore
command
...
Add `tags` argument to `FindLatestSnapshot()`
2017-03-08 19:55:58 +01:00
Alexander Neumann
c8fc789393
Use non-formatting functions of errors for strings
...
Commands used:
$ gofmt -w -r 'errors.Fatalf(x) -> errors.Fatal(x)' src
$ gofmt -w -r 'errors.Errorf(x) -> errors.New(x)' src
Closes #789
2017-02-10 19:39:49 +01:00
Alexander Neumann
22f5fc5739
Improve help text for slice options
2016-09-29 20:39:55 +02:00
Alexander Neumann
e994cacbfe
Fix short-hand option clash
2016-09-29 20:37:45 +02:00
Alexander Neumann
4eddcb344e
Update calls to debug.Log()
2016-09-28 19:56:03 +02:00
Alexander Neumann
565d72ef36
Use cobra for all commands
2016-09-27 19:53:03 +02:00
Alexander Neumann
bc42dbdf87
Create package restic/errors
2016-09-03 21:10:24 +02:00
Alexander Neumann
f7ae0cb78f
Fix cmds/restic for new structure
2016-09-03 21:10:24 +02:00
Alexander Neumann
c55b6ee544
Add restic.Fatal/f
...
This is a new error which implements the restic.Fataler interface.
Errors of this type are written to stderr, the restic exits. For all
other errors, restic prints the stack trace (if available).
2016-08-29 19:52:00 +02:00
Alexander Neumann
72aa6be38d
Replace fmt.Errorf() by errors.Errorf()
2016-08-29 19:23:50 +02:00
Alexander Neumann
444a268ce0
Replace stdlib errors with github.com/pkg/errors
2016-08-29 19:23:50 +02:00
Gerdus van Zyl
73e9cac5c4
gofmt + small doc fix
2016-05-10 22:20:03 +02:00
Gerdus van Zyl
8010a0d90c
fix
2016-05-10 21:57:30 +02:00
Gerdus van Zyl
3cb68ddb0d
Add option to restore latest snapshot with optional path and source filters
...
eg restic -r r1 restore latest --target restore2 --path "D:\dev\restic\bin\s1"
path and source filters also added to snapshot cmd
eg restic -r r1 snapshots --source nucore --path="D:\dev\restic\bin\s1"
Add option to restore latest snapshot with optional path and source filters
eg restic -r r1 restore latest --target restore2 --path "D:\dev\restic\bin\s1"
path and source filters also added to snapshot cmd
eg restic -r r1 snapshots --source nucore --path="D:\dev\restic\bin\s1"
2016-05-10 21:41:26 +02:00
Gerdus van Zyl
49f82f54b0
rebase, change source to host and add description to manual
2016-05-10 21:40:32 +02:00
Fabian Wickborn
442780f214
Move commands to src/cmds
2016-02-23 07:21:28 +01:00