Thanks for all the suggestions. So far I think that Doug' solution looks the most promising, however it needs automating so that inserting the USB stick will automatically "mount" the stick and disconnection will "umount" the stick. (A sort of plug and play if you will) Restore might work also based on this principle.
So I'm gonna pick your Linux brains (again) and ask if this can be done? Henry [?] On Mon, Dec 13, 2010 at 5:03 PM, Henry Coleman <[email protected]>wrote: > Thanks for all the suggestions. So far I think that Doug' solution looks > the most promising, however > it needs automating so that inserting the USB stick will automatically > "mount" the stick and disconnection will "umount" the stick. > (A sort of plug and play if you will) Restore might work also based on this > principle. > > So I'm gonna pick your Linux brains (again) and ask if this can be done? > Henry > > > On Mon, Dec 13, 2010 at 3:56 PM, Marc Carrafiello > <[email protected]>wrote: > >> It's interesting that everyone's suggesting using "-t msdos" and not "-t >> vfat". You aren't worried about losing long filename support? I though >> the >> "msdos" type only support 8.3 filenames.. Or is msdos finally a synonym >> for >> vfat? >> >> -Marc >> >> >> On Mon, Dec 13, 2010 at 12:34 PM, Mike Ashton >> <[email protected]>wrote: >> >> > Henry, >> > >> > I use this to mount the usb key write the backup run in the last day to >> it >> > and unmount the usb key. I mount / umount so nothing else accidentally >> > writes to the usb key. >> > >> > #!/bin/bash >> > testval=`/sbin/fdisk -l | grep FAT | cut -d " " -f 1` >> > if [ -n $testval ] >> > then >> > echo mounting $testval >> > mount -t msdos $testval /mnt/usbstorage >> > find /var/lib/asterisk/backups/daily -type f -mtime -1 -exec cp {} >> > /mnt/usbstorage \; >> > sync >> > umount /mnt/usbstorage >> > else >> > echo "No Drive" >> > fi >> > >> > Assumptions: >> > - USB Key is formated with FAT >> > - you have created a directory in the /mnt to match name used in script >> > - your only running one back up a day >> > >> > Then just create a cron job to run this after your scheduled back up has >> > run, say 15 minutes after wards. >> > >> > Hope this helps. >> > >> > Mike >> > >> > >> > >> > On 12/13/2010 10:43 AM, Henry Coleman 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 >> > >> > >> > >> > >> > >> > >> > -- >> > >> > Mike Ashton >> > >> > Quality Track International >> > >> > Work: +1 647 724 3500 x251 >> > Cell: +1 416 527 4995 >> > >> > QTI CONFIDENTIAL AND PROPRIETARY INFORMATION >> > >> > The contents of this material are confidential and proprietary to >> Quality Track International, Inc. >> > and may not be reproduced, disclosed, distributed or used without the >> express permission of an authorized representative of QTI. >> > Use for any purpose or in any manner other than that expressly >> authorized is prohibited. >> > If you have received this communication in error, please immediately >> delete it and all copies, and promptly notify the sender. >> > >> > >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [email protected] >> > For additional commands, e-mail: [email protected] >> > >> > > > > -- > *Henry L. Coleman * > ***Per: VoIP-PBX.ca > * > * > * > > > -- *Henry L. Coleman * ***Per: VoIP-PBX.ca * * *
