Commit Graph

4763 Commits

Author SHA1 Message Date
Thomas Waldmann dbcc870489 fix server-side IndexError for 4-arg open() of old clients, fixes #3192
borg 1.1(.0) server didn't support the 4 argument open() calls made
by < 1.0.7 clients.
2017-10-20 16:47:32 +02:00
Thomas Waldmann 93de42bb25 show excluded dir with "x" for tagged dirs / caches, fixes #3189 2017-10-20 04:54:09 +02:00
TW 38dd1f11ac Merge pull request #3181 from ThomasWaldmann/hardlinked-symlink-warning
remove hardlinked symlink warning, update docs
2017-10-17 21:30:53 +02:00
8bit 8d830d069f Removed all |project_name
| instances, replaced with Borg
2017-10-17 11:50:55 -05:00
TW c38657549e Merge pull request #3164 from ThomasWaldmann/no-bsdflags
implement --nobsdflags and --exclude-nodump
2017-10-17 18:49:57 +02:00
Thomas Waldmann 10adadf685 implement --nobsdflags and --exclude-nodump, fixes #3160
do no read/archive bsdflags: borg create --nobsdflags ...
do not extract/set bsdflags: borg extract --nobsdflags ...

use cases:

- fs shows wrong / random bsdflags (bug in filesystem)
- fs does not support bsdflags anyway
- already archived bsdflags are wrong / unwanted
- borg shows any sort of unwanted effect due to get_flags, esp. on Linux

the nodump flag ("do not backup this file") is not honoured any more by
default because this functionality (esp. if it happened by error or
unexpected) was rather confusing and unexplainable at first to users.

if you want that "do not backup NODUMP-flagged files" behaviour, use:
borg create --exclude-nodump ...
2017-10-17 18:45:32 +02:00
Thomas Waldmann e674822888 remove hardlinked symlinks warning, update docs, fixes #3175
the warning was annoying for people with a lot of such items and
they can not do anything about it anyway.

thus, just document this as a limitation.
2017-10-17 18:34:32 +02:00
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
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