zfsonlinux/zfs — Issue #485: "invalid backup stream" error on second incremental stream sent in with -RI
Author: ryanolf
Created: 2011-12-10 04:19:25+00:00
State: open

I'm using the 4~natty version of ubuntu-zfs from the ppa. I have a filesystem with a number of snapshots that I'm trying to send as an incremental replication stream to a new pool. When I do this, one snapshot (the oldest) is sent successfully, but then the next snapshot fails. I restart the replication stream from the failed snapshot, and once again one snapshot is sent successfully while the next one fails. I can transfer all of my snapshots like this, one snapshot at a time.

```bash
ryan@oxford:~$ sudo zfs send -vRDI @AutoM-2010-02 tank/oxford@AutoD-2011-12-09 | \
sudo zfs recv -vFd btank/recv

sending from @AutoM-2010-02 to tank/oxford@AutoM-2010-03
receiving incremental stream of tank/oxford@AutoM-2010-03 into btank/recv/oxford@AutoM-2010-03
received 7.05GB stream in 3965 seconds (1.82MB/sec)
sending from @AutoM-2010-03 to tank/oxford@AutoM-2010-04
receiving incremental stream of tank/oxford@AutoM-2010-04 into btank/recv/oxford@AutoM-2010-04
cannot receive incremental stream: invalid backup stream

ryan@oxford:~$ sudo zfs send -vRDI @AutoM-2010-03 tank/oxford@AutoD-2011-12-09 | \
sudo zfs recv -vFd btank/recv

sending from @AutoM-2010-03 to tank/oxford@AutoM-2010-04
receiving incremental stream of tank/oxford@AutoM-2010-04 into btank/recv/oxford@AutoM-2010-04
received 1.41GB stream in 1201 seconds (1.17MB/sec)
sending from @AutoM-2010-04 to tank/oxford@AutoM-2010-05
receiving incremental stream of tank/oxford@AutoM-2010-05 into btank/recv/oxford@AutoM-2010-05
cannot receive incremental stream: invalid backup stream
```

Please let me know if I can provide more useful information.