2022-01-15 17:08:47 +00:00
|
|
|
|
{ ... }: {
|
|
|
|
|
services.restic.backups."sysbackup" = {
|
|
|
|
|
passwordFile = "/run/secrets/security/restic/password";
|
|
|
|
|
paths = [
|
|
|
|
|
"/var"
|
|
|
|
|
"/home"
|
|
|
|
|
];
|
2022-01-21 17:03:35 +00:00
|
|
|
|
extraBackupArgs = [
|
|
|
|
|
"--exclude-caches"
|
|
|
|
|
"--exclude=/var/lib/minio/disk0/cache.int.chir.rs" # Cache files, don’t need backups since they are automatically deleted anyways…
|
|
|
|
|
"--exclude=/var/lib/minio/disk1/cache.int.chir.rs"
|
|
|
|
|
"--exclude=/var/lib/minio/disk2/cache.int.chir.rs"
|
|
|
|
|
"--exclude=/var/lib/minio/disk3/cache.int.chir.rs"
|
|
|
|
|
];
|
2022-01-15 17:17:31 +00:00
|
|
|
|
repository = "sftp:darkkirb@backup.int.chir.rs:/backup";
|
2022-01-15 17:08:47 +00:00
|
|
|
|
};
|
2022-01-18 10:36:50 +00:00
|
|
|
|
sops.secrets."security/restic/password" = { };
|
2022-01-15 17:08:47 +00:00
|
|
|
|
}
|