sets up actual with backups
This commit is contained in:
parent
cfe2e1f51c
commit
25b702bee9
2 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,8 @@
|
||||||
description = "user service for the actual budgeting server instance";
|
description = "user service for the actual budgeting server instance";
|
||||||
environment = {
|
environment = {
|
||||||
ACTUAL_PORT = "9002";
|
ACTUAL_PORT = "9002";
|
||||||
|
ACTUAL_DATA_DIR = "/data/actual-server";
|
||||||
|
ACTUAL_HOSTNAME = "0.0.0.0";
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,11 @@
|
||||||
initialize = true;
|
initialize = true;
|
||||||
passwordFile = config.age.secrets."restic/password".path;
|
passwordFile = config.age.secrets."restic/password".path;
|
||||||
repository = "sftp:dnsc-storage:restic/dnsc-server";
|
repository = "sftp:dnsc-storage:restic/dnsc-server";
|
||||||
|
createWrapper = true;
|
||||||
paths = [
|
paths = [
|
||||||
"/home/dennis/notes"
|
"/home/dennis/notes"
|
||||||
"/main/share"
|
"/main/share"
|
||||||
|
"/data/actual-server"
|
||||||
];
|
];
|
||||||
pruneOpts = [
|
pruneOpts = [
|
||||||
"--keep-last 3"
|
"--keep-last 3"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue