Chapter 3. The Command-Line-Runner

If you have a configuration file named phpbu.xml in your current working directory you can execute phpbu like this

phpbu
phpbu 2.1.0

Configuration read from /some/path/phpbu.xml

OK (1 backup, 0 checks, 0 encryption, 0 syncs, 0 cleanups)

If you want to use a custom name for your configuration file you have to use the --configuration option.

phpbu --configuration=MyConfig.xml
phpbu 2.1.0

Configuration read from /some/path/MyConfig.xml

OK (1 backup, 0 checks, 0 encryption, 0 syncs, 0 cleanups)

Command-Line-Runner options

Here is the list of available options for the command line runner.

$ phpbu --help
phpbu 2.1.1

Usage: phpbu [option]

--bootstrap=<file>     A "bootstrap" PHP file that is included before the backup.
--configuration=<file> A phpbu xml config file.
--colors               Use colors in output.
--debug                Display debugging information during backup generation.
-h, --help             Prints this usage information.
-v, --verbose          Output more verbose information.
-V, --version          Output version information and exit.
--bootstrap

A "bootstrap" PHP file that is included before executing the backup.

--configuration

Path to the phpbu config file to use. See Chapter 2 for more details.

--colors

Use colors in output.

--debug

Display debugging information during backup generation.

Please open a ticket on GitHub to suggest improvements to this page. Thanks!