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

4996 commits

Author SHA1 Message Date
André-Patrick Bubel
1ba0e85621
docs: describe what BORG_LIBZSTD_PREFIX does 2018-04-16 19:12:01 +02:00
TW
81c3018787
Merge pull request #3734 from milkey-mouse/fix-3548
Use same datetime object for {now} and {utcnow}, fixes #3548
2018-03-27 22:52:35 +02:00
Milkey Mouse
64793d5c15
Use same datetime object for {now} and {utcnow} (fixes #3548)
{now} and {utcnow} should point to the same exact momemt, but they don't
because .now() and .utcnow() create two different objects at different
times. Although the difference will be on the order of microseconds on all
but the slowest machines, this bug still tickles my inner pedant...
2018-03-27 12:55:32 -07:00
TW
b80dfc727e
Merge pull request #3725 from ThomasWaldmann/issue-3448
set rc=1 when extracting damaged files, fixes #3448
2018-03-25 20:47:37 +02:00
TW
e6abb0804b
Merge pull request #3726 from milkey-mouse/files-cache-non-lazy-fp1.2
non-lazy files cache (1.2 forward-port)
2018-03-25 14:50:48 +02:00
Thomas Waldmann
232f051c10
cleanup: move "processing files" message to expected place
(now possible as we do not lazy load the files cache any more)
2018-03-24 17:04:20 -07:00
Thomas Waldmann
e2f71b5dc3
cleanup: get rid of ignore_inode, replace with cache_mode
ignore_inode == ('i' not in cache_mode)  # i)node
2018-03-24 17:04:20 -07:00
Thomas Waldmann
b1e7e7f90a
cleanup: get rid of Cache.do_files, replace with cache_mode
not do_files == (cache_mode == 'd')  # d)isabled
2018-03-24 17:04:20 -07:00
Thomas Waldmann
91e5e231f1
read files cache early, init checkpoint timer after that, see #3394
reading the files cache can take considerable amount of time (a user
reported 1h 42min for a 700MB files cache for a repo with 8M files and
15TB total), so we must init the checkpoint timer after that or borg
will create the checkpoint too early.

creating a checkpoint means (among other stuff) saving the files cache,
which will also take a lot of time in such a case, one time too much.

doing this in a clean way required some refactoring:
- cache_mode is now given to Cache initializer and stored in instance
- the files cache is loaded early in _do_open (if needed)
2018-03-24 17:04:13 -07:00
TW
5b824f54dd
Merge pull request #3722 from ThomasWaldmann/stdin-filename
create: implement --stdin-name, fixes #3533
2018-03-25 00:35:40 +01:00
TW
c4528ca115
Merge pull request #3724 from milkey-mouse/fix-checkpoint-interval-default-fp1.2
fix Archive's checkpoint_interval arg default (1.2 forward-port)
2018-03-25 00:31:43 +01:00
Thomas Waldmann
1c97efd81e set rc=1 when extracting damaged files, fixes #3448
- size inconsistencies
- file has all-zero replacement chunks

introduced new BackupError exception. when raised while extracting
files, gets handled via emitting a warning, setting rc=1 and
proceeding to next file.
2018-03-25 00:21:06 +01:00
Thomas Waldmann
dc48377dc6
fix Archive's checkpoint_interval arg default (300 -> 1800s)
the commandline arg default was already at 1800, so likely this is
only a cosmetic fix.
2018-03-24 16:05:05 -07:00
Thomas Waldmann
01d2f72813 create: implement --stdin-name, fixes #3533 2018-03-24 22:31:23 +01:00
TW
b2c141899b
Merge pull request #3710 from ThomasWaldmann/docs-security-fingerprinting
security: describe chunk size / proximity issue, see #331
2018-03-24 21:50:17 +01:00
TW
024c9578ce
Merge pull request #3717 from milkey-mouse/fix-3706-fp1.2
Vagrant: move cleanup steps to fs_init (1.2 forward-port)
2018-03-24 21:37:35 +01:00
TW
3e66fa3e50
Merge pull request #3716 from milkey-mouse/fix-3707-fp1.2
Vagrant: xenial64 box now uses username 'vagrant' (1.2 forward-port)
2018-03-24 21:36:18 +01:00
TW
b6b8e1bb16
Merge pull request #3683 from milkey-mouse/repo-archive-quickstart
Add quickstart introduction to repositories & archives (fixes #3620)
2018-03-24 21:31:27 +01:00
Milkey Mouse
d41c9296c0
fixup! Add quickstart introduction to repositories & archives (fixes #3620) 2018-03-24 12:05:47 -07:00
Thomas Waldmann
6b42562c8c
Vagrant: move cleanup steps to fs_init, fixes #3706
so after a vagrant up or vagrant reload (which both rsync), we
can just call the fs_init and run_tests provisioning steps and do
not need to call install_borg again.
2018-03-24 11:49:49 -07:00
Thomas Waldmann
53aae94a5a
Vagrant: xenial64 box now uses username 'vagrant', fixes #3707 2018-03-24 11:30:06 -07:00
Thomas Waldmann
8ac272f35f security: describe chunk size / proximity issue, see #3687 2018-03-23 17:54:02 +01:00
TW
52be21c690
Merge pull request #3704 from ThomasWaldmann/getpass-ux
improve getpass user experience, see #3689
2018-03-20 22:55:06 +01:00
TW
adf9919d3e
Merge pull request #3682 from milkey-mouse/set-prev-location-early
Set cache previous_location on load instead of save (fixes #3304)
2018-03-20 22:43:28 +01:00
Thomas Waldmann
dc78fcf193 improve getpass user experience, see #3689
if interactive passphrase query fails and the env vars are not set,
show a clear error message about this.

users often do 'BORG_PASSPHRASE=secret', forgetting the 'export'.
or they use sudo (and not sudo -E).
in both cases, the env vars won't be available for the borg process.
2018-03-20 21:21:23 +01:00
TW
105d518191
Merge pull request #3676 from ThomasWaldmann/recompress-docs
recreate --recompress: add metavar, clarify description
2018-03-17 23:51:44 +01:00
TW
201c62430a
Merge pull request #3675 from ThomasWaldmann/crypto-compression-docs
security docs: add about combining compression and encryption
2018-03-17 19:46:42 +01:00
TW
788783b91a
Merge pull request #3691 from ThomasWaldmann/test-diff-deleted-empty
add test for issue #3688
2018-03-17 19:20:07 +01:00
Thomas Waldmann
0a46d3330c add test for issue #3688 2018-03-17 18:24:55 +01:00
TW
c206f8b403
Merge pull request #3677 from ThomasWaldmann/docs-avoid-permission-mixup
quickstart: add note about permissions, borg@localhost, fixes #3452
2018-03-12 15:18:16 +01:00
TW
6b3191a285
Merge pull request #3678 from ThomasWaldmann/docs-log
docs: improve logging docs, fixes #3549
2018-03-12 15:16:47 +01:00
TW
229114170e
Merge pull request #3679 from ThomasWaldmann/docs-pattern-option
docs: pattern usage clarifications
2018-03-12 15:15:43 +01:00
TW
e6978fa2ea
Merge pull request #3680 from ThomasWaldmann/transaction-rollback-docs
docs: extend append-only repo rollback docs, fixes #3579
2018-03-12 15:13:53 +01:00
Milkey Mouse
09beb64f34
Add quickstart introduction to repositories & archives (fixes #3620) 2018-03-10 17:19:46 -08:00
Milkey Mouse
4098f0f05c
Set previous_location on load instead of save
This caused a really stupid bug with borg config --cache, see
https://github.com/borgbackup/borg/issues/3304#issuecomment-371896766
2018-03-10 16:52:42 -08:00
TW
b812472f36
Merge pull request #3674 from ThomasWaldmann/cache-config-validation
borg config --cache: allow validated access to previous_location
2018-03-10 15:51:05 +01:00
TW
646c0ea117
Merge pull request #3681 from ThomasWaldmann/fixup-recreate-progress-broken
fix borg recreate --progress (broken by previous commit)
2018-03-10 15:47:17 +01:00
Thomas Waldmann
f979349f07 fix borg recreate --progress (broken by previous commit)
fixup for cb7887836a
2018-03-10 15:41:01 +01:00
Rémi Oudin
cb7887836a Fix --progress option. (#3557)
Fix --progress option, fixes #3431
2018-03-10 15:11:08 +01:00
Thomas Waldmann
451b22ee51 docs: extend append-only repo rollback docs, fixes #3579 2018-03-09 23:27:31 +01:00
Thomas Waldmann
9b73d31a40 docs: clarify path semantics when matching, fixes #3598 2018-03-09 22:57:37 +01:00
Thomas Waldmann
cf72c9592c docs: add an example for --pattern usage, fixes #3661 2018-03-09 21:37:06 +01:00
Thomas Waldmann
99be106bc8 docs: improve logging docs, fixes #3549 2018-03-09 20:44:20 +01:00
Thomas Waldmann
7bc2138dcb quickstart: add note about permissions, borg@localhost, fixes #3452 2018-03-09 20:01:38 +01:00
TW
1473ea708c
Merge pull request #3526 from borgbackup/enkore-patch-1
sec docs: explicitly note what happens OUTSIDE the attack model
2018-03-09 18:49:32 +01:00
Thomas Waldmann
c0f56ed039 recreate --recompress: add metavar, clarify description 2018-03-09 18:33:15 +01:00
Thomas Waldmann
be8913a93c security docs: add about combining compression and encryption 2018-03-09 18:02:57 +01:00
Thomas Waldmann
810986f0f5 borg config --cache: allow validated access to previous_location 2018-03-09 17:27:30 +01:00
TW
fcf4145222
Merge pull request #3673 from tschwinge/mark-up-unicode-string
Mark up Unicode string
2018-03-09 16:46:37 +01:00
Thomas Schwinge
2458035057 Mark up Unicode string
Running Sphinx v1.4.8
    WARNING: the config value 'copyright' is set to a string with non-ASCII characters; this can lead to Unicode errors occurring. Please use Unicode strings, e.g. u'Content'.
    [...]
    Encoding error:
    'ascii' codec can't decode byte 0xc3 in position 23: ordinal not in range(128)
2018-03-08 11:37:45 +01:00