ZFS Downside of ZFS (over BTRFS and in general)

With BTRFS I could do bash completion of my snapshot names during send/receive, the names were just folders.

With ZFS, there is no autocompletion if you use a script and pass snapshots as parameters. And if you could pass snapshot names as folders .zfs/blahblah, you'd get autocomplete, but zfs only takes pool/dataset@snapshot syntax.

The only autocompletion with ZFS is if you don't use a script and just type zfs blah blah snapshot name.

So sad. 😒😞

💔
 
Maybe tag ?

#!/bin/csh -f
# zfs_tagged_snap.csh
# Usage:
# zfs_tagged_snap.csh local daily
# zfs_tagged_snap.csh local monthly
# zfs_tagged_snap.csh backup daily
# zfs_tagged_snap.csh archive monthly
........
.......
# --- Tag + horodatage ---
if ( "$MODE" == "monthly" ) then
set STAMP = `date +%Y-%m-01`
set SYS_TAG = "sys_m_${STAMP}"
set HOME_TAG = "home_m_${STAMP}"
else
set STAMP = `date +%Y-%m-%d_%H-%M`
set SYS_TAG = "sys_d_${STAMP}"
set HOME_TAG = "home_d_${STAMP}"
endif

usage

zfs_tagged_snap.csh local

or
...
And
zfs list .....

zroot/home/user@home_d_2025-12-31_21-05 90.4M - 43.7G -
zroot/home/user@home_d_2026-01-01_21-05 3.35M - 43.8G -
zroot/home/user@home_m_2026-01-01 3.34M - 43.8G -
zroot/home/user@home_d_2026-01-02_21-05 154M - 43.8G -
zroot/home/user@home_d_2026-01-03_21-05 847M - 44.2G -
zroot/home/user@home_d_2026-01-09_13-05 250M - 44.3G -
zroot/home/user@home_d_2026-01-10_21-05 146M - 44.4G -
zroot/home/user@home_d_2026-01-11_21-05
 
Back
Top