AMANDA-SCRIPTS(7)
π AMANDA-SCRIPTS(7) β Miscellanea β¨
πΈ NAME πΈ
amanda-scripts β configuring and using the Script API, bestie. No cap. π
β¨ DESCRIPTION β¨
Okay so the Script API is literally this flexible system for invoking user-supplied scripts at various points in the execution of Amanda. This manual page describes how the API operates and how to configure it. Wanna write Script API scripts? The help is at http://wiki.zmanda.com/index.php/Script_API β go off. π¦
π¦ SCRIPTS π¦
This section lists the scripts included with Amanda. For instructions on using each one, peep its individual man page. For complete How-To information, consult the Amanda wiki at http://wiki.zmanda.com. π
amzfs-snapshot(8)β create/destroy zfs snapshot. π§script-email(8)β send email. π
Script properties work just like application properties: they are insensitive to case, and - (dash) and _ (underscore) may be used interchangeably. Mix and match, it's fine. β¨
π SCRIPTS OUTPUT PROPERTY π
A pre-dle-amcheck, pre-dle-estimate or pre-dle-backup executed on the client can output property on stdout that are sent to the application. If the output line matches PROPERTY str1 str2, Amanda sets a property called str1 by the value of str2, and that property is sent to the application. It's giving very direct communication. π¬
π SCRIPTS FAILURE (TO ABORT A BACKUP) π
A pre-host-estimate, pre-dle-estimate or pre-dle-backup executed on the client can abort a backup by writing an error message (single line) to STDERR and exit with != 0. So if you want to slam the brakes, that's the move. π
A post-dle-backup executed on the client can make a backup a failure by writing an error message (single line) to STDERR and exit with != 0. Basically: single-line error tea to STDERR plus a non-zero exit = the backup is marked as a failure. π
Lowkey important: this is the documented way to make a backup abort or fail, so don't be shy with that STDERR line, bestie.
π SEE ALSO π
The Amanda Wiki: : http://wiki.zmanda.com/
π AUTHORS π
Jean-Louis Martineau <martineau@zmanda.com>β Zmanda, Inc. (http://www.zmanda.com) πDustin J. Mitchell <dustin@zmanda.com>β Zmanda, Inc. (http://www.zmanda.com) π«Ά
Amanda 3.5.4 Β· 07/23/2025 β okay bye bestie, go configure your scripts, ily πβ¨
π¦ where this page comes from
- fedora 43: amanda 3.5.4-17.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later AND GPL-2.0-or-later AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms