AMZFS-SNAPSHOT(8)
π
amzfs-snapshot(8) β the Amanda script that makes zfs snapshots (yes, that's amzfs-snapshot, section 8 of the manual, we love a system administration command π
okay so bestie, buckle up π«Ά
β¨ NAME β¨
amzfs-snapshot β an Amanda script that creates a zfs snapshot. literally its whole personality π
πΈ SYNOPSIS πΈ
no synopsis here babes β this one isn't for typing at your shell, and the page will tell you exactly why π
π¦ DESCRIPTION π¦
amzfs-snapshot is an Amanda script implementing the Script API. it should not be run by users directly π« β like, do not. It creates a zfs snapshot of the filesystem where the path specified is mounted. that's it, that's the job β¨
PRE-DLE-* create a snapshot, and the POST-DLE-* destroy the snapshot. and for the rest to actually happen, *-DLE-AMCHECK, *-DLE-ESTIMATE and *-DLE-BACKUP must be set to be executed on the client:
execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup
execute-where client
The PRE_DLE_* script outputs a DIRECTORY property telling where the directory is located in the snapshot π. The application must be able to use the DIRECTORY property β amgtar can do it, no cap π
The script is run as the amanda user, and it must have the privilege to create and destroy snapshot:
zfs allow -ldu AMANDA_USER mount,snapshot,destroy FILESYSTEM
Some systems don't have "zfs allow" π, but you can give the Amanda backup user the rights to manipulate ZFS filesystems by using the following command:
usermod -P "ZFS File System Management,ZFS Storage Management" AMANDA_USER
This will require that you run zfs under pfexec β set the PFEXEC property to YES. π₯
The format of the DLE must be one of these five, periodt:
- Description: Mountpoint β example:
/data - Description: Arbitrary mounted dir β example:
/data/interesting_dir - Description: ZFS pool name β example:
datapool - Description: ZFS filesystem β example:
datapool/database - Description: ZFS logical volume β example:
datapool/dbvol
β οΈ the filesystem must be mounted. like, non-negotiable, bestie.
π PROPERTIES π
This section lists the properties that control amzfs-snapshot's functionality. See amanda-scripts(7) for information on the Script API and script configuration π§
DF-PATHβ path to thedfbinary. by default it's searched in$PATHπZFS-PATHβ path to thezfsbinary. default: searched in$PATHπPFEXEC-PATHβ path to thepfexecbinary. default: searched in$PATHπPFEXECβ if it's"NO"(the default),pfexecis not used. if it's set to"YES", thenpfexecis used. that's the whole vibe check β
π EXAMPLE π
In this example, a dumptype is defined to use the amzfs-snapshot script to create a snapshot and use amgtar to backup the snapshot. iconic collaboration honestly π€
define script-tool amzfs_snapshot {
comment "backup of zfs snapshot"
plugin "amzfs-snapshot"
execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup
execute-where client
#property "DF-PATH" "/usr/sbin/df"
#property "ZFS-PATH" "/usr/sbin/zfs"
#property "PFEXEC-PATH" "/usr/sbin/pfexec"
#property "PFEXEC" "NO"
}
define dumptype user-zfs-amgtar {
dt_amgtar
script "amzfs_snapshot"
}
π SEE ALSO π
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-scripts(7)
The Amanda Wiki: : http://wiki.zmanda.com/ β go click around, iykyk π
π 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)
that's the whole page, babes π this was Amanda 3.5.4, dated 07/23/2025 β go forth and snapshot responsibly, mwah ππ
π¦ where this page comes from
- fedora 43: amanda-client 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