Commit Graph

2255 Commits

Author SHA1 Message Date
enkore dd95d0ebe8 Merge pull request #891 from enkore/feature/cython-summarize
Add overflow checks to refcounting, port stuff to Cython etc
2016-04-15 00:06:25 +02:00
Marian Beermann 29ebdbadae
refcounting: use uint32_t, protect against overflows, fix merging for BE 2016-04-14 23:38:56 +02:00
Marian Beermann c90745cdbb Port hashindex_summarize into ChunkIndex.summarize 2016-04-14 11:46:12 +02:00
TW 0a253edcfd Merge pull request #898 from ThomasWaldmann/1.0-maint
reproducible doc for ProgressIndicator*
2016-04-13 16:09:14 +02:00
Danny Edel 60ca65a438 reproducible doc for ProgressIndicator*
building the API docs captured sys.stderr's IO charset, making the build
unreproducible.
2016-04-13 14:54:34 +02:00
TW d30842183d Merge pull request #892 from ThomasWaldmann/fix-compare-content
compare_content: fix wrong added/removed file size
2016-04-12 12:54:45 +02:00
Thomas Waldmann 6922452079 compare_content: fix wrong added/removed file size
bug: c[1] was not the size, but the byte at index 1 of the id bytestring!
2016-04-12 03:08:03 +02:00
TW c2f95332e5 Merge pull request #887 from enkore/issue/886
hashindex_summarize: fix missing byte-order conversion
2016-04-11 23:21:48 +02:00
Marian Beermann 90a9fbd21d
hashindex_summarize: fix missing byte-order conversion
Fixes #886
2016-04-11 22:22:24 +02:00
TW d8c630b2d7 Merge pull request #884 from enkore/issue/874
borg delete: fix --cache-only for broken caches
2016-04-11 14:16:22 +02:00
enkore f8be0cf14c Merge pull request #882 from frispete/master
Fix package naming for openSUSE
2016-04-11 13:11:07 +02:00
Marian Beermann d12c1deece
borg delete: fix --cache-only for broken caches
This also makes --cache-only idempotent: it won't fail if the cache
is already deleted.

Fixes #874
2016-04-11 12:50:42 +02:00
Hans-Peter Jansen 4bf40f4178 Fix package naming for openSUSE 2016-04-11 10:08:16 +02:00
TW 378140acd4 Merge pull request #878 from Ape/pr/diff_symlink_fix
Fix 'borg diff' when symlink is replacing or being replaced
2016-04-10 20:20:42 +02:00
TW 6133a6eac2 Merge pull request #879 from bpereto/fedora-docs
added package link to docs for fedora
2016-04-10 19:59:54 +02:00
Lauri Niskanen ed868ef8a4
Add more advanced symlink test cases for 'borg diff' 2016-04-10 19:17:10 +03:00
Lauri Niskanen 9fc5df4a62
Fix 'borg diff' when symlink is replacing or being replaced
Previously on some cases where symlink replaced something else or was replaced
by something else, `borg diff` failed with `KeyError: b'source'`. This commit
fixes the issue.
2016-04-10 19:17:09 +03:00
Benjamin Pereto 1e1dae3bb6 added package docs for fedora 2016-04-10 17:55:36 +02:00
TW c3e6bc2b7e Merge pull request #812 from enkore/feature-rewrite
feature recreate
2016-04-10 17:20:41 +02:00
TW ea1ebb80bf Merge pull request #868 from anarcat/patch-2
add link to OpenBSD port and OpenSUSE
2016-04-10 17:06:45 +02:00
Marian Beermann d5ad063d13
recreate: add experimental warning for now 2016-04-10 16:53:38 +02:00
TW 8dbbc35b71 Merge pull request #875 from bket/1.0-maint
fix issue #873 - running borg with --one-file-system traverses in excluded filesystems
2016-04-10 16:52:39 +02:00
Björn Ketelaars fd10d1386c fix issue #873 2016-04-10 16:24:58 +02:00
Marian Beermann 0bc0fa22b4
recreate: improve tests, docs, check chunk availability[1]
[1] So if e.g. delete/prune/check are run these can delete the
    recreate_partial_chunks. This is now caught and handled correctly.
2016-04-10 15:59:12 +02:00
Marian Beermann 4b5e6ffa77
Assimilate "borg comment" into "borg recreate" 2016-04-10 14:09:09 +02:00
Marian Beermann a3ee9d2c5f borg recreate: Re-create existing archives.
Use with caution: permanent data loss by specifying incorrect patterns
is easily possible. Make a dry run to make sure you got everything right.

borg recreate has many uses:
- Can selectively remove files/dirs from old archives, e.g. to free
  space or purging picturarum biggus dickus from history
- Recompress data
- Rechunkify data, to have upgraded Attic / Borg 0.xx archives deduplicate
  with Borg 1.x archives. (Or to experiment with chunker-params for
  specific use cases

It is interrupt- and resumable.

Chunks are not freed on-the-fly.
Rationale:
  Makes only sense when rechunkifying, but logic on which new chunks to
  free what input chunks is complicated and *very* delicate.

Future TODOs:
- Refactor tests using py.test fixtures
  -- would require porting ArchiverTestCase to py.test: many changes,
     this changeset is already borderline too large.
- Possibly add a --target option to not replace the source archive
  -- with the target possibly in another Repo
     (better than "cp" due to full integrity checking, and deduplication
      at the target)
- Detect and skip (unless --always-recompress) already recompressed chunks

Fixes #787 #686 #630 #70 (and probably some I overlooked)
Also see #757 and #770
2016-04-10 13:54:44 +02:00
TW d4aac6255d Merge pull request #867 from enkore/feature/btrf1
better help texts and sphinx reproduction of the help
2016-04-10 01:39:59 +02:00
Marian Beermann 0a369c0985
Better help texts and Sphinx reproduction of usage
- Group options
- Nicer list of options in Sphinx
- Deduplicate 'Common options'
  (including --help)

The latter is done by explicitly declaring --help in the common_parser,
which is then inherited by the sub-parsers; no change in observable
behaviour.
2016-04-10 01:28:19 +02:00
Thomas Waldmann cece7f9e6d merged 1.0-maint into master 2016-04-10 01:13:35 +02:00
TW d8f2d19da8 Merge pull request #869 from anarcat/patch-3
cleanup ubuntu in install list
2016-04-09 22:45:40 +02:00
anarcat 17c0a3a8fa cleanup ubuntu in install list
ubuntu was showing up twice in the list of supported OSes... it seems it was because the line was getting too long, so I removed the "names" and kept only the numbers to keep the line short.
2016-04-09 16:27:43 -04:00
anarcat 3cd6f52521 add link to OpenBSD port and OpenSUSE
see the ever-growing #105
2016-04-09 16:19:03 -04:00
Thomas Waldmann 6a3f2d7864 update CHANGES 2016-04-08 23:41:15 +02:00
Thomas Waldmann d5d037b97d ran build_api build_usage 2016-04-08 23:38:46 +02:00
TW 299e9e28bf Merge pull request #861 from ThomasWaldmann/info-not-v
reorder log level options, so --info shows up in help
2016-04-08 23:19:54 +02:00
Thomas Waldmann 7861de3930 reorder log level options, so --info shows up in help 2016-04-08 22:55:07 +02:00
Thomas Waldmann e9b3b3fa1a updated CHANGES 2016-04-08 19:52:47 +02:00
TW 938302f2f2 Merge pull request #847 from Ape/pr/archive_comments
Add archive comments
2016-04-08 18:52:50 +02:00
Lauri Niskanen 327c7219df Add archive comments
- Archives now have a new metadata field 'comment'
- 'info' command shows a comment if it's present
- 'create' command now has option '--comment' for adding comments to archives.
- A new command 'comment' is added for modifying the comments on existing
  archives.

Resolves #842.
2016-04-08 19:03:14 +03:00
Lauri Niskanen 7e3849367b Extract set_meta method on Archive 2016-04-08 19:00:08 +03:00
TW 104e871262 Merge pull request #857 from enkore/issue/850
init: clean up partial repo if passphrase input is aborted
2016-04-08 14:05:45 +02:00
Marian Beermann 59886b44c3
init: clean up partial repo if passphrase input is aborted
Fixes #850
2016-04-08 12:08:10 +02:00
TW 305273d053 Merge pull request #852 from enkore/feature/1.0ignore-inode
1.0-maint, borg create: add --ignore-inode option [to fix sshfs performance]
2016-04-06 23:40:57 +02:00
Marian Beermann 29bc396559
borg create: add --ignore-inode option
This is mainly meant for use with network file systems like sshfs and
possibly CIFS, which don't convey proper inode numbers.
2016-04-06 23:23:14 +02:00
TW 9d13a10653 Merge pull request #848 from Ape/pr/escape_cmdline
Escape cmdline arguments that have spaces in them
2016-04-06 15:17:36 +02:00
TW df7aa6476d Merge pull request #845 from enkore/issue/844
Test suite: Reset exit code of persistent archiver
2016-04-06 15:06:52 +02:00
Lauri Niskanen d0c56a9a69 Escape cmdline arguments that have spaces in them
`borg info` command shows the command line that was used to create the archive.
If the command line has arguments with spaces in them the printed command will
not work. This commit will escape these arguments by enclosing it to quotation
marks.
2016-04-06 14:53:54 +03:00
Marian Beermann b59f92a533 Test suite: Reset exit code of persistent archiver
#844
2016-04-06 10:04:35 +02:00
TW 515b7454a3 Merge pull request #839 from enkore/issue/791
If BORG_PASSPHRASE is present but wrong, don't prompt for password, f…
2016-04-04 21:47:21 +02:00
TW 9a7bad295c Merge pull request #838 from enkore/issue/792
Remote: don't print tracebacks for Error exceptions handled downstream
2016-04-04 21:37:04 +02:00