1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 18:28:42 +00:00
Commit graph

1608 commits

Author SHA1 Message Date
Thomas Waldmann
21bd01ef16 add a --filter option replacing --changed/--unchanged
the problem here was that we do not just have changed and unchanged items,
but also a lot of items besides regular files which we just back up "as is" without
determining whether they are changed or not. thus, we can't support changed/unchanged
in a way users would expect them to work.

the A/M/U status only applies to the data content of regular files (compared to the index).
for all items, we ALWAYS save the metadata, there is no changed / not changed detection there.

thus, I replaced this with a --filter option where you can just specify which
status chars you want to see listed in the output.

E.g. --filter AM will only show regular files with A(dded) or M(odified) state, but nothing else.
Not giving --filter defaults to showing all items no matter what status they have.

Output is emitted via logger at info level, so it won't show up except if the logger is at that level.
2015-12-02 03:29:20 +01:00
Antoine Beaupré
b09643e14f change file status test and cleanup last ref to --verbose
this ports the changes here to #445
2015-11-24 12:11:43 -05:00
Antoine Beaupré
1785ca54ba do not display unchanged files by default
add a --unchanged topical file to display those files
2015-11-24 12:07:57 -05:00
Antoine Beaupré
fce5aed5bb move changed with other topical flags
we need to have a sane default there otherwise the option may not be defined in some sub-commands and will crash
2015-11-24 12:07:57 -05:00
Antoine Beaupré
a062e8f821 update documentation to follow changes 2015-11-24 12:07:57 -05:00
Antoine Beaupré
8d3d1c22d6 silence borg by default
this also prints file status on stderr directly, bypassing the logger
as we do with other topical flags (like progress and status)
2015-11-24 12:07:56 -05:00
Antoine Beaupré
9899eaf241 silence file listing unless --changed is present 2015-11-24 12:07:56 -05:00
Antoine Beaupré
6b265f2a53 alias --verbose to --log-level=info
print_verbose is now simply logger.info() and is always displayed if
log level allows it. this affects only the `prune` and `mount`
commands which were the only users of the --verbose option. the
additional display is which archives are kept and pruned and a single
message when the fileystem is mounted.

files iteration in create and extract is now printed through a
separate function which will be later controled through a topical
flag.
2015-11-24 12:07:03 -05:00
TW
d1377e5e15 Merge pull request #445 from anarcat/status-bug
add test for the weird unchanged file status
2015-11-24 18:04:09 +01:00
Thomas Waldmann
a8227aeda0 update CHANGES 2015-11-24 17:38:12 +01:00
Antoine Beaupré
48bb4c326d cross-reference the status oddity in the usage 2015-11-23 19:48:33 -05:00
Antoine Beaupré
af7b17960e clarify documentation on the A status oddity 2015-11-23 19:44:54 -05:00
Antoine Beaupré
a75d77226b add test for the weird unchanged file status
this tests the behaviour found in #403 and documented in #418, but doesn't fail on the unexpected A
2015-11-23 19:44:54 -05:00
TW
f834e335f9 Merge pull request #437 from anarcat/no-progress
fix --no-progress
2015-11-23 18:48:45 +01:00
anarcat
2ac515a5f7 fix typos 2015-11-23 12:41:20 -05:00
Antoine Beaupré
0196d80b28 fix progress tests on travis
we now check if we really have a terminal before doing the fancy auto-detection testing
2015-11-22 21:24:37 -05:00
Thomas Waldmann
2b8b31bca5 update pytest-benchmark requirement
it's released now. \o/
2015-11-22 15:39:31 +01:00
TW
04f081fea7 Merge pull request #442 from ThomasWaldmann/fix-compiler-warnings
get rid of C compiler warnings, fixes #391
2015-11-22 14:15:24 +01:00
TW
faacd18244 Merge pull request #443 from ThomasWaldmann/tb-add-sysinfo
include system info below traceback, fixes #324
2015-11-22 14:09:07 +01:00
TW
3972269d6f Merge pull request #441 from ThomasWaldmann/break-lock
Break lock
2015-11-22 14:08:47 +01:00
TW
2d4a71a381 Merge pull request #439 from ThomasWaldmann/avoid-orphan-locks
Avoid orphan locks, see #285
2015-11-22 14:08:25 +01:00
TW
08346dd968 Merge pull request #438 from ThomasWaldmann/max-lock-wait
Max lock wait, fixes #210
2015-11-22 14:08:08 +01:00
Thomas Waldmann
adb35ab07f include system info below traceback, fixes #324 2015-11-21 22:51:59 +01:00
Thomas Waldmann
7247043db0 get rid of C compiler warnings, fixes #391 2015-11-21 22:08:30 +01:00
Thomas Waldmann
38994c78fc implement borg break-lock REPO command, fixes #157
due to borg's architecture, breaking the repo lock needs first creating a repository object.
this would usually try to get a lock and then block if there already is one.
thus I added a flag to open without trying to create a lock.
2015-11-21 20:50:53 +01:00
Thomas Waldmann
1093894be8 UpgradableLock: release exclusive lock in case of exceptions
also: add some comments about how to use the locks in the safest way
2015-11-21 16:53:33 +01:00
Thomas Waldmann
f19e95fcf7 implement --lock-wait, support timeout for UpgradableLock, fixes #210
also: simplify exceptions / exception handling
2015-11-21 15:34:51 +01:00
Thomas Waldmann
b3b4db427c rename print_info to print_verbose
better name as it is only outputting if verbose flag is set.
2015-11-21 02:26:50 +01:00
Thomas Waldmann
6abf7621c1 remove rarely used print_status method 2015-11-21 02:22:26 +01:00
Thomas Waldmann
25140e8c82 add --log-level to set the level of the builtin logging configuration, fixes #426 2015-11-21 02:09:16 +01:00
TW
e372dfb834 Merge pull request #422 from ThomasWaldmann/logging-config
configure logging via env var
2015-11-21 01:38:37 +01:00
Thomas Waldmann
c4dae52ca4 configure logging via env var, use LazyLogger
logging.raiseExceptions not needed any more for py >= 3.2
2015-11-21 01:14:07 +01:00
Antoine Beaupré
a6f8436ceb move toggle action to beginning of class so it can be reused 2015-11-20 15:03:46 -05:00
Antoine Beaupré
a40729f4f3 --progress option was backwards
adds unit tests and ensures we detect --progress correctly in all cases
2015-11-20 15:03:39 -05:00
TW
a7eb83efa5 Merge pull request #419 from anarcat/no-progress
add a --no-progress flag to forcibly disable progress info
2015-11-20 20:08:39 +01:00
TW
5dda00c923 Merge pull request #435 from ThomasWaldmann/rtd-improvements
style changes of previous changeset did not work on rtd, try 2
2015-11-20 19:34:12 +01:00
Thomas Waldmann
42e9a77f5b style changes of previous changeset did not work on rtd, try 2 2015-11-20 19:32:04 +01:00
TW
3c121c207a Merge pull request #434 from ThomasWaldmann/rtd-improvements
rtd docs: color and logo improvements
2015-11-20 19:13:48 +01:00
Thomas Waldmann
077bcd0cde logo: have a separate, bigger logo (do not reuse the favicon)
currently just scaled up / converted to png from the favicon.ico.
2015-11-20 19:06:40 +01:00
Thomas Waldmann
87bb886705 rtd theme adjustment: borg darkness for the upper left corner 2015-11-20 18:51:11 +01:00
Thomas Waldmann
7a08368b65 fix html_theme_path overriding previous definition of it 2015-11-20 17:56:35 +01:00
Thomas Waldmann
57ffa4d648 more precise binary installation steps 2015-11-20 15:49:53 +01:00
Thomas Waldmann
67c85734ba upgrade OS X FUSE to 3.0.9, update release todo docs 2015-11-20 01:12:31 +01:00
Thomas Waldmann
b1ba7a84f0 --keep-tag-files: fix file status, fix multiple tag files in one directory, fixes #432 2015-11-19 20:03:50 +01:00
Thomas Waldmann
dcab7dd8a7 new mailing list borgbackup@python.org
also: remove mailing list and irc channel address from development docs,
it is enough to have this information on the main page and on the support page.
2015-11-18 15:40:23 +01:00
TW
04b4d63ffd Merge pull request #421 from ThomasWaldmann/datetime-iso-style
use ISO-8601 date and time format, fixes #375
2015-11-17 00:51:06 +01:00
Thomas Waldmann
2e64c29e01 use ISO-8601 date and time format, fixes #375 2015-11-16 23:51:21 +01:00
TW
3aa3148250 Merge pull request #418 from ThomasWaldmann/update-faq
FAQ entry about unexpected 'A' status for unchanged file(s), fixes #403
2015-11-16 21:43:41 +01:00
Thomas Waldmann
559c8908c1 add FAQ entry about unexpected 'A' status for unchanged file(s), fixes #403 2015-11-16 21:30:16 +01:00
Antoine Beaupré
9b1ca5c1eb force --no to be at the start of option 2015-11-16 15:26:50 -05:00