For more information, you can view =borg.1= manual page.
It has all of the information you can possibly know about the tool, making it a perfect reference.
This note rips off a few relevant pages from there.
* Synopsis
#+begin_src shell :results silent
borg [options...] [subcommand [subcommand_options...] [subcommand_positional_args...]]
#+end_src
Borg recommends to pass the options before the positional arguments.
It can be picky with certain subcommands output being affected from the order of the arguments but you should be safe when you do the recommended practice.
* Options
Borg uses a Git-style command-line interface with subcommands and some common options to choose from.
- You can set the log level of the program with ~--debug~, ~--info~, ~--warning~, ~--error~, and ~--critical~.
- ~-v, --verbose~ - alias for ~--info~
- ~-p, --progress~ - show progress information; will be slower on certain operations due to additional passing of the metadata
Keep in mind, Borg doesn't have global configuration files, only per-repo configurations.
You can create configurations with a little hard work and shell scripts.
But if you want a tool that already does that, you have [[https://torsion.org/borgmatic/][Borgmatic]] as an option with plain-text files in YAML format.
** Repositories and archives
Most of the subcommands take the repository path with a certain format.
#+begin_src
${REPOSITORY_URL}::${ARCHIVE_NAME}
#+end_src
#+begin_src
# Points to an repo
/home/foo-dogsquared/backup
# Points to an archive named '2021-03-02' from the previous repo.