* help with btrfs send
@ 2012-10-24 16:53 frantz.hacquard
2012-10-24 17:23 ` Rory Campbell-Lange
2012-10-24 17:57 ` Arne Jansen
0 siblings, 2 replies; 4+ messages in thread
From: frantz.hacquard @ 2012-10-24 16:53 UTC (permalink / raw)
To: linux-btrfs
Hi,
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
Thanks for help.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: help with btrfs send
2012-10-24 16:53 help with btrfs send frantz.hacquard
@ 2012-10-24 17:23 ` Rory Campbell-Lange
2012-10-25 15:27 ` David Sterba
2012-10-24 17:57 ` Arne Jansen
1 sibling, 1 reply; 4+ messages in thread
From: Rory Campbell-Lange @ 2012-10-24 17:23 UTC (permalink / raw)
To: frantz.hacquard; +Cc: linux-btrfs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: help with btrfs send
2012-10-24 16:53 help with btrfs send frantz.hacquard
2012-10-24 17:23 ` Rory Campbell-Lange
@ 2012-10-24 17:57 ` Arne Jansen
1 sibling, 0 replies; 4+ messages in thread
From: Arne Jansen @ 2012-10-24 17:57 UTC (permalink / raw)
To: frantz.hacquard; +Cc: linux-btrfs
On 10/24/2012 06:53 PM, frantz.hacquard wrote:
> Hi,
>
> 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.
If you want to dissect the contents, you can pull the tool fardump
from here:
git://git.kernel.org/pub/scm/linux/kernel/git/arne/far-progs.git
'far' is the name we're going to give the stream format.
-arne
> I know it's still in developement but is it working ?
> I tried with kernel 3.6.2 and 3.7.0
>
> Thanks for help.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: help with btrfs send
2012-10-24 17:23 ` Rory Campbell-Lange
@ 2012-10-25 15:27 ` David Sterba
0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2012-10-25 15:27 UTC (permalink / raw)
To: Rory Campbell-Lange; +Cc: frantz.hacquard, linux-btrfs
On Wed, Oct 24, 2012 at 06:23:32PM +0100, Rory Campbell-Lange wrote:
> 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
We should not try to send the binary data into a terminal anyway, I'm
sending a patch to fix that.
thanks,
david
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-25 15:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24 16:53 help with btrfs send frantz.hacquard
2012-10-24 17:23 ` Rory Campbell-Lange
2012-10-25 15:27 ` David Sterba
2012-10-24 17:57 ` Arne Jansen
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).