Commit Graph

4857 Commits

Author SHA1 Message Date
8bit 9340688b4c Merge remote-tracking branch 'upstream/master' 2017-10-15 17:52:47 -05:00
TW ac0ad9adf0 Merge pull request #3167 from ThomasWaldmann/security-use-savefile
cache: use SaveFile for more safety, fixes #3158
2017-10-15 01:24:36 +02:00
Thomas Waldmann 0190abff81 cache: use SaveFile for more safety, fixes #3158
Looks like under unfortunate circumstances, these files could become
0 byte files (see #3158). SaveFile usage should prevent that.
2017-10-15 00:39:39 +02:00
TW 6096ff9ad6 Merge pull request #3163 from ThomasWaldmann/fix-recreate-part-size
borg recreate: correctly compute part file sizes, fixes #3157
2017-10-14 19:52:02 +02:00
Thomas Waldmann 9d6b125e98 borg recreate: correctly compute part file sizes, fixes #3157
when doing in-file checkpointing, borg creates *.borg_part_N files.
complete_file = part_1 + part_2 + ... + part_N

the source item for recreate already has a precomputed (total) size
member, thus we must force recomputation from the (partial) chunks
list to correct the size to be the part's size only.

borg create avoided this problem by computing the size member after
writing all the parts. this is now not required any more.

the bug is mostly cosmetic, borg check will complain, borg extract on
a part file would also complain. but all the complaints only refer to
the wrong metadata of the part files, the part files' contents are
correct.

usually you will never extract or look at part files, but only deal
with the full file, which will be completely valid, all metadata and
content.

you can get rid of the archives with these cosmetic errors by running
borg recreate on them with a fixed borg version. the old part files
will get dropped (because they are usually ignored) and any new part
file created due to checkpointing will be correct.
2017-10-14 04:24:26 +02:00
TW 8909ffc71a Merge pull request #3137 from ThomasWaldmann/dont-open-special
bsdflags support: skip blk/chr/lnk file type, fixes #3130
2017-10-13 23:54:03 +02:00
Thomas Waldmann a6ee4e9aed bsdflags support: do not open BLK/CHR/LNK files, fixes #3130
opening a device file for a non-existing device can be very slow.
symlinks will make the open() call fail as it is using O_NOFOLLOW.

also: lstat -> stat(..., follow_symlinks=False) like everywhere else.
2017-10-13 23:53:22 +02:00
TW 19ed725a58 move files-cache related options to borg create, fixes #3146 (#3147)
move --no-files-cache from common to borg create options, fixes #3146

for borg prune, just use do_files=False (it only needs the chunks
cache, not the files cache).
2017-10-13 20:16:30 +02:00
TW de175a7ed1 Merge pull request #3148 from ThomasWaldmann/maincommand-help
don't crash if only a global option is given, show help, fixes #3142
2017-10-12 20:32:35 +02:00
TW 5709e7394b Merge pull request #3145 from ThomasWaldmann/no-brew-update
don't brew update, hopefully fixes #2532
2017-10-12 20:28:08 +02:00
TW f554f748ed Merge pull request #3150 from ThomasWaldmann/readme-encryption-options
readme: -e is required in borg 1.1
2017-10-12 17:07:43 +02:00
Thomas Waldmann c8441b5b3d readme: -e is required in borg 1.1 2017-10-12 16:14:32 +02:00
Thomas Waldmann ed1a8b5cf1 add example showing --show-version --show-rc 2017-10-12 06:03:12 +02:00
Thomas Waldmann 3be328ed70 don't crash if only a global option is given, show help, fixes #3142 2017-10-12 05:40:52 +02:00
Thomas Waldmann 6049a07b74 don't brew update, hopefully fixes #2532 2017-10-12 03:37:48 +02:00
TW c8bf9dba4a Merge pull request #3122 from ThomasWaldmann/logging-config-fix
logging with fileConfig: set json attr on "borg" logger, fixes #3114
2017-10-11 01:08:31 +02:00
TW 13a4439bb8 Merge pull request #3120 from ThomasWaldmann/fix-nonlocal-path-detection
fix detection of non-local path, fixes #3108
2017-10-11 01:01:17 +02:00
TW 0bddbb32b4 Merge pull request #3119 from ThomasWaldmann/no-time-end
recreate: don't crash on attic archives w/o time_end, fixes #3109
2017-10-11 00:55:22 +02:00
TW 8455ab3ff2 Merge pull request #3121 from ThomasWaldmann/support-no-hardlinks
catch ENOTSUP for os.link, fixes #3107
2017-10-11 00:32:37 +02:00
TW 17cfc2c4a4 Merge pull request #3118 from ThomasWaldmann/fallback-no-truncate
don't crash in first part of truncate_and_unlink, fixes #3117
2017-10-11 00:11:30 +02:00
Thomas Waldmann afba813706 logging with fileConfig: set json attr on "borg" logger, fixes #3114 2017-10-10 02:18:13 +02:00
Thomas Waldmann 203a5c8f19 catch ENOTSUP for os.link, fixes #3107 2017-10-10 01:57:58 +02:00
Thomas Waldmann 60e9249100 fix detection of non-local path, fixes #3108
filenames like ..foobar are valid, so, to detect stuff in upper dirs,
we need to include the path separator and check if it starts with '../'.
2017-10-10 01:36:44 +02:00
Thomas Waldmann 7a689b1295 don't crash in first part of truncate_and_unlink, fixes #3117 2017-10-10 01:25:19 +02:00
Thomas Waldmann 9d3daebd5f recreate: don't crash on attic archives w/o time_end, fixes #3109 2017-10-10 01:17:56 +02:00
TW b853ad8f85 Merge pull request #3112 from FabioPedretti/master
use --format rather than --list-format in examples, the latter is deprecated
2017-10-09 14:48:19 +02:00
Fabio Pedretti bc42f58c04 use --format rather than --list-format in examples, the latter is
deprecated
2017-10-09 14:09:43 +02:00
TW ebd811b352 Merge pull request #3104 from enkore/issue/3103
init: fix wrong encryption choices in command line parser
2017-10-09 04:15:06 +02:00
Marian Beermann b00179ff78 init: fix wrong encryption choices in command line parser 2017-10-08 12:29:03 +02:00
TW 5436a253b0 Merge pull request #3085 from ThomasWaldmann/compressed-not-larger
auto compression: make sure expensive compression is actually better
2017-10-07 13:52:38 +02:00
TW c3ba00c28e Merge pull request #3095 from ThomasWaldmann/manpage-issue-role
implement simple "issue" role for manpage generation, fixes #3075
2017-10-07 13:49:52 +02:00
TW 37347e6e6e Merge pull request #3094 from ThomasWaldmann/fix-man-typo
manpage: fix typos, update homepage
2017-10-07 13:48:43 +02:00
Thomas Waldmann bf3f8e5672 implement simple "issue" role for manpage generation, fixes #3075 2017-10-07 04:11:29 +02:00
Thomas Waldmann 62e0f7a64e manpage: fix typos, update homepage 2017-10-07 03:34:03 +02:00
TW 0f0cf0877c Merge pull request #3087 from ThomasWaldmann/faq-eta
faq: we do not implement futile attempts of ETA / progress displays
2017-10-06 20:30:03 +02:00
TW 902581a96c Merge pull request #3090 from ThomasWaldmann/fuse-version-comments
add some comments about recent fuse versions to setup.py
2017-10-06 20:25:41 +02:00
TW 8cccd63df1 Merge pull request #3089 from ThomasWaldmann/py35-requirement
check for py 3.5 minimum requirement in setup.py
2017-10-06 20:24:24 +02:00
Thomas Waldmann ce956fa0af add some comments about recent fuse versions to setup.py 2017-10-06 20:01:17 +02:00
Thomas Waldmann be9fb349de check for py 3.5 minimum requirement in setup.py
we do not test on 3.4 any more and have dropped support for it.
so we better enforce it in setup.py also.
2017-10-06 19:38:28 +02:00
Nils Steinger 9e81a76172 List help topics when invalid topic is requested 2017-10-06 02:11:38 +02:00
Thomas Waldmann fe08437337 faq: we do not implement futile attempts of ETA / progress displays 2017-10-05 22:19:39 +02:00
Timothy Burchfield 21601d5f53 Quickstart guide minor corrections (#3084)
quickstart: minor grammar correction and added consistency with substitution of 'Borg'
2017-10-03 23:18:33 +02:00
8bit 8db0c770c3 The user frees space, not borg 2017-10-03 16:32:58 -04:00
Thomas Waldmann 011e0fd3fa auto compression: make sure expensive compression is actually better
if it is not significantly better compressed, we just store lz4
compressed data (which we already have computed anyway), because
that at least decompressed super fast.
2017-10-03 21:11:43 +02:00
8bit 821baf0528 Minor grammar correction and added consistency with subsistitution of 'Borg' 2017-10-03 13:21:28 -04:00
TW 35c042b97b Merge pull request #3078 from ThomasWaldmann/fix-subprocess-env
fix LDLP restoration for subprocesses, fixes #3077
2017-10-01 20:48:54 +02:00
Thomas Waldmann b5069770b7 fix LDLP restoration for subprocesses, fixes #3077 2017-10-01 19:17:23 +02:00
TW 08e2053075 Merge pull request #3024 from ThomasWaldmann/files-cache-ctime
implement files cache mode control, fixes #911
2017-10-01 01:15:13 +02:00
Thomas Waldmann 5e2de8ba67 implement files cache mode control, fixes #911
You can now control the files cache mode using this option:

--files-cache={ctime,mtime,size,inode,rechunk,disabled}*

(only some combinations are supported)

Previously, only these modes were supported:
- mtime,size,inode (default of borg < 1.1.0rc4)
- mtime,size (by using --ignore-inode)
- disabled (by using --no-files-cache)

Now, you additionally get:
- ctime alternatively to mtime (more safe), e.g.:
  ctime,size,inode (this is the new default of borg >= 1.1.0rc4)
- rechunk (consider all files as changed, rechunk them)

Deprecated:
- --ignore-inodes (use modes without "inode")
- --no-files-cache (use "disabled" mode)

The tests needed some changes:
- previously, we use os.utime() to set a files mtime (atime) to specific
  values, but that does not work for ctime.
- now use time.sleep() to create the "latest file" that usually does
  not end up in the files cache (see FAQ)
2017-10-01 00:52:32 +02:00
TW dcf5e77253 Merge pull request #3069 from ThomasWaldmann/exclude-cython027
exclude Cython 0.27(.0) in requirements, fixes #3066
2017-09-29 02:16:59 +02:00