WHM Mount / Unmount Backup script

Addon Script to mount / unmount backup drive / partition from within WHM: addon_PWSbackupdrive V3.5
  Created - in 2003 (V1.0)
  Modified - February 28, 2004 (V2.0)
        combined seperate mount and unmount scripts into one
        edited to be easily modified for use by others
  Modified - March 2, 2004 (V2.01)
        added warning at start of actual code
  Modified - April 4, 2005 (V3.0)
        modified to be a WHM addon script
          (no customization is needed to the WHM skin)
        modified to automatically detect and show mount condition and let you reverse it
  Modified - April 5, 2005 (V3.1)
        added option whether or not to allow resellers to use the script
  Last Modified - November 4, 2006 (V3.5)
        changed method of limiting user access
        now allows resellers with root privileges to use script

This script allows you to mount and unmount your backup drive or partition from within WHM. A handy way to take a look at the size of your backup drive without having to go to shell first. First it tells you if backup is mounted or not, then gives you a link to reverse it.

be sure to upload the script in ascii mode

Save the following file to your servers WHM cgi folder which is probably at /usr/local/cpanel/whostmgr/docroot/cgi. Rename the addon_PWSbackupdrive.txt to addon_PWSbackupdrive.cgi and make it executable. Read the instructions at the beginning of the script to set some variables and the link will automatically appear in your WHM theme. Full details and instructions are given in the script.

script - rename to addon_PWSbackupdrive.cgi
The addon_ prefix must exist for the script to automatically appear in WHM.


Custom Scripts main page

Scripts Club
for a small donation you get access to the WHM scripts and improved versions of other scripts,
as well as other luxuries of being a "Scripts Club" member.

Go Back