database backup refining
This commit is contained in:
@@ -160,23 +160,20 @@ in {
|
||||
enable = true;
|
||||
location = "/var/backup/mysql";
|
||||
user = "root";
|
||||
startAt = "03:58";
|
||||
compression = "zstd";
|
||||
calendar = "03:58:00";
|
||||
compressionAlg = "zstd";
|
||||
databases = config.services.mysql.ensureDatabases; # set to all databases defined in esure databases
|
||||
};
|
||||
services.postgresqlBackup = config.services.postgresql.enable {
|
||||
services.postgresqlBackup = lib.mkIf config.services.postgresql.enable {
|
||||
# immich uses this
|
||||
enable = true;
|
||||
location = "/var/backup/postgresql";
|
||||
compression = "gzip"; # optional: "xz", "zstd", "none"
|
||||
compression = "zstd"; # optional: "xz", "zstd", "none"
|
||||
startAt = "03:58";
|
||||
user = "postgres";
|
||||
databases = ["immich"]; # set to all databases defined in esure databases
|
||||
#databases = config.services.postgresql.ensureDatabases; # set to all databases defined in esure databases
|
||||
};
|
||||
|
||||
services.mysql.ensureDatabases = ["FUCKING_NOTICE_ME"];
|
||||
|
||||
# install borg binary
|
||||
environment.systemPackages = with pkgs; [borgbackup tree];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user