public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* Copying a btrfs filesystem from one host to another, reflinks, compression
@ 2024-12-04 22:24 Andy Smith
  2024-12-05  4:11 ` Andrei Borzenkov
  0 siblings, 1 reply; 4+ messages in thread
From: Andy Smith @ 2024-12-04 22:24 UTC (permalink / raw)
  To: linux-btrfs

Hi,

I need to copy a pretty large filesystem from one host to another.
What's the best way to do it?

The source filesystem has a single device (redundancy is provided by md
RAID) and uses compression. Destination would be the same. It has a
large number of reflinked files. rsync or tar | ssh | tar are not going
to handle reflinked files, are they?

Should I be using btrfs-send?

There's no subvolumes and no snapshots involved here. Would I just
btrfs-send to a new subvolume and then mount that subvolume as the
"real" filesystem?

Would that preserve compression or would I have to go through and force
recompression of everything?

Source host's kernel is 5.10.0-32; btrfs-progs v5.10.1 (Debian 11).
Destination would be Debian 12 so kernel 6.1.0-28 and btrfs-progs v6.2

Thanks,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-27 22:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-04 22:24 Copying a btrfs filesystem from one host to another, reflinks, compression Andy Smith
2024-12-05  4:11 ` Andrei Borzenkov
2024-12-05  4:25   ` Andy Smith
2024-12-27 22:21     ` Nicholas D Steeves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox