Hi Henry, At home I just setup the backup schedule under FreePBX for a nightly backup. I then setup a small shell script to copy the directory to a USB drive. I set this script to fire off 15 minutes after the backup starts using cron. The script is just something like this:
--- #!/bin/bash cp -R -u -f /var/lib/asterisk/backups/ /path/to/usb --- This copies using the "update" switch so that only newer files get copied to the USB drive. In the event of a restore you will need to manually copy the USB contents back to /var/lib/asterisk/backups to get FreePBX to see your backups. I never thought of mounting the backup directory to the USB drive, so your solution may actually be better - Just thought I'd throw this out there as an alternative. AR -- Alex Robar [email protected] On Mon, Dec 13, 2010 at 10:43 AM, Henry Coleman <[email protected]>wrote: > I remember asking this question about two years ago but unfortunately > didn't > document the answers. > I need to Backup and Restore using the FreePBX Module but to a USB stick > rather than an asterisk directory. > Currently this directory is: '/var/lib/asterisk/backups/$Backup_Name' > however changing this will break the "Restore" > I understand that the best way is to mount this directory onto the USB. > Unfortunately this is beyond my abilities. > If the USB stick is removed the backup and restore should be available in > the normal way. > > Hoping that someone out there can "sort me out" > Thanks H > > > > > -- > *Henry L. Coleman * > ***Per: VoIP-PBX.ca > * > * > * >
