summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-06-05build_manThomas Waldmann
2022-06-05build_usageThomas Waldmann
2022-06-03Merge pull request #6744 from ThomasWaldmann/update-changes-1.1TW
update CHANGES
2022-06-03update CHANGESThomas Waldmann
2022-05-30Merge pull request #6730 from KN4CK3R/backport-6724-1.1TW
Backport make constants for files cache mode more clear (#6724, 1.1)
2022-05-30make constants for files cache mode more clear (#6724)Elmar Hoffmann
* make constants for files cache mode more clear Traditionally, DEFAULT_FILES_CACHE_MODE_UI and DEFAULT_FILES_CACHE_MODE were - as the naming scheme implies - the same setting, one being the UI representation as given to the --files-cache command line option and the other being the same default value in the internal representation. It happended that the actual value used in borg create always comes from DEFAULT_FILES_CACHE_MODE_UI (because that does have the --files-cache option) whereas for all other commands (that do not use the files cache) it comes from DEFAULT_FILES_CACHE_MODE. PR #5777 then abused this fact to implement the optimisation to skip loading of the files cache in those other commands by changing the value of DEFAULT_FILES_CACHE_MODE to disabled. This however also changes the meaning of that variable and thus redesignates it to something not matching the original naming anymore. Anyone not aware of this change and the intention behind it looking at the code would have a hard time figuring this out and be easily mislead. This does away with the confusion making the code more maintainable by renaming DEFAULT_FILES_CACHE_MODE to FILES_CACHE_MODE_DISABLED, making the new intention of that internal default clear. * make constant for files cache mode UI default match naming scheme
2022-05-16Merge pull request #6699 from KN4CK3R/backport-6688-1.1TW
Backport Fix typos (#6688)
2022-05-15Fix typos (#6688)Andrea Gelmini
fix typos Co-authored-by: Thomas Waldmann <tw@waldmann-edv.de>
2022-05-15Merge pull request #6696 from ThomasWaldmann/versions-mount-1archive-error-1.1TW
mount -o versions: give clear error msg instead of crashing
2022-05-15mount -o versions: give clear error msg instead of crashingThomas Waldmann
it does not make sense to request versions view if you only look at 1 archive, but the code shall not crash in that case as it did, but give a clear error msg.
2022-05-08Merge pull request #6684 from ThomasWaldmann/fix-archive-progress-json-1.1TW
show_progress: add finished=true/false to archive_progress json
2022-05-08show_progress: add finished=true/false to archive_progress json, fixes #6570Thomas Waldmann
also: - remove empty values from final json - add test
2022-05-07Merge pull request #6680 from KN4CK3R/backport-6670-1.1TW
Backport check that borg does not require pytest for normal usage (#6670, 1.1)
2022-05-07Merge pull request #6677 from KN4CK3R/backport-6659-1.1TW
Backport mention BORG_FILES_CACHE_SUFFIX as alternative to BORG_FILES_CACHE_TTL (#6659)
2022-05-07check that borg does not require pytest for normal usage, fixes #6563Thomas Waldmann
also: move the note about this to the very top of the affected modules.
2022-05-07docs: mention BORG_FILES_CACHE_SUFFIX as alternative to ↵Thomas Waldmann
BORG_FILES_CACHE_TTL, fixes #5602
2022-04-27Merge pull request #6649 from ThomasWaldmann/key-algo-error-msg-1.1TW
give a more helpful error msg for unsupported encrypted key format (1.1)
2022-04-24give a more helpful error msg for unsupported key format, fixes #6561Thomas Waldmann
2022-04-24give a more helpful error msg for unsupported encrypted key format, fixes #6561Thomas Waldmann
2022-04-24Merge pull request #6644 from hexagonrecursion/1.1-faqTW
[1.1] Add a troubleshooting note to the FAQ
2022-04-24Add a troubleshooting note to the FAQAndrey Bienkowski
2022-04-20Merge pull request #6634 from ThomasWaldmann/update-changes-1.1TW
update CHANGES
2022-04-20Merge pull request #6635 from ThomasWaldmann/docs-files-cache-1.1TW
FAQ: add a hint about --debug-topic=files_cache
2022-04-20FAQ: add a hint about --debug-topic=files_cacheThomas Waldmann
2022-04-19update CHANGESThomas Waldmann
2022-04-19Merge pull request #6631 from ThomasWaldmann/fix-info-authenticated-1.1TW
info: fix authenticated mode repo to show "Encrypted: No", fixes #6462
2022-04-19info: fix authenticated mode repo to show "Encrypted: No", fixes #6462Thomas Waldmann
2022-04-19Merge pull request #6626 from ThomasWaldmann/issue-5673-1.1TW
do not load files cache for commands not using it, fixes #5673
2022-04-19Merge pull request #6628 from ThomasWaldmann/fix-files-cache-6353-1.1TW
fix transaction rollback: use files cache filename as found in txn.active
2022-04-19fix transaction rollback: use files cache filename as found in txn.active, ↵Thomas Waldmann
fixes #6353
2022-04-19do not load files cache for commands not using it, fixes #5673Thomas Waldmann
2022-04-19diff: support presence change for blkdev, chrdev and fifo items (1.1-maint) ↵TW
(#6625) diff: support presence change for blkdev, chrdev and fifo items fixes #6483
2022-04-18Merge pull request #6621 from ThomasWaldmann/secure-erase-msg-1.1TW
remove stray punctuation from secure-erase message
2022-04-18Merge pull request #6617 from ThomasWaldmann/invalid-repo-msg-1.1TW
better error msg for defect or unsupported repo configs, fixes #6566
2022-04-18remove stray punctuation from secure-erase messageJakub Wilk
2022-04-18better error msg for defect or unsupported repo configs, fixes #6566Thomas Waldmann
2022-04-13Merge pull request #6590 from ThomasWaldmann/docs-virt-1.1TW
virtualisation speed tips
2022-04-13virtualisation speed tipsThomas Waldmann
2022-04-12Merge pull request #6583 from ThomasWaldmann/deleted-key-1.1TW
load_key: no key is same as empty key, fixes #6441
2022-04-12load_key: no key is same as empty key, fixes #6441Thomas Waldmann
when migrating from repokey to keyfile, we just store an empty key into the repo config, because we do not have a "delete key" RPC api. thus, empty key means "there is no key". here we fix load_key, so that it does not behave differently for no key and empty key: in both cases, it just returns an empty value. additionally, we strip the value we get from the config, so whitespace does not matter. All callers now check for the repokey not being empty, otherwise RepoKeyNotFoundError is raised.
2022-04-12Merge pull request #6577 from ThomasWaldmann/repo-tags-docs-1.1TW
docs: fix values of TAG bytes, fixes #6515
2022-04-12docs: fix values of TAG bytes, fixes #6515Thomas Waldmann
2022-04-12Merge pull request #6541 from ThomasWaldmann/more-robust-iterator-1.1TW
borg check improvements (1.1)
2022-04-10Merge pull request #6559 from bcat/1.1-maintTW
(docs) 1.1: Recommend umask for passphrase file perms
2022-04-09(docs) Recommend umask for passphrase file permsJonathan Rascher
The previous sample for creating a ~/.borg-passphrase file creates it first and then chmod's it to 400 permissions. That's probably fine in practice, but means there's a tiny window where the passphrase file is sitting with default permissions (likely world readable, depending on the system umask). It seems safer to first change the umask to remove all group & world bits (0077) _before_ creating the file. To be polite and avoid messing with the user's previous umask, we do this in a subshell. (Note that umask 0077 leads to a mode of 600 rather than the previous 400, because removing the owner write bit doesn't seem to buy much since the owner can just chmod the file anyway.)
2022-04-07check archives: improve error handling for corrupt archive metadata blockThomas Waldmann
this is similar to #4777. borg check must not crash if an archive metadata block does not decrypt. Instead, report the archive_id, remove the archive from the manifest and skip to the next archive.
2022-04-07check archive: make robust_iterator more robust, fixes #4777Thomas Waldmann
borg check must not crash if an archive metadata chunk does not decrypt. Instead, report the chunk and skip to the next one.
2022-04-05Merge pull request #6537 from bket/1.1_fix_#2055TW
1.1 - Fix OpenBSD symlink mode test failure (#2055)
2022-04-051.1 - Fix OpenBSD symlink mode test failure (#2055)Björn Ketelaars
OpenBSD does not have `lchmod()` causing `os.lchmod` to be unavailable on this platform. As a result ArchiverTestCase::test_basic_functionality fails when run manually (#2055). OpenBSD does have `fchmodat()`, which has a flag that makes it behave like `lchmod()`. In Python this can be used via `os.chmod(path, mode, follow_symlinks=False)`. As of Python 3.3 `os.lchmod(path, mode)` is equivalent to `os.chmod(path, mode, follow_symlinks=False)`. As such, switching to the latter is preferred as it enables more platforms to do the right thing.
2022-04-04Merge pull request #6527 from ThomasWaldmann/fix-ipv6-url-parsing-1.1TW
fix scp repo url parsing for ip v6 addrs, fixes #6526