From: "Miguel Negrão" <miguel.negrao-lists@friendlyvirus.org>
To: Stefan Behrens <sbehrens@giantdisaster.de>
Cc: btrfs list <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs send /receive : having problems sending a snapshot back to the original partition
Date: Tue, 02 Jul 2013 10:56:18 +0100 [thread overview]
Message-ID: <1372758978.7295.17.camel@miguel-MacBookPro> (raw)
In-Reply-To: <51D1A529.4040109@giantdisaster.de>
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
next prev parent reply other threads:[~2013-07-02 9:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-30 17:14 btrfs send /receive : having problems sending a snapshot back to the original partition Miguel Negrão
2013-07-01 15:50 ` Stefan Behrens
2013-07-02 9:56 ` Miguel Negrão [this message]
2013-07-02 12:05 ` Stefan Behrens
2013-07-03 10:11 ` Miguel Negrão
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1372758978.7295.17.camel@miguel-MacBookPro \
--to=miguel.negrao-lists@friendlyvirus.org \
--cc=linux-btrfs@vger.kernel.org \
--cc=sbehrens@giantdisaster.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).