SOLVED ZFS Send / Recv Problem

Status
Not open for further replies.

NASbox

Guru
Joined
May 8, 2012
Messages
644
I am trying to do an incremental backup using zfs send/recv and it is not working. Can someone please tell me if I've got the command incorrect?

The other possibility is that I renamed both these snapshots (i.e. this is the new name).
BACKUP01/TANK/video@__BKP01_VJQRCPRG_20171229_143300
TANK/video@__BKP01_VJQRCPRG_20171229_143300

Did renaming the snapshots screw things up so I have to start again, or can I put the original names back?

I'd rather not have to recreate the backups from scratch, I just want to be sure that's what is required.

Thanks in advance for any assistance.

Code:
#>zfs list -t snap -r BACKUP01 | grep VJGR
BACKUP01/TANK/video@__BKP01_VJQRCPRG_20171229_143300		0	  -   818G  -

#>zfs list -t snap -r TANK | grep VJGR
TANK/video@__BKP01_VJQRCPRG_20171229_143300									 290K	  -   818G  -
TANK/video@__BKP01_VJQRCPRG__20180419_201057									   0	  -   836G  -
TANK/video@__BKP01_VJQRCPRG__20180421_033752									   0	  -   836G  -

#>zfs send -i TANK/video@__BKP01_VJQRCPRG_20171229_143300 TANK/video@__BKP01_VJQRCPRG__20180421_033752 | pv -pterb | zfs recv -v BACKUP01
receiving incremental stream of TANK/video@__BKP01_VJQRCPRG__20180421_033752 into BACKUP01@__BKP01_VJQRCPRG__20180421_033752
cannot receive incremental stream: most recent snapshot of BACKUP01 does not
match incremental source
10.2KiB 0:00:00 [1.90MiB/s] [   <=>																																					  ]
warning: cannot send 'TANK/video@__BKP01_VJQRCPRG__20180421_033752': signal received

#>>zfs send -i TANK/video@__BKP01_VJQRCPRG_20171229_143300 TANK/video@__BKP01_VJQRCPRG__20180421_033752 | zfs recv -v BACKUP01
cannot receive: failed to read from stream
-bash: send: command not found
 
Last edited:

NASbox

Guru
Joined
May 8, 2012
Messages
644
I think your zfs recv should be BACKUP01/TANK/video

Thanks @rs225 that worked! For the benefit of anyone who may be reading the fourm, it's OK to rename snapshots when doing zfs send/receive as long as you rename both the source and destination snapshot with exactly the same name.
 
Status
Not open for further replies.
Top