borgmatic

config generate

πŸ”

Here's the command-line help for this action in the most recent version of borgmatic. If you're using an older version, some of these flags may not work, and you should instead run the action with --help to see the flags specific to your borgmatic version.

usage: borgmatic config generate [-s SOURCE_FILENAME] [-d DESTINATION_PATH]
                                 [--overwrite] [--split] [-h]

Generate a sample borgmatic configuration file

config generate arguments:
  -s SOURCE_FILENAME, --source SOURCE_FILENAME
                        Optional configuration file to merge into the
                        generated configuration, useful for upgrading your
                        configuration
  -d DESTINATION_PATH, --destination DESTINATION_PATH
                        Destination configuration file (or directory if using
                        --split), default: /etc/borgmatic/config.yaml
  --overwrite           Whether to overwrite any existing destination file,
                        defaults to false
  --split               Assuming the destination is a directory instead of a
                        file, split the configuration into separate files
                        within it, one per option, useful for documentation
  -h, --help            Show this help message and exit

Improve this documentation

Have an idea on how to make this documentation even better? Use our issue tracker to send your feedback!