mirror of
https://codeberg.org/hyperreal/techne
synced 2024-11-01 14:23:06 +01:00
23 lines
582 B
Org Mode
23 lines
582 B
Org Mode
|
#+title: Systemd
|
||
|
#+setupfile: ../org-templates/page.org
|
||
|
|
||
|
** Mount NFS share
|
||
|
Create a unit file at ~/etc/systemd/system/mnt-backup.mount~. The name of the unit file must match the ~Where~ directive. Ex. ~Where=/mnt/backup~ --> ~mnt-backup.mount~.
|
||
|
#+BEGIN_SRC systemd
|
||
|
[Unit]
|
||
|
Description=borgbackup NFS share from TrueNAS (10.0.0.81)
|
||
|
DefaultDependencies=no
|
||
|
Conflicts=umount.target
|
||
|
After=network-online.target remote-fs.target
|
||
|
Before=umount.target
|
||
|
|
||
|
[Mount]
|
||
|
What=10.0.0.81:/mnt/coffeeNAS/backup
|
||
|
Where=/mnt/backup
|
||
|
Type=nfs
|
||
|
Options=defaults
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
#+END_SRC
|