I have some difficulty to understand what you want to achieve.
Two questions
1. Do you really need a solution different from the standard approach -
i.e. first let the system do automounting, then let Linux launch
backuppc as one of the services it automatically starts?
For instance: my the server partition sits on an internal drive (not
USB), but contains also, and in addition to the backup data, all
necessary configuration data (the nodes /etc/backuppc and /usr/lib
reside on my home partition, but all effective configuration data are
stored on the server partition, linked-to from /etc/backuppc/hosts and
/etc/backuppc/pc resp. /var/lib/backuppc). That works fine and allows
for quite some flexibility; there should be no problem if the server
partition is stored on a USB drive.
2. In case you are stuck with the need for a more fancy setup, are you
aware that practically all Linux distros have support for actions to be
done once auto-mount (according to the contents of /etc/fstab) is
accomplished? This is based on a specific directory where you can put
scripts that will be executed automatically, but only once auto-mounting
has finished. Evidently, if these actions do mounting, /etc/fstab must
specify the corresponding directories with the "noauto" option. You
could use this feature to add a script that explicitly controls how and
when partitions are mounted and backuppc is launched.
How this is implemented varies from distro to distro. In my Mageia
distro this directory is /etc/sysconfig/network-scripts/ifup.d, in
Ubuntu, for instance, it is /etc/network/ifup.d. Another difference is
that some distros call these scripts with 2 arguments - the second one
being "up" or "down", other distros have separate ifup.d and ifdown.d
directories and do not require the scripts to explicitly make the
distinction.
_______________________________________________
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/