Hi - I'm new to the list and hope I'm not breaking any list etiquette in my first post. I have searched the list archives but didn't find anything appropriate. Here is my question;

I'm attempting to write a wrapper around rsync which will take care of creating, mounting and then unmounting and deleting an LVM snapshot of the directory I want to back up. I know that I could have used the DumpPreUserCmd amd DumpPostUserCmd settings and I may yet have to. However, I was hoping to do everything in a single script. That way I can re-write paths, etc. on the fly and BackupPC doesn't need to "know" where the snapshot was mounted, for example.

Right now everything works fine up to a point. My snapshot_rsync wrapper executes, makes the snapshot, starts the rsync with a Perl "system" call. Backups are made without a problem. However, it appears that the script gets killed as soon as rsync finishes. If I run it from the command line, I have no problem. The script continues after the system call and unmounts and removes the snapshot.

So, my script simply stops running after:
system("$rsyncPath @argList $newShare\n") || die "$rsyncPath @argList $shareName failed!";

My question is - does BackupPC actively kill the "rsync" after the backup is finished? I tried catching SIGPIPE and doing the cleanup then, but that didn't help.

Any pointers would be appreciated.
---
Markus A. Iturriaga Woelfel, IT Administrator
Electrical Engineering and Computer Science
University of Tennessee
203 Claxton Complex / 1122 Volunteer Blvd.
Knoxville, TN 37996-3450
[EMAIL PROTECTED] / (865) 974-3837


-------------------------------------------------------------------------
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
BackupPC-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to