backup tdarr

This commit is contained in:
Ingolf Wagner 2023-04-19 07:31:34 +02:00
parent e4bf5b735b
commit 7d52c492d4
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
5 changed files with 29 additions and 16 deletions

View file

@ -829,16 +829,15 @@
"locked": {
"lastModified": 1680777934,
"narHash": "sha256-/rwZWwylNzgZwVfaH0qgxOXurfWEK/kXzN2C+a1psCI=",
"ref": "main",
"ref": "refs/heads/main",
"rev": "3dfb08abebc5ac3fea1882c63598bea48b783fcd",
"revCount": 9,
"type": "git",
"url": "ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git"
"url": "file:///home/palo/dev/nixos/nixos-private-assets"
},
"original": {
"ref": "main",
"type": "git",
"url": "ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git"
"url": "file:///home/palo/dev/nixos/nixos-private-assets"
}
},
"retiolum": {

View file

@ -56,8 +56,8 @@
inputs.nixpkgs.follows = "nixpkgs";
};
private_assets = {
#url = "git+file:///home/palo/dev/nixos/nixos-private-assets";
url = "git+ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git?ref=main";
url = "git+file:///home/palo/dev/nixos/nixos-private-assets";
#url = "git+ssh://gitea@git.ingolf-wagner.de/palo/nixos-private-assets.git?ref=main";
flake = true;
};
retiolum = {

View file

@ -4,13 +4,19 @@
custom.samba-share = {
enable = true;
folders = {
#media = config.services.syncthing.folders.media.path;
media = "/media/syncthing/media";
};
private.upload = {
folder = "/media/upload";
users = "upload";
#folders = {
# #media = config.services.syncthing.folders.media.path;
# media = "/media/syncthing/media";
#};
private = {
media = {
folder = "/media/syncthing/media";
users = "upload";
};
#upload = {
# folder = "/media/upload";
# users = "upload";
#};
};
};
@ -102,6 +108,8 @@
services.permown."/media/syncthing" = {
owner = "syncthing";
group = "syncthing";
directory-mode = "770";
file-mode = "660";
};
systemd.services."permown._media_syncthing" = {
bindsTo = [ "media.mount" ];

View file

@ -6,6 +6,12 @@
group = "syncthing";
};
backup.dirs = [
"/srv/tdarr/server"
"/srv/tdarr/configs"
"/srv/tdarr/logs"
];
# https://docs.tdarr.io/docs/installation/docker/run-compose
virtualisation.oci-containers = {
backend = "podman";

View file

@ -79,11 +79,11 @@ in
name = name;
value = {
browsable = "yes";
comment = "read only share ${name}";
comment = "read write share ${name}";
path = folder;
"read only" = "no";
"valid users" = users;
"guest ok" = "false";
"read only" = "no";
"guest ok" = "no";
};
})
cfg.private);