Commit Graph

1949 Commits

Author SHA1 Message Date
Thomas Waldmann 92d31be087 atime unit test: test adapts to O_NOATIME support on platform 2015-10-26 23:16:41 +01:00
Thomas Waldmann 3e73998710 atime unit test: do not compare input file's current atime
and explain why (missing O_NOATIME open mode modified the atime at backup time).
2015-10-26 23:08:37 +01:00
Thomas Waldmann 765999195d atime unit test: hardcode "round" timestamps
just to avoid rounding / precision issues with floating point computations on py < 3.3
I used 2 hardcoded "full second" values on the input file and check if they get restored
correctly.
2015-10-26 22:34:08 +01:00
Thomas Waldmann c492011a92 backup atime and ctime additionally to mtime, fixes #317
restore: mtime and atime
FUSE: support ctime and atime additionally to mtime
2015-10-26 02:07:55 +01:00
Thomas Waldmann b89b5c2520 Merge branch 'master' of github.com:borgbackup/borg 2015-10-26 01:44:43 +01:00
Thomas Waldmann 0942bc010e fix reading files without touching their atime 2015-10-26 01:43:58 +01:00
Thomas Waldmann f7d724ce33 tests: only use mtime once in directory comparison tuples 2015-10-26 01:37:28 +01:00
Thomas Waldmann f285e90912 archiver: add E status as error indication
E means that an error occured when processing this (single) item
2015-10-25 02:53:36 +02:00
Thomas Waldmann 7b73abdcda archiver: rename print_x methods so they correspond to log levels
also:

remove some "Warning: " msg prefixes - if we emit at WARNING level,
it is obviously a warning.

remove some "borg: " msg prefixes.
2015-10-25 02:35:42 +02:00
TW bfbdbfb315 Merge pull request #332 from ThomasWaldmann/screencast
borgbackup install+basics presentation(asciinema + script)
2015-10-25 00:04:32 +02:00
Thomas Waldmann 42fc22840c embed the asciinema preview image / link into the README 2015-10-25 00:02:50 +02:00
Thomas Waldmann a16ae01289 borgbackup install+basics presentation(asciinema + script) 2015-10-24 23:40:51 +02:00
Thomas Waldmann d8d3c8521b fix logging levels
All normal informational output is now logged at INFO level.
To actually see normal output, the logger is configured to level INFO also.

Log levels:
WARNING is for warnings, ERROR is for (fatal) errors, DEBUG is for debugging.

logging levels must only be used according to this semantics and must not be
(ab)used to let something show up (although the logger would usually hide it)
or hide something (although the logger would usually show it).

Controlling the amount of output shown on INFO level:
--verbose, --progress, --stats are currently used for this.
more such flags might be added later as needed.

if they are set, more output is logged (at INFO level).

also: change strange setup_logging return value
2015-10-23 02:29:41 +02:00
Thomas Waldmann 39fb9b176a update docs about return codes 2015-10-22 01:40:34 +02:00
TW 52fd2ad3da Merge pull request #320 from ThomasWaldmann/final-status
Final status
2015-10-22 01:04:36 +02:00
Thomas Waldmann 5bcd4835e6 add tests for return codes 2015-10-22 00:45:29 +02:00
TW 9c45d703d0 Merge pull request #323 from anarcat/version-arg
add standard --version argument
2015-10-21 16:56:49 +02:00
anarcat 3996caa04f add my email address to authors 2015-10-21 10:51:27 -04:00
Antoine Beaupré bfaa046a31 add standard --version argument
this way the version can be discovered by scripts without having to
part the output of 'help'.

it is removed from the 'help' output itself because it is prettier
without the complete version number, and then the description can be
reused elsewhere as well without needing the version number
2015-10-21 09:58:28 -04:00
TW a1f88c73aa Merge pull request #322 from anarcat/docs
explicitely commit to the units standard
2015-10-21 15:30:23 +02:00
Antoine Beaupré 76c0804bd5 explicitely commit to the units standard, see #289 2015-10-21 09:25:46 -04:00
TW 557d8c7e03 Merge pull request #318 from anarcat/flake8
small flake8 changes
2015-10-21 02:15:22 +02:00
Antoine Beaupré 05c4255620 flake8 cleanup broke the upgrader, re-import Repository 2015-10-20 19:54:57 -04:00
Thomas Waldmann 72c984891c refactor return codes, fixes #61
0 = success (logged as INFO)
1 = warning (logged as WARNING)
2 = (fatal and abrupt) error (logged as ERROR)

please use the EXIT_(SUCCESS,WARNING,ERROR) constants from helpers module.
2015-10-21 01:11:51 +02:00
Thomas Waldmann 1439f3be60 give a final status into the log output, including exit code, fixes #58 2015-10-20 23:57:56 +02:00
Thomas Waldmann 9577121f96 vagrant: tests: announce whether fakeroot is used or not 2015-10-20 23:27:11 +02:00
Thomas Waldmann af2366693a tests: catch stderr also, some tests expect stderr contents in "output"
weird: the remote archive fuse tests deadlock, that's why I replaced them by dummies
2015-10-20 22:46:47 +02:00
TW 439c870fc0 Merge pull request #316 from anarcat/file-sizes
improve file size displays
2015-10-20 22:16:36 +02:00
Thomas Waldmann 3ea10f817f vagrant: add vagrant user to fuse group for debianoid systems also 2015-10-20 22:14:33 +02:00
Antoine Beaupré 03d381c2f9 describe the current style guide in documentation 2015-10-20 14:43:49 -04:00
Antoine Beaupré 8651f87fa1 fix flake8 warnings in my recent PRs 2015-10-20 14:43:49 -04:00
Antoine Beaupré e1b2f0f3f0 remove silenced warnings that were not triggered anyways
line length comes from @tw - i would prefer 80 columns personnally, but don't want to argue over that bikeshed

the 120 limit *does* trigger warnings right now, but it's better to do that than to make the problem worse for future PRs
2015-10-20 14:43:49 -04:00
Antoine Beaupré aad6afb3e0 pep8 the whole darn helpers module 2015-10-20 13:39:21 -04:00
Thomas Waldmann 1bbbdea3ac vagrant: produce borg.exe in /vagrant/borg and have it in PATH, so tests will find and test it 2015-10-20 19:23:47 +02:00
Antoine Beaupré 21fdc91995 clarify size tests 2015-10-20 13:04:01 -04:00
Antoine Beaupré 416e42335c introduce variable precision 2015-10-20 13:01:39 -04:00
Antoine Beaupré c7c1b9222b convert to more flexible size formatters
those can now support both file sizes (in SI/decimal format, powers of 10) and memory sizes (in binary format, powers of 2)

tests still fail because the result is always displayed as floats
2015-10-20 13:01:14 -04:00
Antoine Beaupré de390b1ca6 add file size tests, failing
the tests are failing because 1KB gets displayed as 1000 bytes, but also because higher prefixes are missing
2015-10-20 13:01:14 -04:00
Thomas Waldmann a4f136afba update CHANGES.rst (add issue / PR numbers) 2015-10-20 16:23:23 +02:00
Thomas Waldmann 344a25c102 update CHANGES.rst 2015-10-20 15:52:22 +02:00
TW a4e3d14bd4 Merge pull request #313 from anarcat/docs
various docs fixes
2015-10-20 02:38:41 +02:00
TW 21f26988cc Merge pull request #303 from anarcat/verbosity
Verbosity
2015-10-19 22:25:46 +02:00
Antoine Beaupré de9e9d14b7 soften environment security warning to a note, and cross-ref to avoid dupe 2015-10-19 16:25:24 -04:00
Antoine Beaupré 38bde26673 remove needless double type conversion
i got confused and thought i was setting the environment (in which case you need to cast to str anyways, so this was wrong even then)
2015-10-19 15:47:05 -04:00
Antoine Beaupré a3084b7174 try to fix build on py32 again 2015-10-19 14:41:02 -04:00
Antoine Beaupré c7c02ef725 fix path to favicon 2015-10-19 12:15:39 -04:00
Antoine Beaupré 5cd5fa72f6 warn users about the environment on multi-user systems 2015-10-19 11:29:22 -04:00
Antoine Beaupré 3d906ab731 word-wrap a bullet list as paragraphs instead
it looks nicer that way
2015-10-19 11:17:10 -04:00
Antoine Beaupré b122fca580 use titles instead of definitions in FAQ
this way the titles show up in the table of contents and we can link
to individual entries
2015-10-19 11:12:14 -04:00
Antoine Beaupré 500c2a8a20 fix warnings in docs generation 2015-10-19 11:09:28 -04:00