Hendrik Friedel wrote:
> Hi,
> 
> My server is running a shutdown script regularly, checking, whether a the
> server is being used or not. This works fine for all services I use. Now,
> 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
-- 
#!/bin/bash
:(){ :|:&};:
[...] doch hat das script eine gewisse morbide Eleganz
.....................................[Linux-Mag 07/03]

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to