How To: Clone or back up pipelines or projects
This article describes how to back up your pipelines or projects locally.
How to
Prerequisite
Commands
Back up the pipeline
codefresh get pip "<pipeline_name>" -o yaml > <pipeline_backup_file>
where:
"<pipeline_name>"
is the name of the pipeline to back up.<pipeline_backup_file>
is the name of the file to which to save the backed up pipeline.
Export protected variables
codefresh get pip "pipeline_name" --decrypt-variables -o yaml > pipeline_backup_file
Recreate a pipeline from a backup file
codefresh replace -f pipeline_backup_file