Hi,
We use autofs to mount an NFS share to a central backup device. We use postcpbackup and precpbackup to carry out post backup checks and to ensure the NFS share is mounted correctly before backups commence.
I have read this post:
http://forums.cpanel.net/f5/force-backup-run-using-new-11-38-system-343821-p2.html
But it is anything but clear how to define/create the required hooks in the first place. I understand this area is still being documented, but in the meantime, could anyone provide a quick boilerplate how-to, in principle, to run a perl script pre and post backup, and if there is a more elegant way of killing the backup via the pre script than simply hunting down a process ID and killing it.
We use autofs to mount an NFS share to a central backup device. We use postcpbackup and precpbackup to carry out post backup checks and to ensure the NFS share is mounted correctly before backups commence.
I have read this post:
http://forums.cpanel.net/f5/force-backup-run-using-new-11-38-system-343821-p2.html
But it is anything but clear how to define/create the required hooks in the first place. I understand this area is still being documented, but in the meantime, could anyone provide a quick boilerplate how-to, in principle, to run a perl script pre and post backup, and if there is a more elegant way of killing the backup via the pre script than simply hunting down a process ID and killing it.