Add job dir to backup paths

This commit is contained in:
IamTheFij 2022-02-23 21:43:19 -08:00
parent 2a06097091
commit 512d924f0c
1 changed files with 1 additions and 1 deletions

2
job.go
View File

@ -247,7 +247,7 @@ func (t BackupFilesTask) RunBackup(cfg TaskConfig) error {
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)
cfg.Logger.Fatal(err)