AMZFS-SENDRECV(8)
AMZFS-SENDRECV β amzfs-sendrecv(8) π β¨
okay bestie, gather round, because this is the Amanda script that makes zfs sendrecv happen and it's honestly giving backup icon energy π
NAME πΈ
amzfs-sendrecv β bestie, it's the Amanda script to create zfs sendrecv, no cap β¨
DESCRIPTION π
okay so amzfs-sendrecv is an Amanda application implementing the Application API. real talk: it should not be run by users directly π like, this is not a "just try it in your terminal" situation, it's a "let Amanda handle it" situation.
what it does: it creates a zfs snapshot of the filesystem and backs up that snapshot with zfs send. and here's the thing β snapshots are kept after the backup is done. this increases the disk space use on the client, but it's necessary so you can do incremental backup. it's the price of admission, bestie π
if you want only full backup, you can disable this feature by setting the KEEP-SNAPSHOT property to 'NO'. but heads up: only the restoration of the complete backup is allowed β it is impossible to restore a single file. so like, don't come for this tool when you can't grab one lil file, okay? it's not that kind of party π
the application is run as the amanda user, and it must have many zfs privilege:
zfs allow -ldu AMANDA_USER mount,create,rename,snapshot,destroy,send,receive 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 diskdevice in the disklist (DLE) must be one of:
Desciption Example
---------- -------
Mountpoint /data
ZFS pool name datapool
ZFS filesystem datapool/database
ZFS logical volume datapool/dbvol
and the filesystem doesn't need to be mounted. lowkey convenient, highkey slay π¦
PROPERTIES β¨
this section lists the properties that control amzfs-sendrecv's functionality. see amanda-applications(7) for information on the Application API, application configuration β iykyk π
DF-PATHβ path to thedfbinary, search in$PATHby default. πKEEP-SNAPSHOTβ if"YES"(the default), snapshots are kept after the backup. if set to"NO"then snapshots are not kept and incremental backup will fail. so like, choose wisely bestie πZFS-PATHβ path to thezfsbinary, search in$PATHby default. πPFEXEC-PATHβ path to thepfexecbinary, search in$PATHby default. πPFEXECβ if"NO"(the default),pfexecis not used. if set to"YES"thenpfexecis used. simple as that β¨
EXAMPLE π
in this example, a dumptype is defined to use amzfs-sendrecv application to backup a zfs filesystem. look at this configuration serving looks π
define application-tool amzfs_sendrecv {
comment "amzfs-sendrecv"
plugin "amzfs-sendrecv"
#property "DF-PATH" "/usr/sbin/df"
#property "KEEP-SNAPSHOT" "YES"
#property "ZFS-PATH" "/usr/sbin/zfs"
#property "PFEXEC-PATH" "/usr/sbin/pfexec"
#property "PFEXEC" "NO"
}
define dumptype user-zfs-sendrecv {
program "APPLICATION"
application "amzfs_sendrecv"
}
periodt. that's the whole setup π
SEE ALSO π₯
amanda(8), amanda.conf(5), amanda-client.conf(5), amanda-applications(7)
the Amanda Wiki: http://wiki.zmanda.com/ β go read it, it's giving knowledge π
AUTHOR π
Jean-Louis Martineau <martineau@zmanda.com> Zmanda, Inc. (http://www.zmanda.com)
absolute legend behavior, fr fr π«Ά
Amanda 3.5.4 β 07/23/2025 β yeah that's the version and the date bestie, we out here ππβ¨
π¦ 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