Skip to content
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

borgbackup: Improve documentation #83529

Merged
merged 1 commit into from Apr 2, 2020
Merged

borgbackup: Improve documentation #83529

merged 1 commit into from Apr 2, 2020

Conversation

ngiger
Copy link
Contributor

@ngiger ngiger commented Mar 27, 2020

Added an example on howto create a backup job to
a remote borg server.

Tested with my borgbase.com account.

Motivation for this change
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/manual-does-not-specify-who-to-cc-when-submitting-a-patch/6449/1

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Mar 28, 2020

Thank you for contributing!
I think an example with comments and this long would be better suited for the NixOS manual rathen than the option help. It would be really helpful if you could write a (even small) section on bogbackup. In case here's a guide on how to edit the manual.

@ngiger
Copy link
Contributor Author

ngiger commented Mar 31, 2020

Thanks for your suggestion. Please review also my second patch.
As it is my first contribuion I might well miss some common practices for NixOS, but I invested a few hours and looked at the documentation of postgresql and nextcloud and tried to pick the best out of it.

I did run nix-build nixos/release.nix -A manual.x86_64-linux till it did not throw any errors/warnings.

Also it would be nice if @dotlambda could review these changes, too.

Copy link
Contributor

@rnhmjoj rnhmjoj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, excellent work! I left a few comments, besides that it's good to be merged.
Thank you for your work.

nixos/modules/services/backup/borgbackup.nix Outdated Show resolved Hide resolved
nixos/modules/services/backup/borgbackup.xml Show resolved Hide resolved
nixos/modules/services/backup/borgbackup.xml Outdated Show resolved Hide resolved
@ngiger
Copy link
Contributor Author

ngiger commented Mar 31, 2020

Fixed the typo.
Limited the length of documentation to 80 chars (except a few lines which are output
of bash shell.
Added the warning about the passphrase and used passCommand in all other examples.

* creating a local backup
* creating a borgbackup server
* backing up to a borgbackup server
* hints about the Vorta graphical desktop application
* Added documentation about Vorta desktop client

Tested the examples locally and with my borgbase.com account.
@timokau
Copy link
Member

timokau commented Apr 2, 2020

This broke eval on master because of the '' in the comment being interpreted as the end of the literal example.

@timokau timokau mentioned this pull request Apr 2, 2020
10 tasks
@timokau
Copy link
Member

timokau commented Apr 2, 2020

#84102

timokau added a commit to timokau/nixpkgs that referenced this pull request Apr 2, 2020
The '' is interpreted as the end of the literal example, breaking
evaluation.

Follow-up to NixOS#83529.
@Mic92
Copy link
Member

Mic92 commented Apr 2, 2020

Yes. It is a bit of a problem that ofborg is not working right now.

@timokau
Copy link
Member

timokau commented Apr 2, 2020

What do you mean? It seemed to work fine before: #84096

@Mic92
Copy link
Member

Mic92 commented Apr 2, 2020

@timokau Ok. It was broken yesterday. But looks like it got fixed again.

@rnhmjoj
Copy link
Contributor

rnhmjoj commented Apr 2, 2020

Sorry I wasn't around at the time...
I just want to thank @ngiger again for this great contribution. NixOS really need more documentation like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants