Re: Need suggestions on a backup issue

2012-07-20 Thread Teemu Likonen
Paul E. Condon [2012-07-20 09:50:53 -0600] wrote: > I need a way to test in Bash whether, or not, there actually is a disk > mounted at /media/wdp8. #!/bin/sh if mountpoint -q /media/wdp8; then echo Mounted else echo Not mounted fi -- To UNSUBSCRIBE, email to debian-user-requ.

Re: Need suggestions on a backup issue SOLVED: mountpoint

2012-07-20 Thread Paul E Condon
On 20120720_122714, Rob Owens wrote: > On Fri, Jul 20, 2012 at 09:50:53AM -0600, Paul E Condon wrote: > > > > Debian already provides an email facility that allows cron scripts to > > email me with error messages. I need a way to test in Bash whether, or > > not, there actually is a disk mounted a

Re: Need suggestions on a backup issue

2012-07-20 Thread Dan Ritter
On Fri, Jul 20, 2012 at 07:04:35PM +0100, Tixy wrote: > On Fri, 2012-07-20 at 09:50 -0600, Paul E Condon wrote: > > I need a way to test in Bash whether, or > > not, there actually is a disk mounted at /media/wdp8. > > A bit hacky, but what I do in my backup scripts is... > >if mount | grep

Re: Need suggestions on a backup issue

2012-07-20 Thread Tixy
On Fri, 2012-07-20 at 09:50 -0600, Paul E Condon wrote: > I need a way to test in Bash whether, or > not, there actually is a disk mounted at /media/wdp8. A bit hacky, but what I do in my backup scripts is... if mount | grep -q " /media/wdp8 " then ... fi -- Tixy -- To UNSU

Re: Need suggestions on a backup issue

2012-07-20 Thread Rob Owens
On Fri, Jul 20, 2012 at 09:50:53AM -0600, Paul E Condon wrote: > > Debian already provides an email facility that allows cron scripts to > email me with error messages. I need a way to test in Bash whether, or > not, there actually is a disk mounted at /media/wdp8. > > What test can I code in Ba

Re: Need suggestions on a backup issue

2012-07-20 Thread Camaleón
On Fri, 20 Jul 2012 09:50:53 -0600, Paul E Condon wrote: (...) > What test can I code in Bash to determine that there is no disk mounted > at this mount point? I'm thinking of testing for the presence of the > file lost+found, but is there something better? Check if any of these tips help: http

Re: Need suggestions on a backup issue

2012-07-20 Thread Darac Marjal
On Fri, Jul 20, 2012 at 09:50:53AM -0600, Paul E Condon wrote: > [cut] > What test can I code in Bash to determine that there is no disk > mounted at this mount point? I'm thinking of testing for the > presence of the file lost+found, but is there something better? Two points. 1. See if "man mou

Need suggestions on a backup issue

2012-07-20 Thread Paul E Condon
I was bitten by a bug in my backup system recently and would like advice on how to fix the problem. I use Bash scripts and crontab to do a daily backup each morning at 6:25 AM. (Why then? Because it is the default time set up by Debian on a new install, and I've never seen a reason to change it.) T