Project

General

Profile

Actions

Refactor #22566

closed

k-backup should not accept exit 2 from tar when backing up configs

Added by Evgeni Golov over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Backup & Restore
Target version:
Branch:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Currently k-backup allows tar to exit with code 2 when backing up config files: https://github.com/theforeman/foreman-packaging/blob/rpm/develop/katello/katello/backup.rb#L335

This is most probably due to the fact that we try to backup folders that might not exist.

Instead we should only try to backup folders that are present.

Actions

Also available in: Atom PDF