Start Command (start)
start command options and behavior.Source: pgBackRest Command Docs: start
After stop prevents pgBackRest processes from running, use start to permit them again. This does not immediately start any processes. See Starting and Stopping for details and examples.
General Options
Allow Run as Root Option (--allow-root)
Allow the command to run as the root user.
By default, only restore can run as root because it manages file ownership. Other commands can create root-owned files, for example in the repository. The PostgreSQL user cannot access these files, which causes later commands to fail.
Enable this option to run another command as root. Preferably, run pgBackRest as the user that owns the repository and PostgreSQL cluster.
Config Option (--config)
pgBackRest configuration file.
Use this option to select a configuration file other than the default.
Config Include Path Option (--config-include-path)
Path to additional pgBackRest configuration files.
pgBackRest combines files with the .conf extension in this location with its configuration file. The result is one configuration file.
Config Path Option (--config-path)
Base path of pgBackRest configuration files.
Set the default base path for --config and --config-include-path. Explicit command-line values for these options override this setting.
For example, specify only --config-path=/conf/pgbackrest to set the --config default to /conf/pgbackrest/pgbackrest.conf. This also sets the --config-include-path default to /conf/pgbackrest/conf.d.
Lock Path Option (--lock-path)
Path where lock files are stored.
pgBackRest creates lock files in this path to prevent conflicting operations from running at the same time.
Neutral Umask Option (--neutral-umask)
Use a neutral umask.
Set the umask to 0000 to control repository permissions. The default directory mode is 0750. The default file mode is 0640.
To use the executing user’s umask, set neutral-umask=n in the configuration file or --no-neutral-umask on the command line.
Set Process Priority Option (--priority)
Set process priority.
Set the process priority, or niceness, used by the kernel scheduler. Positive values decrease priority. Negative values increase priority. Processes usually lack permission to increase their priority.
Stanza Option (--stanza)
Defines the stanza.
A stanza contains the configuration for a PostgreSQL database cluster. It defines the cluster location, backup method, archive options, and other settings. Most database servers have one PostgreSQL cluster and one stanza. A backup server has a stanza for each cluster that needs a backup.
Choose a stanza name that describes the databases in the cluster. The primary and all replicas use the same stanza name. A functional name, such as app or dw, is preferable to a local cluster name, such as main or prod.
Log Options
Console Log Level Option (--log-level-console)
Level for console logging.
The following log levels are supported:
off- No logging at all (not recommended)error- Log only errorswarn- Log warnings and errorsinfo- Log info, warnings, and errorsdetail- Log detail, info, warnings, and errorsdebug- Log debug, detail, info, warnings, and errorstrace- Log trace (very verbose debugging), debug, info, warnings, and errors
File Log Level Option (--log-level-file)
Level for file logging.
The following log levels are supported:
off- No logging at all (not recommended)error- Log only errorswarn- Log warnings and errorsinfo- Log info, warnings, and errorsdetail- Log detail, info, warnings, and errorsdebug- Log debug, detail, info, warnings, and errorstrace- Log trace (very verbose debugging), debug, info, warnings, and errors
Std Error Log Level Option (--log-level-stderr)
Level for stderr logging.
Select the log levels that write to stderr instead of stdout, which log-level-console controls. Output to stderr excludes the timestamp and process.
The following log levels are supported:
off- No logging at all (not recommended)error- Log only errorswarn- Log warnings and errorsinfo- Log info, warnings, and errorsdetail- Log detail, info, warnings, and errorsdebug- Log debug, detail, info, warnings, and errorstrace- Log trace (very verbose debugging), debug, info, warnings, and errors
Log Path Option (--log-path)
Path where log files are stored.
pgBackRest stores log files in this path. If log-level-file=off, no log path is necessary.
Log Timestamp Option (--log-timestamp)
Enable timestamp in logging.
Include timestamps in console and file logs. Disable this option for special uses, such as documentation generation.
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)