working backup

This commit is contained in:
Robert Perce 2025-08-25 23:20:08 -05:00
parent 6d3532bc16
commit e2e7ffb75e
4 changed files with 176 additions and 118 deletions

View file

@ -105,24 +105,32 @@
}
];
}
{ job_name = "nut";
{
job_name = "nut";
metrics_path = "/ups_metrics";
params = { ups = [ "minirack-1500va" ]; };
static_configs = [{
targets = [
"127.0.0.1:9199"
];
labels = {
ups = "minirack-1500va";
};
}];
params = {
ups = [ "minirack-1500va" ];
};
static_configs = [
{
targets = [
"127.0.0.1:9199"
];
labels = {
ups = "minirack-1500va";
};
}
];
}
{ job_name = "minecraft";
static_configs = [{
targets = [
"craft01:25585"
];
}];
{
job_name = "minecraft";
static_configs = [
{
targets = [
"craft01:25585"
];
}
];
}
];
};
@ -131,10 +139,17 @@
enable = true;
nutServer = "xalicas";
nutVariables = [
"battery.charge" "battery.charge.low" "battery.charge.warning"
"battery.runtime" "battery.runtime.low"
"ups.load" "ups.power" "ups.power.nominal" "ups.realpower"
"ups.realpower.nominal" "ups.status"
"battery.charge"
"battery.charge.low"
"battery.charge.warning"
"battery.runtime"
"battery.runtime.low"
"ups.load"
"ups.power"
"ups.power.nominal"
"ups.realpower"
"ups.realpower.nominal"
"ups.status"
];
};
@ -142,7 +157,7 @@
paths = [ "/var/lib/grafana/data/grafana.db" ];
archiveBaseName = null;
encryption.mode = "none";
environment.BORG_RSH = "ssh -i /home/admin/.ssh/id_ed25519";
environment.BORG_RSH = "ssh -i /etc/ssh/ssh_host_ed25519_key";
repo = "ssh://backup@xalicas/./grafana";
compression = "auto,zstd";
startAt = "daily";