Skip to content

ZFS_Snapshot is a simple program that CREATE, LIST, and DELETE ZFS snapshots in a specific Zfs storage filesystem

License

Notifications You must be signed in to change notification settings

DMarkStorage/ZFS_Snapshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ZFS_Snapshots

ZFS_Snapshot is a simple program that CREATE, LIST, and DELETE ZFS snapshots in a specific Zfs storage filesystem

Features

  • CREATE a snapshot into a given Filesystem from a pool
  • DELETE a snapshot into a given Filesystem from a pool
  • Get the LIST of Snapshots
  • Create a CSV and JSON file output containing all the snapshots
  • Helpful CLI

Requirements

  • Python 3.6 or higher
  • ZFS 0.8.1 or higher (untested on earlier versions)
  • Install docopt

Check install docopt for more information

Usage Example

Run the program

  1. Creating a snapshot
ZFS_snapshots.py -s [STORAGE] -fs [FILESYSTEM] -sp [SNAPSHOT] --create
  1. Remove a snapshot
ZFS_snapshots.py -s [STORAGE] -fs [FILESYSTEM] -sp [SNAPSHOT] --remove
  1. GET a list of all snapshots
ZFS_snapshots.py -s [STORAGE] -fs [FILESYSTEM] --list
  1. HELP
ZFS_snapshots.py -h | --help
  • [STORAGE] => name of your storage
  • [FILESYSTEM] => name of your filesystem
  • [SNAPSHOT] => name of the snapshot

Release Instructions

  1. Update CHANGELOG.md with new version

About

ZFS_Snapshot is a simple program that CREATE, LIST, and DELETE ZFS snapshots in a specific Zfs storage filesystem

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages