Disable logging of 'exclude' files #620
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#620
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 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?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.
Sounds good!
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 :-)
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!
Marvelous !
Thanks