Masowe snapshoty ZFS

ZFS is very friendly filesystem. You can do a snapshot quick and easy.

For example, if you have ZFS named tank, you can do snapshot named snap1:

# zfs snapshot tank@snap1

Done. But what if you have several pools and several ZFS filesystems on each? You can do a simple loop:

# for a in `zpool list -H -o name`; do zfs snapshot -r $a@20110109; done

This command will create recursive snapshots for all zpools in system. Naturally string 20110109 is exemplary and represents actual date.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.