mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Valdis.Kletnieks@vt.edu
To: Hugo Mills <hugo-lkml@carfax.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: btrfs userspace question - where's the utility to dump/restore?
Date: Sat, 19 Jan 2013 13:02:30 -0500	[thread overview]
Message-ID: <8544.1358618550@turing-police.cc.vt.edu> (raw)
In-Reply-To: Your message of "Thu, 17 Jan 2013 22:18:19 +0000." <20130117221819.GA5406@carfax.org.uk>

[-- Attachment #1: Type: text/plain, Size: 1391 bytes --]

On Thu, 17 Jan 2013 22:18:19 +0000, Hugo Mills said:

> On Thu, Jan 17, 2013 at 03:05:35PM -0500, Valdis Kletnieks wrote:
> > So I'm looking at playing with btrfs, and I start looking at the
> > userspace pieces I'll need.  What I can't find is an equivalent
> > of the ext[34] "dump/restore" package to dump data to an external
> > backup device. Is 'tar cf --acls --selinux --xattrs /external/fs.dump'
> > as good as it gets, or is something else recommended?
>
>    tar doesn't handle reflinks(+), so the above won't quite give you a
> complete duplicate. In the btrfs tool, there's send/receive, which
> should(*) be sufficient to deal with reflinks.

So I decided to try it out on the filesystem that I stash all my music
(mostly because I can survive without that filesystem if I trash it, and
I have a known good backup).

Apparently, send/receive isn't in the manpage, which is why I didn't
see it.  Fortunately, there's --help

[~] btrfs send --help
usage: btrfs send <command> <args>

    btrfs send [-v] [-i <subvol>] [-p <parent>] <subvol>
        Send the subvolume to stdout.

[~] btrfs send -v /mp3 > /disk2/backups/mp3.btrfs
ERROR: /mp3 is not read-only.
[~] mount -o remount,ro /mp3
[~] btrfs send -v /mp3 >| /disk2/backups/mp3.btrfs
ERROR: /mp3 is not read-only.

Bah. Obviously this isn't anywhere near as easy as it is for ext4.

/me wanders off to find more caffeine...

[-- Attachment #2: Type: application/pgp-signature, Size: 865 bytes --]

      reply	other threads:[~2013-01-19 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-17 20:05 Valdis Kletnieks
2013-01-17 22:18 ` Hugo Mills
2013-01-19 18:02   ` Valdis.Kletnieks [this message]

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=8544.1358618550@turing-police.cc.vt.edu \
    --to=valdis.kletnieks@vt.edu \
    --cc=hugo-lkml@carfax.org.uk \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®