Project

General

Profile

Actions

Bug #20650

closed

Fail when backing up to a directory postgres cannot write to

Added by Christine Fouant about 7 years ago. Updated about 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1483033

Description of problem:
Currently Backup needs to be written to either /tmp or /var/tmp (preferred). Writing to any other root directory fails because Postgres cannot write files to those locations.

We should have a failure with warning if user selects a directory to which Postgres doesn't have access.

Version-Release number of selected component (if applicable):

How reproducible:
Always

Steps to Reproduce:
1. run # katello-backup /any/directory/not/tmp

Actual results:
Failure without any reasoning other than tar file creation fails.

Expected results:
Fail with note to write to /var/tmp or /tmp so that Postgres has write access

Additional info:

Actions

Also available in: Atom PDF