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.)
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
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:
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 Bash to
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
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 -q
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 at
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
8 matches
Mail list logo