Skip to content

sumodx/zfs-find-snapshots

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

zfs-find-snapshots

Find all ZFS snapshots containing a file or directory.

$ zfs-find-snapshots fileA
tank@2024-01-01
tank@2024-01-02
tank@2024-01-03

Usage

List all snapshots containing a file or directory

$ zfs-find-snapshots <file|directory>

Delete all snapshots containing a file or directory

$ zfs-find-snapshots <file|directory> | xargs -I {} zfs destroy

⚠️ Note: This operation may cause data loss! Ensure you know what you're doing.

About

Find all ZFS snapshots containing a file or directory.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%