-
-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --append-only to borg serve (1.0-maint) #1229
Add --append-only to borg serve (1.0-maint) #1229
Conversation
The RPC / serve part is tested via RemoteArchiverTestCase in borg.testsuite.archiver and the RemoteXXX tests in borg.testsuite.repository. An extension of RepositoryAppendOnlyTestCase (borg.testsuite.repository) would be sufficient (cf. RemoteRepositoryTestCase). |
@enkore Great, makes sense! Thanks for the help. |
Hmm, doesn't it make sense to test local and remote? The cmdline option could also be used for locally mounted stuff, maybe for slightly different reasons. |
56666f3
to
0be02eb
Compare
How's that latest commit for a start? Now I just need to test that --append-only will get translated into a repo created with that flag. Also, I keep almost pushing my |
build/dist/borg.build/.dist etc. are all in the git ignore...? |
|
Oi, didn't notice that. But yeah, they're here as well, it's just that my worktrees are littered with stuff. Guess |
I think that's all the testing that should be done with the current testing infrastructure. Anything more? If not, I think this is ready to merge. |
Search where the docs refer to append-only and add some words and an example how it can be used after your change. |
0be02eb
to
bdf0408
Compare
Right, docs. Forgot about those. Should be good with the latest commit. |
@@ -727,6 +727,13 @@ To activate append-only mode, edit the repository ``config`` file and add a line | |||
In append-only mode Borg will create a transaction log in the ``transactions`` file, | |||
where each line is a transaction and a UTC timestamp. | |||
|
|||
In addition, ``borg serve`` can act as if a repository is in append-only mode with | |||
it's option ``--append-only``. This can be very useful for fine-tuning access control |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: "its"
bdf0408
to
0595cfc
Compare
let's see if github finds it also in the 2nd line. |
Yep!
Also, I know it does from experience. |
LGTM, merge after travis? |
yes. @PlasmaPower thanks for contributing. Visit bountysource after the issue is closed and claim. also, feel free to add yourself to AUTHORS file. |
Side note on fixing an issue in the commit message: if you do that from the beginning and you amend to the commit every amendment will stay on the issue page which clogs it up fast. @ThomasWaldmann Glad I could help! I'll be looking to contribute more in the future, even on issues without bounties. This project is a lot better than just rsync, I'll be personally using it. |
0595cfc
to
79df1bd
Compare
I made a linting mistake in the repository tests. Fixed, but Travis will have to run again. |
@PlasmaPower ah, interesting note about the commit msg. |
Current coverage is 82.64%
@@ 1.0-maint #1229 diff @@
===========================================
Files 14 14
Lines 4243 4246 +3
Methods 0 0
Messages 0 0
Branches 745 745
===========================================
+ Hits 3506 3509 +3
Misses 521 521
Partials 216 216
|
Travis is done, it passed. |
@PlasmaPower you committed .egg stuff. We completely killed that from history, please try again. |
Replaces #1228 which resolves #1168