Bug 1303205

Summary: [RFE] Backup and restore a single projects to its original state
Product: OpenShift Container Platform Reporter: Ryan Howe <rhowe>
Component: RFEAssignee: Brett Thurber <bthurber>
Status: CLOSED WONTFIX QA Contact: Johnny Liu <jialiu>
Severity: high Docs Contact:
Priority: high    
Version: 3.1.0CC: anvivanov, aos-bugs, arghosh, bl, boris.ruppert, bthurber, bward, ccoleman, ckyrouac, clasohm, curdin.banzer, dcaldwel, dmoessne, eminguez, erich, jcall, jgiordan, jlucky, jmatthew, jokerman, klaas, knakayam, knewcome, krohn, mfojtik, mmccomas, myllynen, nbhatt, ngompa13, nils.ketelsen, pcbho, pdwyer, pep, pkanthal, pweil, rcwwilliams07, rhowe, sreber, thorsten.krause, tkonishi, trogers
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 19:30:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ryan Howe 2016-01-29 20:21:17 UTC
Needing Back up and Restore procedures/feature to restore a single project. 

-Looking for a feature that would make it easy to restore a whole project to its original state if deleted. 
   - Either restoring from past ectd backups or from a separate back up of the project.

Currently `oc export` requires addition steps to restore a project back to its original state.

Comment 1 Clayton Coleman 2016-02-07 19:16:18 UTC
What steps do you considered required above and beyond oc export?

Comment 2 Ryan Howe 2016-03-28 19:13:19 UTC
Using just `oc export`  will not work as a back up when dealing objects that reference images that have been build and pushed the internal registry.  

We are looking for a feature that would allow a system admin to backup an existing project and restore it under a different namespace or different environment.

Comment 3 Brennan Vincello 2016-05-26 22:57:32 UTC
Using wordpress/mysql as an example, the current workflow for project backup and restore goes something like this:

- create project
- create pvc for mysql
- create pvc for wordpress
- deploy mysql pod
- deploy wordpress pod
- export mysql pod yaml
- (update mysql-pod.yaml with the passwords/usernames from the exported pod yaml)
- delete project

- create second project
- create new pvc for mysql                        
- create new pvc for wordpress
- find/verify the new mysql pv
- copy everything from the old mysql pv to the new mysql pv
- deploy previously exported mysql pod yaml
- deploy wordpress pod

More at: https://github.com/brennv/wordpress-ex

Comment 4 Paul Weil 2016-05-27 12:24:04 UTC
Being tracked as a feature request in Trello here: https://trello.com/c/ZzlGpdCy/683-backup-and-restore-a-single-project-to-its-original-state

Comment 5 Eric Rich 2016-08-16 16:32:57 UTC
https://trello.com/c/ZDsGofPQ/319-ose-gce-integration-day-2-operation-activities seems to also be tracking this.

Comment 7 Dan McPherson 2017-02-27 13:53:53 UTC
*** Bug 1427162 has been marked as a duplicate of this bug. ***

Comment 15 Paul Weil 2018-06-11 19:30:22 UTC
*** Bug 1581348 has been marked as a duplicate of this bug. ***