mirror of
https://github.com/restic/restic.git
synced 2026-10-12 04:57:12 +00:00
Extend SnapshotOptions w/ command data
In order to determine whether to save a snapshot, we need to capture the exit code returned by a command. In order to provide a nice error message, we supply stderr as well. Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
This commit is contained in:
1 parent
a2b76ff34f
commit
25350a9c55
2 files changed
+6
No files matched your search
@@ -676,6 +676,8 @@ func runBackup(ctx context.Context, opts BackupOptions, gopts GlobalOptions, ter
|
||||
Hostname: opts.Host,
|
||||
ParentSnapshot: parentSnapshot,
|
||||
ProgramVersion: "restic " + version,
|
||||
Command: command,
|
||||
CommandStderr: stderr,
|
||||
}
|
||||
|
||||
if !gopts.JSON {
|
||||
|
||||
Reference in new issue
Block a user