Commit graph

209 commits

Author SHA1 Message Date
Thomas Waldmann
4e4847ccce point XDG_*_HOME to temp dirs for tests, fixes #1714
otherwise it spoils the user's nonces and cache dirs with lots of files.

also: remove all BORG_* env vars from the outer environment
2016-10-13 23:59:28 +02:00
TW
a2dfe68609 Merge pull request #1706 from ThomasWaldmann/remove-debug-xxx
remove debug-xxx commands, fixes #1627
2016-10-12 23:25:43 +02:00
Thomas Waldmann
9ad9ae8ff0 Repository.scan(): avoid iterating same repo segments/objects repeatedly
segments: avoid some listdir()
objects: avoid repeatedly re-reading object headers / seeking in segment

Fixes #1610.
2016-10-10 05:39:38 +02:00
Thomas Waldmann
b88e82d99d remove debug-xxx commands, fixes #1627
we use "debug xxx" subcommands now. docs updated.

also makes "borg help" shorter as not all debug-xxx commands
show up, but just 1 main "debug" command.
2016-10-10 00:22:01 +02:00
enkore
8567fcfe58 Merge pull request #1418 from textshell/fix/preload
Cleanup prefetch code in RemoteRepository
2016-10-07 09:49:16 +02:00
Thomas Waldmann
f31112b975 clarify borg diff help, fixes #980 2016-10-07 04:09:05 +02:00
Martin Hostettler
02557f16b0 RemoteRepository: Rename cache to chunkid_to_msgids. Also fetch_from_cache to pop_preload_msgid. 2016-10-06 20:48:26 +02:00
Martin Hostettler
2608a5620a RemoteRepository: Always store chunk ids in cache instead of rpc argument encoding of get request. 2016-10-06 20:38:46 +02:00
Martin Hostettler
e9605d67ad RemoteReposity: prefetch can only be 'get'. 2016-10-06 20:38:46 +02:00
Thomas Waldmann
cdb8d64fe2 check for index vs. segment files object count mismatch 2016-10-05 17:36:36 +02:00
Thomas Waldmann
6624ca9cdb verify_data: do a linear scan in disk-order 2016-10-05 17:36:36 +02:00
Thomas Waldmann
90111363ba repo.list() yielding IDs in on-disk order 2016-10-05 17:36:36 +02:00
enkore
27bc73c23e borg info <repo>: print general repo information (#1680) 2016-10-03 14:53:16 +02:00
Thomas Waldmann
8df6cb8156 hashindex: bump api_version
note:
merging the respective changeset from 1.0-maint was not effective
as we already had version 3, so there was no increase.
2016-09-30 23:59:41 +02:00
Frank Sachsenheim
089995ef73 Changes on filters after feedback 2016-09-30 20:29:16 +02:00
Frank Sachsenheim
bd7cc38d6e Changes arg processor names to camelcase 2016-09-30 20:14:20 +02:00
Frank Sachsenheim
e0e9edfb42 Adds archives filters for list 2016-09-30 20:14:20 +02:00
Frank Sachsenheim
369d0a0881 Adds archives filters for info 2016-09-30 20:14:20 +02:00
Frank Sachsenheim
f2d4d36cea Allows delete to be used with archive filters 2016-09-30 20:14:20 +02:00
Frank Sachsenheim
17f2363935 Adds --prefix to the archives filters arguments
- adds prefix argument to helpers.Archives.list
- also renames function PrefixSpec to prefix_spec
2016-09-30 19:48:17 +02:00
Frank Sachsenheim
f6b9276de9 Adds arguments to filter archives
These are: --sort-by, --first and --last

Includes a method to obtain a list of archive infos filtered by these

Archives.list:
- ensure reverse is always applied
- always return a list
2016-09-30 19:48:17 +02:00
Thomas Waldmann
19eb75984e borg check --verify-data tuning 2016-09-29 18:40:02 +02:00
Thomas Waldmann
ba30098079 Merge branch '1.0-maint' into merge-1.0-maint 2016-09-29 12:57:29 +02:00
Thomas Waldmann
2a864be84f Merge branch '1.0-maint' into merge-1.0-maint
# Conflicts:
#	setup.py
#	src/borg/archiver.py
#	src/borg/helpers.py
2016-09-27 21:31:41 +02:00
enkore
ea9e859026 Merge pull request #1635 from enkore/issue/1624
Fix broken --progress for double-cell paths
2016-09-27 13:14:16 +02:00
Marian Beermann
9cef0a9ed8 Fix broken --progress ellipsis for double-cell paths 2016-09-27 11:35:45 +02:00
TW
233ae43551 Merge pull request #1640 from ThomasWaldmann/improve-borg-help
Re-Indent borg help helptexts, again.
2016-09-25 23:26:01 +02:00
TW
43432f9a14 Merge pull request #1615 from enkore/issue/1598
Fix #1598
2016-09-25 23:09:47 +02:00
Thomas Waldmann
bf681e98ce Re-Indent borg help helptexts, again. 2016-09-25 22:50:08 +02:00
TW
f36d551092 Merge pull request #1634 from ThomasWaldmann/improve-compression-docs
borg help compression, fixes #1582
2016-09-25 22:42:56 +02:00
Marian Beermann
8164524d99 Fix broken --progress for double-cell paths 2016-09-25 22:18:37 +02:00
Thomas Waldmann
28c57f98c9 Merge branch '1.0-maint'
# Conflicts:
#	src/borg/archive.py
#	src/borg/archiver.py
#	src/borg/helpers.py
#	src/borg/testsuite/archiver.py
2016-09-25 17:30:55 +02:00
Marian Beermann
66316e10b9 Fix indentation in borg help compression 2016-09-25 11:53:54 +02:00
Marian Beermann
7b1f10347a Repository: compact: fix incorrect preservation of delete tags 2016-09-25 10:13:31 +02:00
Marian Beermann
abace16945 Repository.check: log transaction IDs 2016-09-25 10:12:42 +02:00
Thomas Waldmann
d6bfdafdef borg help compression, fixes #1582 2016-09-25 02:32:02 +02:00
TW
d3e79c4e49 Merge pull request #1625 from bauerj/master
Change {utcnow} and {now} to ISO-8601 format
2016-09-23 18:24:10 +02:00
Johann Bauer
a56dc44e1f Change {utcnow} and {now} to ISO-8601 format 2016-09-23 17:58:04 +02:00
Martin Hostettler
84b3295a0d Archiver,RemoteRepository: Add --remote-ratelimit
The --remote-ratelimit option adds a very simple rate limit for the
sending data to the remote.

Currently implemented by sleeping if the transmission speed is greater
than the limit.
2016-09-18 19:00:26 +02:00
Thomas Waldmann
260ef31728 fuse: refactor for less encoding dance 2016-09-16 16:38:08 +02:00
Thomas Waldmann
39170479aa fuse: fix hardlinks in versions view, fixes #1599 2016-09-16 16:38:08 +02:00
Thomas Waldmann
c021cf466a fuse: add test for hardlinks in versions view 2016-09-16 16:38:08 +02:00
Thomas Waldmann
001500ab99 fuse: refactor file versioning code 2016-09-16 16:38:08 +02:00
Thomas Waldmann
5d22078f35 fuse: add parameter check to ItemCache.get to make potential failures more clear 2016-09-16 16:38:08 +02:00
Marian Beermann
ae5b4980f2 Repository.check: improve object count mismatch diagnostic 2016-09-15 11:23:58 +02:00
TW
783d01f621 Merge pull request #1586 from ThomasWaldmann/borg-check-delete-defect-chunks
borg check: delete chunks with integrity errors, fixes #1575
2016-09-14 22:55:50 +02:00
Thomas Waldmann
b4c7cce67d borg check: delete chunks with integrity errors, fixes #1575
so they can be "repaired" immediately and maybe healed later.
2016-09-14 21:07:48 +02:00
Thomas Waldmann
57a3adb6b3 borg recreate: also catch SIGHUP 2016-09-14 02:55:13 +02:00
Thomas Waldmann
1287d1ae92 Merge branch '1.0-maint' into merge-1.0-maint
# Conflicts:
#	docs/development.rst
#	src/borg/archive.py
#	src/borg/archiver.py
#	src/borg/hashindex.pyx
#	src/borg/testsuite/hashindex.py
2016-09-14 02:53:41 +02:00
Thomas Waldmann
dd89181062 fuse: refactor / optimize process_inner 2016-09-01 06:26:33 +02:00