[rdiff-backup-users] Best method for testing if another rdiff-backup session in progress?

2007-11-21 Thread Jason L. Buberel
On my backup server I use rdiff-backup to remotely backup several rather large postgres database installations (using the postgres hot-backup capability). Under certain circumstances, these backups can take a very long time to complete. The execution of these backups is scheduled via cron. An

Re: [rdiff-backup-users] Best method for testing if another rdiff-backup session in progress?

2007-11-21 Thread phowell
Jason We use a check in the bash script that runs rdiffbackup. This puts a pid file into the var run directory and causes the script to block if the script has not cleared it at the end. if test -e /var/run/remotebackup.pid; then echo "Backup is already running!" echo "If it isn't, remove /

Re: [rdiff-backup-users] Best method for testing if another rdiff-backup session in progress?

2007-11-22 Thread Dave Kempe
Jason L. Buberel wrote: What is the most reliable method to determine if rdiff-backup is already running on the destination directory? If there are two current mirror markers in the rdiff-backup-data directory, and the latest one is in memory then its still running. You can get the pid of the