oh-my-zsh plugin for taking ZFS pre/post upgrade snapshots on Arch Linux.
Requires ZFS and oh-my-zsh.
Clone the plugin in your oh-my-zsh plugin directory.
cd ${ZSH_CUSTOM}/plugins
git clone [email protected]:johnramsden/zsh-zsnapac.git zsnapac
Now add the plugin to your zshrc active plugins, it should be added as 'zsnapac'.
plugins=(zsnapac)
To set the options, edit the zsnapac-settings.zsh
configfile
ZFS_PAC_SNAP_DATASETS=("zpool/ROOT/default")
- Dataset(s) to snapshot.ZFS_AUR_UPDATE
- To use an aur updater, override or set theZFS_AUR_UPDATE
function
The zsnapac
command is used to manage the updates and installs
The following commands exist:
zsnapac | zsnapac update
- Update system with pre/post ZFS snapshotszsnapac install <packages>
- Install packages with pre/post ZFS snapshotszsnapac aur [packages]
- Run self defined aur command set in 'zsnapac-settings.zsh'