linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Behrens <sbehrens@giantdisaster.de>
To: "Miguel Negrão" <miguel.negrao-lists@friendlyvirus.org>
Cc: btrfs list <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs send /receive : having problems sending a snapshot back to the original partition
Date: Mon, 01 Jul 2013 17:50:01 +0200	[thread overview]
Message-ID: <51D1A529.4040109@giantdisaster.de> (raw)
In-Reply-To: <1372612472.13762.18.camel@miguel-MacBookPro>

On Sun, 30 Jun 2013 18:14:32 +0100, Miguel Negrão wrote:
[...]
> Now I was testing retrieving a snapshot back from the backup disk to the
> original partition:
> 
> If I do 
> 
> btrfs subvolume delete @-backupOld
> 
> and then do
> 
> btrfs send
> -p /media/miguel/huge/backups/@/@-backupNew /media/miguel/huge/backups/@/@-backupOld | pv | btrfs receive/mnt/backups
> 
> I get an error: 
> 
> ERROR: could not find parent subvolume
> 
> Sending via files instead of pipes I can see the error is in btrfs
> receive, the btrfs send completes without errors.
> 
> Is it what I'm trying to do not possible ? I'm I using the wrong
> syntax ? It would be really handy to be able to do this, to make it easy
> to go to an old snapshot without having to transfer it in it's full
> size, instead transferring just the diff.

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.


  reply	other threads:[~2013-07-01 15:50 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 [this message]
2013-07-02  9:56   ` Miguel Negrão
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=51D1A529.4040109@giantdisaster.de \
    --to=sbehrens@giantdisaster.de \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=miguel.negrao-lists@friendlyvirus.org \
    /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).