Amanda-Users

Client script execution befor/after backup

2002-12-11 07:22:52
Subject: Client script execution befor/after backup
From: oli AT head DOT de
To: amanda-users AT amanda DOT org
Date: Wed, 11 Dec 2002 12:48:31 +0100

Hello all,

because i found no satisfying solution for executing commands before and
after
a particular disk is backuped, i wrote a patch for sendbackup, which does
that.

I'm using amanda 2.4.3 and tested the patch on HP-UX and linux (on both
compiled with gcc)

The patch is applyed from within the amanda sources base folder:

patch -p0 < client_exec.diff

If the script shall run as the root user, $libexecdir/sendbackup must
belong to root
and suid-bit must be set.

The script called befor and after a disk is backuped is
$libexecdi/backup_cb.
I attached an example script to this message.




Maybe anyone else uses it.

Regards,
Oliver

________________________________

Oliver Schweikert
Software Development

Horiba Europe Automation Division GmbH
Zabergäustr. 3
73765 Neuhausen
Tel:  +49 - (0)7158-933-400
Fax: +49 - (0)7158-933-499
Email: oli AT head DOT de
(See attached file: client_exec.diff)
(See attached file: backup_cb)

Attachment: client_exec.diff
Description: Binary data

Attachment: backup_cb
Description: Binary data

<Prev in Thread] Current Thread [Next in Thread>
  • Client script execution befor/after backup, oli <=