Skip to content

Commit

Permalink
Configure fafprod3 restic backups
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 authored Jun 2, 2023
1 parent 18ea2ac commit de6263d
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions machines/prod3/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,69 @@
enable = true;
extraFlags = "--disable traefik";
};

#
# The password in /etc/restic-password is also secured in our Vaultwarden.
# This config requires an ssh-config for rsync.net for a username and host using <username>.rsync.net.
# Also, the public key of this root user must be placed in rsync.net (.ssh/authorized_keys)

restic.backups = {
backup_config = {
passwordFile = "/etc/restic-password";
paths = [
"/opt/faf/config"
];
repository = "sftp:@rsync.net:restic/config";
timerConfig = {
OnCalendar = "04:00";
};
};

maps = {
passwordFile = "/etc/restic-password";
paths = [
"/opt/faf/data/maps"
];
repository = "sftp:@rsync.net:restic/maps";
timerConfig = {
OnCalendar = "04:05";
};
};

mods = {
passwordFile = "/etc/restic-password";
paths = [
"/opt/faf/data/mods"
];
repository = "sftp:@rsync.net:restic/mods";
timerConfig = {
OnCalendar = "04:15";
};
};

featured_mods = {
passwordFile = "/etc/restic-password";
paths = [
"/opt/faf/data/legacy-featured-mod-files"
];
repository = "sftp:@rsync.net:restic/featured_mods";
timerConfig = {
OnCalendar = "04:30";
};
};

nodebb_uploads = {
passwordFile = "/etc/restic-password";
paths = [
"/opt/faf/data/nodebb/uploads"
];
repository = "sftp:@rsync.net:restic/nodebb_uploads";
timerConfig = {
OnCalendar = "04:45";
};
};

};
};

networking.hostName = "fafprod3";
Expand Down

0 comments on commit de6263d

Please sign in to comment.