[zfs-discuss] Backup/Restore
Cesare
voltsz at gmail.com
Sun Nov 2 10:39:12 PST 2008
Hi all,
I've recently started down to put on production use for zfs and I'm looking
to how doing a backup of filesystem. I've more than one server to migrate to
ZFS and not so more server where there is a tape backup. So I've put a L280
tape drive on one server and use it from remote connection.
The ZFS configuration and command to make a backup is the following:
--- Client A
Client-A# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
tank 119G 50.0G 69.0G 42% ONLINE -
Client-A# zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 37.4G 50.2G 36.7K /tank
tank/zones 37.2G 50.2G 25.6G /opt/zones
tank/zones at 2008.10.28 11.6G - 25.0G -
Client-A# zfs send tank/zones at 2008.10.28 | /opt/3pp/openssh/bin/ssh -c
blowfish -l root server-backup <http://10.1.101.30> \(dd ibs=258048
of=/dev/rmt/1 obs=2064384 \)
When I want to restore what I've dumped, I do the following:
Client-B# zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 144K 66.9G 27.5K /tank
tank/backup 24.5K 66.9G 24.5K /tank/backup
tank/zones 24.5K 66.9G 24.5K /tank/zones
Client-B# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
tank 68G 148K 68.0G 0% ONLINE -
Client-B# /opt/3pp/openssh/bin/ssh -c blowfish -l root server-backup \(dd
if=/dev/rmt/1 bs=2064384 \) | zfs receive tank/zones
stty: : Invalid argument
cannot receive: invalid stream (bad magic number)
select: Bad file number
Client-B#
What the trick?
Thanks
Cesare
--
Groucho Marx - "All people are born alike - except Republicans and
Democrats."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20081102/884f201f/attachment.html>
More information about the zfs-discuss
mailing list