Move nzbget and photoprism config to shared storage on NAS SSD

This commit is contained in:
IamTheFij 2023-02-28 12:16:49 -08:00
parent 19d5321731
commit 36d00300c3
5 changed files with 14 additions and 41 deletions

View File

@ -22,17 +22,6 @@ all:
group: "bin"
mode: "0755"
read_only: false
# Moxy shared volumes
- name: nzbget-config
path: /srv/volumes/moxy/nzbget
owner: "nobody"
group: "bin"
read_only: false
- name: photoprism-storage
path: /srv/volumes/moxy/photoprism-storage
owner: "nobody"
group: "bin"
read_only: false
n2.thefij:
nfs_mounts:
- src: 10.50.250.2:/srv/volumes
@ -59,19 +48,6 @@ all:
group: "bin"
mode: "0755"
read_only: false
# Moxy shared volumes
- name: nzbget-config
path: /srv/volumes/moxy/nzbget
owner: "nobody"
group: "bin"
mode: "0755"
read_only: false
- name: photoprism-storage
path: /srv/volumes/moxy/photoprism-storage
owner: "nobody"
group: "bin"
mode: "0755"
read_only: false
# n3.thefij:
# nomad_node_class: ingress
# nomad_node_role: both

View File

@ -205,6 +205,10 @@
path: /srv/volumes/photos
opts: proto=tcp,port=2049,rw
- src: 192.168.2.10:/Container
path: /srv/volumes/nas-container
opts: proto=tcp,port=2049,rw
tasks:
- name: Install nfs
package:
@ -245,12 +249,12 @@
- name: photoprism-media
path: /srv/volumes/photos/Photoprism
read_only: false
# - name: tv-sonarr
# path: "/srv/volumes/media-write/TV Shows"
# owner: 1001
# group: 100
# mode: "0755"
# read_only: false
- name: photoprism-storage
path: /srv/volumes/nas-container/photoprism
read_only: false
- name: nzbget-config
path: /srv/volumes/nas-container/nzbget
read_only: false
- name: all-volumes
path: /srv/volumes
owner: "root"

View File

@ -9,7 +9,7 @@ job "nzbget" {
backup {
paths = [
# Configuration
"/data/nzbget",
"/data/nas-container/nzbget",
# Queued nzb files
"/data/media-write/Downloads/nzb",
]

View File

@ -27,14 +27,7 @@ job "photoprism" {
backup {
paths = [
"/local/photoprism",
# NOTE: Right now the cache and sidecar files are stored in the task local
# storage and not in a volume that can be backed up. This was done to allow
# Photoprism to be moved between hosts. If this directory becomes large and
# costly to move between hosts or regenerate, then it may be worth putting it
# on a host volume so it can be backed up as well. Possibly once I get NFS
# shares running from the Proxmox host available to the VMs for faster shared
# storage.
"/data/moxy/photoprism-storage",
"/data/nas-container/photoprism",
]
# Because path is absolute
restore_opts {

View File

@ -95,10 +95,10 @@ job "ipdvr" {
}
}
volume "nzbget-data" {
volume "nzbget-config" {
type = "host"
read_only = false
source = "nzbget-data"
source = "nzbget-config"
}
volume "media-downloads" {