1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 06:31:58 +00:00
Commit graph

5065 commits

Author SHA1 Message Date
Thomas Waldmann
2c47b4596f update msgpack requirement, fixes #3753
(cherry picked from commit 5be756a0c6)
2018-05-18 19:30:24 +02:00
Thomas Waldmann
4e5a30189b vagrant: use "vagrant" as username for new xenial box 2018-05-18 19:24:14 +02:00
Thomas Waldmann
798cbf7a66 vagrant: suppress any error msgs from __pycache__/.tox cleanup 2018-05-18 19:20:57 +02:00
Thomas Waldmann
4cffed8334 vagrant: update to Python 3.6.5 (for binary builds) 2018-05-18 19:18:15 +02:00
TW
6ffb0e1a33
Merge pull request #3836 from ThomasWaldmann/fix-3808-master
xattrs: fix borg exception handling on ENOSPC error, fixes #3808
2018-05-18 19:00:59 +02:00
Thomas Waldmann
d94bd22740 BORG_SHOW_SYSINFO=no to hide system information from exceptions
Can be used:
- in case of troubles with the sysinfo code
- by borg backup providers who do not want to show system information

(cherry picked from commit 64aaec6628)
2018-05-18 18:49:56 +02:00
Thomas Waldmann
30bd78f266 remove platform.uname() call, fixes #3732
also: add exception handler around deprecated platform.linux_distribution() call.

(cherry picked from commit 1e94211bf5)
(cherry picked from commit 4f45eb660a)
2018-05-18 18:38:21 +02:00
Thomas Waldmann
c2b0c7c483 include .coveragerc, needed by tox.ini
I noticed that archlinux has an identical coveragerc and wondered why.

Then noticed that our tox.ini (which we bundle into the pypi package)
needs .coveragerc, but we did not bundle it until now.

(cherry picked from commit c79156caf5)
2018-05-18 17:52:32 +02:00
Thomas Waldmann
1ee4397c1c xattrs: fix borg exception handling on ENOSPC error, fixes #3808
(cherry picked from commit 959beb867b)
2018-05-18 17:27:51 +02:00
TW
b2a42bd674
Merge pull request #3819 from ThomasWaldmann/fix-travis-osx-master
travis OS X: use xcode 8.3 (not broken)
2018-05-15 23:38:45 +02:00
TW
eea76ca8ca
Merge pull request #3817 from Gu1nness/py37_llfuse
Add a version hint for llfuse for python3.7
2018-05-15 23:11:45 +02:00
Thomas Waldmann
c7503f6518 travis OS X: use xcode 8.3 (not broken)
builds on xcode6.4 are broken since quite a while.
other xcode versions < 8.3 are also broken in the same way.
2018-05-15 23:09:11 +02:00
Rémi Oudin
318fa2e473 Add a version hint for llfuse for python3.7
Python 3.7 requires llfuse >= 1.3.4.
Fixes https://github.com/borgbackup/borg/issues/3804
2018-05-14 20:22:23 +02:00
Nic Donaldson
83c8734d70 Update setup.py to use a newer Cython/setuptools API for compiling .pyx -> .c (#3788)
update build process to use newer Cython/setuptools APIs

Cython.Distutils.build_ext has been deprecated, and the recommended replacement
is Cython.Build.cythonize.

setuptools.Extension will convert the file extension .pyx -> .c so there's no
need to duplicate the functionality. This allows the removal of the special
Sdist logic when cython is available.

cythonize will compile .pyx -> .c, but the resulting Extension's files won't be
included in sdist unless the Extension is in ext_modules. We don't want the
platform extensions in ext_modules though because that will break compilation,
so the platform .c files were added to the manifest.

- removed some unnecessary distutils imports and moved some imports for better
  visibility

- stop cythonize from running in some common use cases like 'clean'
2018-04-28 18:06:10 +02:00
TW
037fd4213a
Merge pull request #3783 from borkd/issue-template
Github new ISSUE_TEMPLATE.md
2018-04-23 01:31:20 +02:00
borkd
53f9ed0160
Create ISSUE_TEMPLATE.md
First stab at new issue template
2018-04-20 16:15:15 -04:00
infectormp
8f6be74993 Add note from borg with-lock about copy repo (#3749)
docs: Improve FAQ about copying a repo
2018-04-19 15:34:11 +02:00
infectormp
60f9849336 docs: Improve borg with-lock (#3780)
docs: improve borg with-lock, link to FAQ
2018-04-19 15:29:47 +02:00
TW
da9c1b7a42
Merge pull request #3771 from Moredread/doc
docs: describe what BORG_LIBZSTD_PREFIX does
2018-04-17 21:41:33 +02:00
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