13.12.1. Backing Up a ZFS Snapshot
# zfs backup tank/dana@111505 > /dev/rmt/0 # zfs backup pool/fs@snap | gzip > backupfile.gz
13.12.2. Restoring a ZFS Snapshot
# zfs backup tank/gozer@111105 > /dev/rmt/0 . . . # zfs restore tank/gozer2@today < /dev/rmt/0 # zfs rename tank/gozer tank/gozer.old # zfs rename tank/gozer2 tank/gozer
# zfs rollback tank/dana@111505 cannot rollback to 'tank/dana@111505': more recent snapshots exist use '-r' to force deletion of the following snapshots: tank/dana@now # zfs rollback -r tank/dana@111505 # zfs restore tank/dana < /dev/rmt/0
13.12.3. Remote Replication of a ZFS File System
# zfs backup tank/neo@today | ssh newsys zfs restore sandbox/restfs@today
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。
时间: 2024-09-24 18:20:14