Mount RO, Add k8home

Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
Frank Villaro-Dixon 2024-10-22 14:47:50 +02:00
parent bf51c3d3df
commit 6e43a53bff
5 changed files with 40 additions and 4 deletions

View file

@ -11,11 +11,14 @@
- name: Copy systemd mount file
ansible.builtin.copy:
src: files/systemd-mount.mount
dest: /etc/systemd/system/mnt-syno-InfraBackups.mount
src: files/{{item}}.mount
dest: /etc/systemd/system/{{item}}.mount
owner: root
group: root
mode: 0644
with_items:
- mnt-syno-InfraBackups
- mnt-syno-k8home
register: systemd_mount
- name: Reload systemd
@ -25,9 +28,12 @@
- name: Start & Enable systemd mount
ansible.builtin.systemd:
name: mnt-syno-InfraBackups.mount
name: "{{item}}.mount"
state: started
enabled: yes
with_items:
- mnt-syno-InfraBackups
- mnt-syno-k8home
when: systemd_mount.changed

View file

@ -6,7 +6,7 @@ Wants=network-online.target
[Mount]
What=https://371969.connect.kdrive.infomaniak.com
Where=/mnt/kdrive
Options=noauto,user,
Options=noauto,user,ro,
Type=davfs
TimeoutSec=60

View file

@ -0,0 +1,13 @@
[Unit]
Description=Mounts InfraBackup from syno
After=network.target
Wants=network.target
[Mount]
What=192.168.10.200:/volume1/InfraBackups
Where=/mnt/syno/InfraBackups
Type=nfs
Options=defaults
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,13 @@
[Unit]
Description=Mounts InfraBackup from syno
After=network.target
Wants=network.target
[Mount]
What=192.168.10.200:/volume1/k8home
Where=/mnt/syno/k8home
Type=nfs
Options=defaults,ro
[Install]
WantedBy=multi-user.target

View file

@ -233,6 +233,10 @@ backup root@{{host}}:{{ backup_dir }} {{host}}
### kDrive
backup /mnt/kdrive/ kdrive/
### kubernetes PVCs
backup /mnt/syno/k8home/ k8home/
# LOCALHOST
#backup /home/ localhost/
#backup /etc/ localhost/