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

non-critical-infra/backup: init and configure on caliban #345

Merged
merged 2 commits into from
Feb 1, 2024

Conversation

mweinelt
Copy link
Member

@mweinelt mweinelt commented Jan 29, 2024

Adds a backup module, encapsulating borgbackup, and configures the storagebox we have for caliban.nixos.org.

The backup module will not be enabled until any path is added in to services.backup.includes, but I tested it, and it works.

@mweinelt
Copy link
Member Author

mweinelt commented Jan 29, 2024

+------------------------------------------------------------------+
| Welcome to your Storage Box.                                     |
|                                                                  |
| Please note that this is only a restricted shell environment and |
| therefore some shell features like pipes and redirects are not   |
| supported.                                                       |
+------------------------------------------------------------------+
u371748 /home > borg
Command not found. Use 'help' to get a list of available commands.

Looks like it can't be called interactively, but borg still manages to connect.

@mweinelt
Copy link
Member Author

mweinelt commented Jan 29, 2024

Works.

# BORG_RSH="ssh -p 23 -i /var/keys/storagebox-ssh-key" BORG_PASSCOMMAND="cat /var/keys/borg-secret" BORG_REPO="[email protected]:caliban.nixos.org/repo" borg list
caliban-state-2024-01-29T15:38:59    Mon, 2024-01-29 15:39:06 [c3dfd6625b92079fea0afce49cbabc8f4e17acd17ffb907334587593eeda1688]

Copy link
Member

@JulienMalka JulienMalka left a comment

Choose a reason for hiding this comment

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

LGTM

Module wrapping borgbackup with reasonable defaults and some extras.
@mweinelt mweinelt merged commit 42ab3d9 into master Feb 1, 2024
2 checks passed
@mweinelt mweinelt deleted the backup-module branch February 1, 2024 16:52
@mweinelt
Copy link
Member Author

mweinelt commented Feb 1, 2024

Merging, to unblock #287 and #336.

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

Successfully merging this pull request may close these issues.

3 participants