Add job dir to backup paths
This commit is contained in:
parent
2a06097091
commit
512d924f0c
2
job.go
2
job.go
@ -247,7 +247,7 @@ func (t BackupFilesTask) RunBackup(cfg TaskConfig) error {
|
|||||||
t.BackupOpts = &BackupOpts{} // nolint:exhaustivestruct
|
t.BackupOpts = &BackupOpts{} // nolint:exhaustivestruct
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := cfg.Restic.Backup(t.Files, *t.BackupOpts); err != nil {
|
if err := cfg.Restic.Backup(append(t.Files, cfg.JobDir), *t.BackupOpts); err != nil {
|
||||||
err = fmt.Errorf("failed backing up files: %w", err)
|
err = fmt.Errorf("failed backing up files: %w", err)
|
||||||
cfg.Logger.Fatal(err)
|
cfg.Logger.Fatal(err)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user