psy0rz / zfs_autobackup

ZFS autobackup is used to periodicly backup ZFS filesystems to other locations. Easy to use and very reliable.
https://github.com/psy0rz/zfs_autobackup
GNU General Public License v3.0
595 stars 63 forks source link

Pass dataset name as variable to snapshot-cmd post-snapshot-cmd #268

Open chrisb86 opened 3 weeks ago

chrisb86 commented 3 weeks ago

It would be really helpfull if we could pass the name of the dataset in question to the pre and post snapshot cmds.

So we could use scripts that make decisions that are related to the actual data that should be backed up. I have a script that is checking if the disks are in standby and prevents to wake them up every 15 minutes just to make a snapshot with no changes. Another use case would be shutting down databases before taking a snapshot.

psy0rz commented 3 weeks ago

Thats a good point, we will add that.