restic: clean up modules
This commit is contained in:
parent
255e8fdf3c
commit
58595866af
2 changed files with 32 additions and 49 deletions
|
|
@ -14,8 +14,6 @@
|
|||
exec /run/wrappers/bin/restic "$@"
|
||||
'';
|
||||
|
||||
initialize = true;
|
||||
repository = "rest:https://restic.taild5f7e6.ts.net/gutterman/gameservers";
|
||||
environmentFile = config.sops.secrets."restic/rest-auth.env".path;
|
||||
passwordFile = config.sops.secrets."restic/password".path;
|
||||
timerConfig = {
|
||||
|
|
@ -23,6 +21,9 @@
|
|||
Persistent = true;
|
||||
};
|
||||
|
||||
repository = "rest:https://restic.taild5f7e6.ts.net/gutterman/gameservers";
|
||||
initialize = true;
|
||||
|
||||
paths = [
|
||||
"/var/lib/minecraft"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -44,15 +44,12 @@
|
|||
restic-backups-main.serviceConfig.Type = "oneshot";
|
||||
};
|
||||
|
||||
services.restic.backups = {
|
||||
main = {
|
||||
services.restic.backups.main = {
|
||||
user = "restic-backup";
|
||||
package = pkgs.writeShellScriptBin "restic" ''
|
||||
exec /run/wrappers/bin/restic "$@"
|
||||
'';
|
||||
|
||||
initialize = true;
|
||||
repository = "rest:http://localhost:8001/drone";
|
||||
environmentFile = config.sops.secrets."restic/rest-auth.env".path;
|
||||
passwordFile = config.sops.secrets."restic/password".path;
|
||||
timerConfig = {
|
||||
|
|
@ -60,6 +57,9 @@
|
|||
Persistent = true;
|
||||
};
|
||||
|
||||
repository = "rest:http://localhost:8001/drone";
|
||||
initialize = true;
|
||||
|
||||
paths = [
|
||||
"/var/lib/jellyfin"
|
||||
"/var/lib/vaultwarden"
|
||||
|
|
@ -79,22 +79,4 @@
|
|||
"/var/lib/vaultwarden/tmp/*"
|
||||
];
|
||||
};
|
||||
|
||||
# offsite = {
|
||||
# initialize = true;
|
||||
# repository = "rclone:protondrive:restic";
|
||||
# passwordFile = config.sops.secrets."restic/password".path;
|
||||
# timerConfig = {
|
||||
# OnCalendar = "3:05";
|
||||
# Persistent = true;
|
||||
# };
|
||||
# rcloneOptions = { protondrive-replace-existing-draft = true; };
|
||||
# rcloneConfigFile = config.sops.secrets."restic/rclone/offsite".path;
|
||||
|
||||
# paths = config.services.restic.backups.main.paths;
|
||||
# exclude = config.services.restic.backups.main.exclude;
|
||||
|
||||
# backupCleanupCommand = "rm -r /var/backups/db-backup/*";
|
||||
# };
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue