Backups: Add backup host config
This commit is contained in:
8
ansible/plays/templates/mount-storagebox.automount.j2
Normal file
8
ansible/plays/templates/mount-storagebox.automount.j2
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=storagebox automount
|
||||
|
||||
[Automount]
|
||||
Where=/var/home/backup/storagebox
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
14
ansible/plays/templates/mount-storagebox.mount.j2
Normal file
14
ansible/plays/templates/mount-storagebox.mount.j2
Normal file
@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Mount storagebox with sshfs
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
[Mount]
|
||||
What=u309229-sub6@u309229.your-storagebox.de:
|
||||
Where=/var/home/backup/storagebox
|
||||
Type=fuse.sshfs
|
||||
Options=_netdev,reconnect,delay_connect,ServerAliveInterval=30,ServerAliveCountMax=5,x-systemd.automount,Port=23,IdentityFile=/var/home/backup/.ssh/storagebox
|
||||
TimeoutSec=60
|
Reference in New Issue
Block a user