I'm rigging up a new BackupPC server to use an external USB drive and I wanted to get systemd to automount the drive when the service is started. I just found this nice article on how to do that:

<https://blog.thewatertower.org/2019/12/29/mount-dependencies-with-systemd/>

My use case is slightly complicated because I want to mount both /etc/BackupPC and /var/lib/BackupPC from the external drive using bind mounts, so I'll actually need three mount unit files, for the physical mount and the two bind mounts, plus a drop-in to modify the BackupPC service unit file.



_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to