Re: script execution with -E after slice finished
Denis Corbin <[email protected]> Thu, 18 Aug 2005 20:25:01 +0200
| Newsgroups | gmane.comp.sysutils.backup.dar.general |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Clemens Ender wrote: | Hi, | Hello Clemens, | I'm trying to do the following: | | Backup several slices to DVD-RAM discs, asking the user to change disks | each time a slice (DVD-RAM) is full. | However I don't want to prompt the user via the terminal, but rather | send out an email. Once notified the user | would change DVD-RAM discs, and confirm the "disk-change" via email or a | web-interface or whatever. The catalogue-slice goes to harddisk by the way. | | Now I've choosen DAR, because it's a really nice backup-backend, and I | saw the options -p and -E, and thought this is exactly what I need. | Unfortunately not quite, as it seems. | | -p is only capable of prompting the user via command-line interface. yes, ... dar "was" command-line tool at the beginning ;-) | | remains -E, this actually works with some drawback. The script provided | to this parameter is executed _after_ a slice is finished and there | seems to be no way to tell the script, wether the slice finished because | it's full (demanding another DVD-RAM disc) or wether is just finished | because there is no more data to be written. I checked "%c" option, but | always passed context "operation" to the -E-script. So I end up in a | situation, where my -E-script is called after every slice, which then | prompts me for a disc-change (currently in my testing-setup via email) | even after the "last" slice, which actually doenst need any further | disc, but just needs to write the catalogue-slice to harddisk. | | Too bad the current DAR-design offers 2 options to handle multi-slice | DARs, but none (fully) works in my situation. The original idea was to make something for each slice (like CD-R burning or parchive checksums). | | Any ideas ? yes, a new feature, with an specific "context" string when the last string has been completed. This is now under work. :-) | | Thanks in advance, | Clemens Ender | | | Cheers, Denis. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDBNJ8pC5CI8gYGlIRAlmsAJwK4RWydHWvEIHIPh3XcrTPs3b4gwCfcvIT /Po2ysIgNefwe7++smUYKxU= =TQ2W -----END PGP SIGNATURE----- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf