brutalizer
[H]ard|Gawd
- Joined
- Oct 23, 2010
- Messages
- 1,602
How do you copy a whole zpool to another zpool? I see there is a command zfs clone, and I can also use zfs send | receive. How do you copy a whole zpool? I was thinking of something like:
# zfs snapshot -r tank@fullbackup
# zfs send -R tank@fullbackup | pv | zfs receive -vFd myBackupPool
# zfs destroy -r tank@fullbackup
And what arguments do you use?
EDIT: and then myBackupPool will contains lot of new filesystems, each having a snapshots called "fullbackup" so I need to delete these snapshots afterwards. And after that step, I will have a complete duplicate of "tank" - right?
"pv" monitors the progress
# zfs snapshot -r tank@fullbackup
# zfs send -R tank@fullbackup | pv | zfs receive -vFd myBackupPool
# zfs destroy -r tank@fullbackup
And what arguments do you use?
EDIT: and then myBackupPool will contains lot of new filesystems, each having a snapshots called "fullbackup" so I need to delete these snapshots afterwards. And after that step, I will have a complete duplicate of "tank" - right?
"pv" monitors the progress
Last edited: