I use backuppc to backup all my hosts onto a removable HDD, set up in my $TOPDIR property in backuppc's config.pl
/media/adam/Seagate-4TB/backuppc/
The HDD is connected up 100% of the time except when I'm changing it over.
The problem is that although the HDD is connected, it isn't mount at boot time. In fact the mount only occurs when I click on the drive in the GUI file manager or similar.
May 21 13:27:10 gondor backuppc[1332]: 2017-05-21 13:27:10 Can't create a test hardlink between a file in
/media/adam/Seagate-4TB/backuppc/pc and /media/adam/Seagate-4TB/backuppc/cpool.
Either these are different file systems, or this file system doesn't
support hardlinks, or these directories don't exist, or there is a
permissions problem, or the file system is out of inodes or full.
Use df, df -i, and ls -ld to check each of these possibilities.
Quitting...
May 21 13:27:10 gondor systemd[1]: backuppc.service: Control process exited, code=exited status=1
May 21 13:27:10 gondor systemd[1]: Failed to start LSB: Launch backuppc server.
May 21 13:27:10 gondor systemd[1]: backuppc.service: Unit entered failed state.
May 21 13:27:10 gondor systemd[1]: backuppc.service: Failed with result 'exit-code'.
This is all predictable, but I keep forgetting to mount the drive and restart the backuppc. Sometimes I leave it like that for weeks before it occurs to me that the backups aren't running :(
What are my options?
I was thinking of scripting a startup script to mount the removable drive before backuppc starts up, but is there a simpler option?
UPDATE
These are my harddrives, including the Seagate backup drive:
/dev/sdb1: UUID="f5e1afdc-69b4-4575-8fe4-d427dfc6874c" TYPE="ext4" PARTUUID="6e1a7899-01"
/dev/sdb5: UUID="b2fb1f65-b679-432f-9b0f-29ae8ef6aef0" TYPE="swap" PARTUUID="6e1a7899-05"
/dev/sda1: LABEL="Seagate-4TB" UUID="43d0ff42-f1f3-4101-ba50-1ddf68810440" TYPE="ext4" PARTLABEL="Seagate Backup Plus Drive" PARTUUID="522e4b98-09fa-40a9-8b21-4e204164f883"
/dev/sdd1: LABEL="WDPassport2T" UUID="cf125d89-87af-4dd1-9f17-8367c8e06bb1" TYPE="ext4" PARTUUID="83fb3c40-01"
/dev/sdc1: LABEL="Videos-2TB" UUID="28AA-C030" TYPE="exfat" PARTLABEL="primary" PARTUUID="d5261cee-ef5b-4039-bd63-e66334a47ea9"