From: Rory Campbell-Lange <rory@campbell-lange.net>
To: "frantz.hacquard" <frantz.hacquard@ensi-bourges.fr>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: help with btrfs send
Date: Wed, 24 Oct 2012 18:23:32 +0100 [thread overview]
Message-ID: <20121024172332.GC8624@campbell-lange.net> (raw)
In-Reply-To: <d867c8a573d19560c7b7f3aba7394b10@ensi-bourges.fr>
On 24/10/12, frantz.hacquard (frantz.hacquard@ensi-bourges.fr) wrote:
> I don't know if it's the good place to ask my question.
> I'm a french student who studies IT.
> I'm working on a project with the btrfs filesystem on Gentoo 64 bits.
> I have to create snapshots and to compare the differences between
> them (new files, deleted files, modified files...).
> So i tried to use btrfs send -i old-snap new-snap.
> To make this command working i created my snapshots thanks to the -r
> option.
> However i only see on the standard output many weird characters but
> i don't understand them.
> I know it's still in developement but is it working ?
> I tried with kernel 3.6.2 and 3.7.0
Hi Frantz
The output of 'btrfs send' is in binary format. You can read more about
what is contained in the data stream in Jonathan Corbet's posting at LWN
here http://lwn.net/Articles/506244/
You'd normally do send/receive something like this:
btrfs send /backup/start | btrfs receive /destination
There are also some notes on the btrfs wiki here, by Alexander Block
https://btrfs.wiki.kernel.org/index.php/Design_notes_on_Send/Receive
however I believe these are a bit out of date now.
You can look at the latest code for btrfs-progs here:
http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-progs.git;a=summary
you may in particular want to look at Alexander Block's patchset here:
http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-progs.git;a=commit;h=f1c24cd80dfd037407cdee85181646adca6dd5bb
--
Rory Campbell-Lange
rory@campbell-lange.net
next prev parent reply other threads:[~2012-10-24 17:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-24 16:53 help with btrfs send frantz.hacquard
2012-10-24 17:23 ` Rory Campbell-Lange [this message]
2012-10-25 15:27 ` David Sterba
2012-10-24 17:57 ` Arne Jansen
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=20121024172332.GC8624@campbell-lange.net \
--to=rory@campbell-lange.net \
--cc=frantz.hacquard@ensi-bourges.fr \
--cc=linux-btrfs@vger.kernel.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).