Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnramsden/zsh-zsnapac
oh-my-zsh plugin for taking ZFS pre/post upgrade snapshots on Arch Linux
https://github.com/johnramsden/zsh-zsnapac
zfs zfs-snapshots zfsonlinux zsh zsh-plugins
Last synced: 1 day ago
JSON representation
oh-my-zsh plugin for taking ZFS pre/post upgrade snapshots on Arch Linux
- Host: GitHub
- URL: https://github.com/johnramsden/zsh-zsnapac
- Owner: johnramsden
- License: bsd-3-clause
- Created: 2018-02-19T01:20:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T08:08:13.000Z (almost 5 years ago)
- Last Synced: 2024-04-16T16:22:15.297Z (7 months ago)
- Topics: zfs, zfs-snapshots, zfsonlinux, zsh, zsh-plugins
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zsnapac
oh-my-zsh plugin for taking ZFS pre/post upgrade snapshots on Arch Linux.
## Setup
Requires ZFS and oh-my-zsh.
Clone the plugin in your oh-my-zsh plugin directory.
```shell
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'.
```shell
plugins=(zsnapac)
```## Options
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 the `ZFS_AUR_UPDATE` function## Usage
The ```zsnapac``` command is used to manage the updates and installs
The following commands exist:
* ```zsnapac | zsnapac update``` - Update system with pre/post ZFS snapshots
* ```zsnapac install ``` - Install packages with pre/post ZFS snapshots
* ```zsnapac aur [packages]``` - Run self defined aur command set in 'zsnapac-settings.zsh'