HOWTO Mounting External Hard Drive for call recordings
In order to save your call recordings to external hard drive you will need to perform following procedure while in PBXware shell.
To verify your external drive ID exectute:
In most cases external USB drives are 'sdb' or 'hdb'.Its name will contain additional number showing partition(s) on it.
WARNING: In our example drive shows up as sdb1 but please be aware that in your scenario this might not be the case, and any mistakes in drive selection might lead to data loss.
Before we mount our drive, we need to format it to ext3 file system:
After format is complete we need to create a directory on our system:
And mount our device in it:
mount /dev/sdb1 /mnt/sdb1
After device is mounted, enter directory /mnt/sdb1 and create new directory, named monitor inside:
cd /mnt/sdb1 mkdir monitor
Change its permisions:
chown 555:555 monitor
NOTE: In order to keep your previous call recordings available from CDR page, you will need to copy all recordings files to external drive and now it's time do do that.
To copy all recording files to external drive we just mounted, enter directory /opt/pbxware/pw/var/spool/asterisk/monitor
And copy all the files from it to /mnt/sdb1/monitor:
cp * /mnt/sdb1/monitor
Now we need to mount our external drive to our recording location using this command:
mount -o bind /mnt/sdb1/monitor /opt/pbxware/pw/var/spool/asterisk/monitor