Operator can make back-ups of applications' mutable file systems #126
Labels
No labels
0 points
0.5 points
1 point
13 points
2 points
21 points
3 points
34 points
5 points
55 points
8 points
ambition
application-offering
ambition
configure-applications
ambition
front-end
ambition/install-applications
ambition
security
ambition
switch-host
ambition
update-applications
ambition
user-management
api service
blocked
component: fediversity panel
component: nixops4
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
infinite points
productisation
project-management
question
role: application developer
role: application operator
role: hosting provider
role: maintainer
security
technical debt
testing
type unclear
type: bug
type: deliverable
type: key result
type: objective
type: task
type: user story
user experience
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
Depends on
#29 Backups for Forgejo
fediversity/fediversity
#123 enable back-ups of application
fediversity/fediversity
#138 VMs use central file storage
fediversity/fediversity
Reference
fediversity/fediversity#126
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As an operator,
given I run Fediversity applications,
I want to be able to make back-ups of applications' mutable file systems,
in order to rest assured I will not lose important data.
implementation notes
May be handled using SelfHostBlocks' Backup Contract.
kiara referenced this issue2025-06-09 14:11:42 +02:00
@Toast has wondered if our applications' state might not all already be in just DBs + S3.
to verify, we might say check the applications'
dataDir.Indeed!
So far for the operator applications we currently support (mastodon, peertube, pixelfed), most seem to use S3 storage exclusively. However, with peertube, the documentation is not the clearest about it.
https://docs.joinpeertube.org/maintain/remote-storage#remote-storage-s3 mentions this:
For peertube, the migration guide mentions backing up two directories
/var/lib/peertube/configShould contain NixOS generated files exclusively, however after checking that directory on out tests, there's also alocal.yamlwith some sort of secret.
Edit: this secret is already handled
/var/lib/peertube/storageWe use S3 so it should be empty, however peertube creates the file structure it would have if we used file storage instead.
I inspected it after running the tests too, and it does leave some files over
I am unfamiliar with peertube so I don't know if this data would be regenerated on startup, or as needed (with thumbnails), so I don't know if it's worth backing up
For pixelfed, the documentation is severely lacking in this regard, so I have no backup or migration guide available.
However, from looking at the files in
/var/lib/pixelfed, we might want to back them up, since there's some keys there (and also a lot of.gitignorefiles that I'm excluding here):