* btrfs userspace question - where's the utility to dump/restore?
@ 2013-01-17 20:05 Valdis Kletnieks
2013-01-17 22:18 ` Hugo Mills
0 siblings, 1 reply; 3+ messages in thread
From: Valdis Kletnieks @ 2013-01-17 20:05 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 320 bytes --]
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?
[-- Attachment #2: Type: application/pgp-signature, Size: 865 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btrfs userspace question - where's the utility to dump/restore?
2013-01-17 20:05 btrfs userspace question - where's the utility to dump/restore? Valdis Kletnieks
@ 2013-01-17 22:18 ` Hugo Mills
2013-01-19 18:02 ` Valdis.Kletnieks
0 siblings, 1 reply; 3+ messages in thread
From: Hugo Mills @ 2013-01-17 22:18 UTC (permalink / raw)
To: Valdis Kletnieks; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 999 bytes --]
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.
Hugo.
(+) aka CoW copies, or snapshots
(*) I regret to say that I've not had the opportunity to play with
send/receive myself yet, so I can't advise on the details of making it
work yet.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- Prisoner unknown: Return to Zenda. ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: btrfs userspace question - where's the utility to dump/restore?
2013-01-17 22:18 ` Hugo Mills
@ 2013-01-19 18:02 ` Valdis.Kletnieks
0 siblings, 0 replies; 3+ messages in thread
From: Valdis.Kletnieks @ 2013-01-19 18:02 UTC (permalink / raw)
To: Hugo Mills; +Cc: linux-kernel
[-- 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 --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-01-19 18:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-17 20:05 btrfs userspace question - where's the utility to dump/restore? Valdis Kletnieks
2013-01-17 22:18 ` Hugo Mills
2013-01-19 18:02 ` Valdis.Kletnieks
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®