Re: [BackupPC-users] Backing up a USB-disk?
2009-06-11 01:53:57
ons 2009-06-10 klockan 21:55 -0400 skrev Filipe Brandenburger:
> Hi,
>
> On Wed, Jun 10, 2009 at 17:57, Holger Parplies<wbppc AT parplies DOT de>
> wrote:
> > note that you could even set the PingCmd to a shell script that checks
> > whether the disk is mounted (eg. '[ -f /path/to/usbdisk/.thisistheusbdisk ]'
> > if you have a file '.thisistheusbdisk' in the root of your USB disk's file
> > system - please ask if you need more details).
>
> You can use the "mountpoint" command (present in RHEL 5 or SuSE 10) to
> test if that path is a mount point for some volume.
>
> mountpoint -q /path/to/usbdisk
> (will set $? to 0 if it's mounted, non-zero otherwise)
Hi!
How would I use this value that mountpoint returns, do you mean?
(mountpoint seems to be present on my ubuntu jaunty system as well).
Magnus
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|
|
|