Parent Directory | Revision Log
dd_rescue don't like sync on stdin/stdout
1 | #!/bin/sh -x |
2 | |
3 | fs=`zfs list | grep @ | iselect -t "select snapshot to send over netcat $veid" -a | sed 's/ .*$//'` |
4 | |
5 | if [ -z "$fs" ] ; then |
6 | exit; |
7 | fi |
8 | |
9 | nopool=`echo $fs | cut -d/ -f2-` |
10 | |
11 | ip=`ifconfig | awk '/inet addr/ {split ($2,A,":"); print A[2]}' | grep -v 127.0.0.1 | head -1` |
12 | |
13 | echo -e "\n\nStart receiving side with:\n\nnc -w 5 $ip 8888 | dd_rescue -y 0 - - | zfs receive \`hostname\`/$nopool\n\n" |
14 | |
15 | zfs send $fs | dd_rescue -y 0 - - | nc -l -p 8888 |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |