Disable logging of 'exclude' files #620

Closed
opened 2022-12-18 20:00:53 +00:00 by lacrimal · 6 comments

What I'm trying to do and why

Want to disable in verbosisty=1 logging of excluded files lines like:
x /home/ja/.cache/mesa_shader_cache/b4/f8eb91d2a16e36deee31a68245ab0fbb854634
x /home/ja/.cache/mesa_shader_cache/b4/66c8150a24cdaa34576ef15736b0bc68ef1463
x /home/ja/.cache/mesa_shader_cache/a4

The amount of 'excluded' files is enormous, I'm synchronizing only few files and want to keep log simple.

Don't know is it borgmatic or borg feature but with borg 1.1.18 and borgmatic 1.5.22 files that are excluded from archive was not present in log file.

Regardless of the software version 'exclude' files are nit present in backup so this is only about disabling logging of exclude files.

Borgmatic is called like this:

/bin/borgmatic --verbosity 1 --syslog-verbosity 1 --files

Other notes / implementation ideas

Environment

borgmatic version: 1.7.4

borgmatic installation method: pip3 install --user borgbackup[pyfuse3]

Borg version: 1.2.2

Python version: 3.9.13

operating system and version: centOS 8 Stream

#### What I'm trying to do and why Want to disable in verbosisty=1 logging of excluded files lines like: x /home/ja/.cache/mesa_shader_cache/b4/f8eb91d2a16e36deee31a68245ab0fbb854634 x /home/ja/.cache/mesa_shader_cache/b4/66c8150a24cdaa34576ef15736b0bc68ef1463 x /home/ja/.cache/mesa_shader_cache/a4 The amount of 'excluded' files is enormous, I'm synchronizing only few files and want to keep log simple. Don't know is it borgmatic or borg feature but with borg 1.1.18 and borgmatic 1.5.22 files that are excluded from archive was not present in log file. Regardless of the software version 'exclude' files are nit present in backup so this is only about disabling logging of exclude files. Borgmatic is called like this: `/bin/borgmatic --verbosity 1 --syslog-verbosity 1 --files` #### Other notes / implementation ideas #### Environment **borgmatic version:** 1.7.4 **borgmatic installation method:** pip3 install --user borgbackup[pyfuse3] **Borg version:** 1.2.2 **Python version:** 3.9.13 **operating system and version:** centOS 8 Stream
Owner

What you're seeing is a change resulting from #590, implemented in borgmatic 1.7.3: borgmatic now lists excluded files in its output when --files/--list is given on the command-line. What do you think of another command-line flag to omit excludes from the output? Or alternatively, omit excludes by default and add a flag to show them?

What you're seeing is a change resulting from #590, implemented in borgmatic 1.7.3: borgmatic now lists excluded files in its output when `--files`/`--list` is given on the command-line. What do you think of another command-line flag to omit excludes from the output? Or alternatively, omit excludes by default and add a flag to show them?
Author

Indeed, there will be always people that want to reverse something :-) I think #590 is right, and should be default as it is but only in verbose mode.
Flag to omit excludes for people like me, who don't want to know about their excludes will be nice feature.
Thank you for your help and work.

Indeed, there will be always people that want to reverse something :-) I think #590 is right, and should be default as it is but only in verbose mode. Flag to omit excludes for people like me, who don't want to know about their excludes will be nice feature. Thank you for your help and work.
Owner

Sounds good!

Sounds good!
witten added the
design finalized
label 2022-12-18 22:00:18 +00:00
witten added the
good first issue
label 2023-02-04 17:15:33 +00:00
Author

Hi,
I'm about to migrate to new server, currently using workaround to remove 'x' lines from logs. Wondering when is the chance to implement above change to borgmatic, so I can finally remove my ugly scripts :-)

Hi, I'm about to migrate to new server, currently using workaround to remove 'x' lines from logs. Wondering when is the chance to implement above change to borgmatic, so I can finally remove my ugly scripts :-)
Owner

Thanks for the nudge. Instead of adding a new flag, I ended going with your idea of only showing the excluded files when using --verbosity 2. (But excluded files always show up with --dry-run regardless of verbosity.)

Just released in borgmatic 1.7.8!

Thanks for the nudge. Instead of adding a new flag, I ended going with your idea of only showing the excluded files when using `--verbosity 2`. (But excluded files always show up with `--dry-run` regardless of verbosity.) Just released in borgmatic 1.7.8!
Author

Marvelous !

Thanks

Marvelous ! Thanks
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#620
No description provided.