Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

BuildForge bfexport: How to Export Projects and Snapshots to XML

The bfexport command is BuildForge’s CLI utility for exporting project data to XML. It is useful when you need a backup before changes, want to move project definitions, or need a portable project snapshot for later import.

Originally published on 2013-04-24; fully revised and updated.

This revision is based on the original post on DevOpsSchool and keeps its command intent while improving structure and readability.

buildforge-exporting-project-bfexport

Where bfexport runs and what it exports

The original guide places bfexport in the BuildForge Home Dir – Platform location. The command exports project-related data in XML format.

  • Use -l to list available projects and their UUIDs.
  • Use -f to write export output to a file.
  • The generated file is intended for later import workflows.

Command syntax

To display syntax help, run bfexport with no options.

./bfexport
Usage: bfexport -l
or:
bfexport [-c comment] [-f filename] [-g] [-s] [-L] [-n] <Project name or UUID> <Version name>Code language: HTML, XML (xml)

The original option list also includes -C for server collectors, with a note that it requires -s.

Option reference

OptionPurposeNotes
-lList all projects and project UUIDsDiscovery step before export
-cAdd a comment to output XMLUseful for change context or audit notes
-fWrite output to a fileRequired when generating a file for import
-gInclude group usersExpands export scope
-sInclude all serversNeeded for server-related export data
-CInclude server collectorsRequires -s
-LInclude LDAP configurationUse only when you need directory config in export
-nInclude template notificationsIncludes notification settings from templates

Command patterns compared

PatternWhat it doesExample
bfexport -lLists projects and UUIDsbfexport -l
bfexport -f file projectExports default snapshot for a projectbfexport -f helloworld test_project
bfexport -f file project snapshotExports one named snapshotbfexport -f helloworld test_project snapshot_1
bfexport -f file UUIDExports using project UUIDbfexport -f helloworld 675B57CC-8366-11DD-B2E0-043C04E44E1A

Typical export workflow

flowchart TD
    A[Open BuildForge platform directory] --> B[Run bfexport -l]
    B --> C[Select project name or UUID]
    C --> D[Decide snapshot scope]
    D --> E[Run bfexport with -f output file]
    E --> F{Need extra config}
    F -- yes --> G[Add -s and optionally -C]
    F -- yes --> H[Add -L or -n if needed]
    F -- no --> I[Save minimal export]
    G --> J[Store XML for import]
    H --> J
    I --> J

Practical command examples

List project names and UUIDs

bfexport -l

Export default project snapshot by project name

bfexport -f helloworld test_project

Export one named snapshot

bfexport -f helloworld test_project snapshot_1

Export by UUID with a comment

bfexport -c "Saving a copy of project before making changes" -f helloworld 675B57CC-8366-11DD-B2E0-043C04E44E1ACode language: JavaScript (javascript)

Include servers and server collectors

./bfexport -c "Saving a copy of project before making changes" -C -s -f Citius-Coverity-Full-parent 6d66e5050c5a1000bcd5cd010bc00bc0Code language: PHP (php)

Parent snapshot syntax shown in the original post

bfexport -f helloworld test_project parent DocumentCode language: PHP (php)

Common pitfalls and best practices

  • Always use -f when you need a reusable XML export file.
  • Run -l first to avoid typos in project names and to confirm UUIDs.
  • If you use -C, include -s as required by the original option notes.
  • Add a meaningful -c comment before major project changes.
  • Validate parent snapshot syntax in your environment, because the original example is terse and version-specific behavior may differ.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Top 21 Firefox Addon every software engineers must know

Mozilla Firefox is a very popular browser, especially among web designers and developers. These days, with such a crowded field, staying at the top of the browser…

Read More

Build Forge Concepts and Terminology

Reference – http://pic.dhe.ibm.com/infocenter/bldforge/v8r0/index.jsp?topic=%2Fcom.ibm.rational.buildforge.doc%2Ftopics%2Fjobs_run_bom__top.html Build Forge uses a simple set of objects to construct descriptions of process automation. This section gives you an overview of key concepts and…

Read More

Buildforge common Issues and Troubleshooting | Buildforge Troubleshooting Guide

Know about the BuildForge Server before Troubleshooting. 1. What is the Full version of Build Forge being used (for example Build Forge  7.1.2.2-1-0111).This can be obtained under…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x