Seg, 2013-07-01 às 17:50 +0200, Stefan Behrens escreveu:
What you are trying to do is not possible, it is not supported.
> 
> Btrfs send/receive can be used to create backups. The use case to
> restore from backups is not addressed.
> 
Ok, I see, but then I think I don't understand how btrfs send receive is
working. Is it the case that the parent 'a' in 'btrfs send -p a b' has
to be an "older" version of 'b' and never the other way around, perhaps
in the sense of a having a lower transid as returned by sudo btrfs
subvolume find-new a 999999999999999 ? 

I tried doing  'btrfs send -p original a' then 'btrfs send -p a b', then
deleting 'a' in the second disk and then doing 'btrfs send -p b a' but
that also fails [1], the error happening on the receive side.

best,
-- 
Miguel Negrão
http://www.friendlyvirus.org/miguelnegrao


[1]
 1999  touch /tmp/aaa.txt
 2003  sudo btrfs subvolume snapshot -r /mnt/@ @-1
 2004  touch /tmp/bbb.txt
 2005  sudo btrfs subvolume snapshot -r /mnt/@ @-2
 2007  sudo btrfs send -p @-2013-07-02-08\:03 @-1 | pv | sudo btrfs
receive /media/miguel/huge/backups/@
 2008  sudo btrfs send -p @-1 @-2 | pv | sudo btrfs
receive /media/miguel/huge/backups/@
 2010  btrdelete /media/miguel/huge/backups/@/@-1
 2011  sudo btrfs send -p @-2 @-1 | pv | sudo btrfs
receive /media/miguel/huge/backups/@

error:

At subvol @-1
3,91kB 0:00:00 [ 345kB/s] [<=>
]
At snapshot @-1
ERROR: failed to clone extents to var/log/syslog
Invalid argument


--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to