lkml.org 
[lkml]   [2013]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: btrfs userspace question - where's the utility to dump/restore?
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. ---
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-01-18 00:41    [W:0.045 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site