Bug 1415623

Summary: [RFE] posiblity to change temp folder of engine-backup
Product: Red Hat Enterprise Virtualization Manager Reporter: Jaroslav Spanko <jspanko>
Component: ovirt-engineAssignee: Yedidyah Bar David <didi>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0.0CC: gklein, jspanko, lsurette, mkalinin, rbalakri, Rhev-m-bugs, srevivo, ykaul, ylavi
Target Milestone: ovirt-4.2.0Keywords: EasyFix, FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-13 07:30:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Spanko 2017-01-23 09:34:01 UTC
For now it is not possible to change temp folder of engine backup - /tmp to something else.

2017-01-18 03:05:02 27138: Start of engine-backup mode backup scope all file /var/ovirt/backup.tar
2017-01-18 03:05:02 27138: Backing up:
2017-01-18 03:05:02 27138: Generating pgpass
2017-01-18 03:05:02 27138: Creating temp folder /tmp/engine-backup.oLpdkwhWhp/tar
2017-01-18 03:05:02 27138: - Files
2017-01-18 03:05:03 27138: Backing up files to /tmp/engine-backup.oLpdkwhWhp/tar/files
2017-01-18 03:05:07 27138: - Engine database 'engine'
2017-01-18 03:05:07 27138: Backing up database to /tmp/engine-backup.oLpdkwhWhp/tar/db/engine_backup.db
2017-01-18 03:05:21 27138: - DWH database 'ovirt_engine_history'
2017-01-18 03:05:21 27138: Backing up dwh database to /tmp/engine-backup.oLpdkwhWhp/tar/db/dwh_backup.db

Actually engine-backup use mktemp to create tmp folder.
Workaround is to change /usr/share/ovirt-engine/bin/engine-backup.sh and set/change TEMP_FOLDER line.

Could  be possible to define different temp directory in engine-backup option.

Thank you

Comment 3 Sandro Bonazzola 2017-04-10 07:12:45 UTC
Changing temp dir is already possible. engine-backup honor system temporary folder defined in $TMPDIR.
If a different tmpdir is needed, a TMPDIR=/path/to/tmpdir engine-backup <args> should be enough.

Is something different desired / expected here?

Comment 4 Sandro Bonazzola 2017-04-13 07:30:42 UTC

*** This bug has been marked as a duplicate of bug 1439332 ***