@jct Yeah kinda. As said, you can add dependencies, if needed:
git clone https://github.com/psy0rz/zfs_autobackup
# download deps via venv and place them at top-level of later .pyz archive root dir
# (venv can be deleted after zfs_autobackup_all.pyz creation)
python3 -m venv venv
. venv/bin/activate
python -m pip install -r zfs_autobackup/requirements.txt --target zfs_autobackup/
deactivate
# create self-executable incl. deps
# (zfs_autobackup dir can be deleted after zfs_autobackup_all.pyz creation)
python3 -m zipapp zfs_autobackup/\
-o zfs_autobackup_all.pyz\
-p "/usr/bin/env python3"\
-m 'zfs_autobackup.ZfsAutobackup:cli'
# copy over zfs_autobackup_all.pyz to TrueNAS, then
./zfs_autobackup_all.pyz --help # should work
This should include zfs-autobackup
and all its dependencies in a single file zfs_autobackup_all.pyz
, which can be executed on TrueNAS system.
@Mastakilla Regarding Correct way to script ZFS replication in TrueNAS Scale? - #34 by Mastakilla : Did you manage to use --clear-mountpoint
, as suggested? Is it safe to use for TrueNAS?