Skip to content

Commit

Permalink
Add verbose setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Kundert authored and Ken Kundert committed Sep 23, 2019
1 parent a00c8b3 commit 8b0ffea
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
8 changes: 6 additions & 2 deletions doc/configuring.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ one file for each repository you need. Except for *configurations* and
repository specific file. If a setting shows in both files, the version on the
configuration specific file dominates.

You can get a complete list of available configuration settings by running::

emborg settings --available


Shared Settings
---------------
Expand Down Expand Up @@ -47,8 +51,8 @@ readable by others (chmod 600 settings). Alternatively, you can use `Avendesora
the Avendesora account name of the key to *avendesora_account*.


Configuration Settings
----------------------
Configurations
--------------

Each backup configuration must have a settings file in ~/.config/emborg. The
name of the file is the name of the backup configuration. It might look like
Expand Down
3 changes: 1 addition & 2 deletions doc/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Releases
- Moved log files to ~/.local/share/emborg (run 'mv
~/.config/emborg/*.{log,lastbackup}* ~/.local/share/emborg' before using
this version).
- Added *exclude_from* setting.
- Added *prefix* setting
- Added *prefix*, *exclude_from*, and *verbose* settings.
- Provide defaults for *archive* setting.

**1.4 (2019-04-24)**:
Expand Down
1 change: 1 addition & 0 deletions emborg/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
run_before_backup = 'command to run before archive is to be created',
src_dirs = 'the directories to archive',
ssh_command = 'command to use for ssh, can be used to specify ssh options',
verbose = 'make Borg more verbose',
)
# Any setting found in the users settings files that is not found in
# EMBORG_SETTINGS or BORG_SETTINGS is highlighted as a unknown setting by
Expand Down
2 changes: 2 additions & 0 deletions emborg/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ def borg_options(self, cmd, options):
args = []
if 'verbose' in options:
args.append('--verbose')
elif self.value('verbose'):
args.append('--verbose')
if 'trial-run' in options and cmd in commands_with_dryrun:
args.append('--dry-run')
if cmd == 'create':
Expand Down

0 comments on commit 8b0ffea

Please sign in to comment.