norgbackup/docs/content/reference/command_line.md

18 lines
911 B
Markdown
Raw Permalink Normal View History

2024-08-24 15:17:52 +02:00
+++
title = "Command Line Reference"
weight = 20
+++
Here are the available norg command line parameters for the most recent version.
If you are using an older version of norg some of these parameters may not work.
Please use `norg --help` to view all available parameters in your version.
```help
2024-09-03 12:42:49 +02:00
{{ get_source(path="other/command_line.txt",pure=true) }}
2024-08-24 15:17:52 +02:00
```
2024-08-24 21:20:43 +02:00
The `-c`, or `--config`, parameter is required. Failing to provide this will only show the above help information.
When specifying the `-r` or `--repository` parameter, you can specify either
the `label` or `path` for the repository defined in the configuration file.
2024-08-24 15:17:52 +02:00
2024-11-25 12:14:13 +01:00
A sample configuration file can be generated using the `generate_config` argument. By default, the configuration file will be placed in the current directory and named `norg_backup.toml` but you can use the `-c`, `--config` parameter to define an alternative location for it.