Skip to content

Restic backups across hosts #201

Description

@stackptr

Currently spore uses restic to backup Postgres databases using an environmentFile and passwordFile. This should be extended to make backups on glyph for at least the following:

  • ~/.config/beets/library.db
  • /var/lib/roon-server/backup

I think hosts/spore/backup.nix should be generalized into modules/nixos/backup.nix so that setting up backups in a host becomes:

rc.backups = {
  roon = {
    paths = ["/var/lib/roon-server/backup"];
  };
};

The module would encapsulate configuration options such as the repository, environmentFile, and passwordFile, which I don't think need to be changed per-host. pruneOpts would have a default that could be overridden in the host.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions