Henry,
Don't forget to do a umount (either of umount /dev/sda1 or umount /mnt/usb should work). If it doesn't unmount, make sure that you've cd'ed out of /mnt/usb and try again (umount won't work if the current directory of a shell session or program includes the mounted filesystem).

If you just remove the usb stick without the umount bad things happen.

Regards,
Doug.

----- Original Message ----- From: "Henry L.Coleman" <[email protected]>
To: <[email protected]>
Sent: Tuesday, June 16, 2009 3:35 PM
Subject: Re: [on-asterisk] Backup and restore to a USB stick


Yes that works, but when I removed the stick it showed the file but could not (of course) access it
Plugging it back in again removed the file and showed an empty directory.

-----------------
Henry L. Coleman
[VoIP-PBX.ca]

=================

Johannes Vanderknyff<
Hmmm. Doesn't look like it is "mounted" yet. I just googled "linux how
to mount usb drive"...

Create the directory
  mkdir /mnt/usb
Next, mount the drive
  mount /dev/sda1 /mnt/usb
Then, see if it works:
  cd /mnt/usb
  ls
You should see a list of the files on your USB drive.

Johannes

On Tue, Jun 16, 2009 at 3:07 PM, Henry L.Coleman<[email protected]> wrote:
This is what I get

r...@pbx:~ $ mount
/dev/hda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)

-----------------
Henry L. Coleman
[VoIP-PBX.ca]

=================

Johannes Vanderknyff<
(NOTE: I don't know much about FreePBX)

If you can get to the console, type "mount" and that should give you a
listing of "mounted" filesystems.
If FreePBX mounted the USB drive, you'll be good to go and you can just copy
(cp) the files to that location.

Johannes

On Tue, Jun 16, 2009 at 1:48 PM, Henry L.Coleman <[email protected]>wrote:

Hi all, as many are aware FreePBX has a backup and restore function that
can schedule a backup of conf, cdr, and vmail.
This works very well but I need to back the files up to a USB stick instead
of a default backup directory.
My question (not being a good Linux man) is how do I the redirect the
backup path to this device.
When I plug the stick in, the consule indicates that the stick is
recognised and is working but does't tell me where
in the directory structure to find it.

Help please?

Henry L.Coleman [VoIP-PBX.ca]
-------------------------------------------------





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to