|
From: Peter V. <pe...@vr...> - 2007-10-24 07:42:15
|
Hendrik Friedel wrote:
> Hi,
>=20
> My server is running a shutdown script regularly, checking, whether a t=
he
> server is being used or not. This works fine for all services I use. No=
w,
> I'd like to add a backuppc to this.
> How can I determine in a bash-script, whether a backup is running?
look for the processes?
eg:
if ( ! ps auxx | grep -q "/usr/share/backuppc/bin/BackupPC_dump" ); then
echo "shutdown"
fi
dont know if all process look like this, but prob. just start a backup
by hand and take a look at it
hth
Peter
--=20
#!/bin/bash
:(){ :|:&};:
[...] doch hat das script eine gewisse morbide Eleganz
=2E....................................[Linux-Mag 07/03]
|