From: Andy Smith <andy@strugglers.net>
To: linux-btrfs@vger.kernel.org
Subject: Copying a btrfs filesystem from one host to another, reflinks, compression
Date: Wed, 4 Dec 2024 22:24:16 +0000 [thread overview]
Message-ID: <Z1DWkM8wjak50NrG@mail.bitfolk.com> (raw)
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
next reply other threads:[~2024-12-04 22:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-04 22:24 Andy Smith [this message]
2024-12-05 4:11 ` Copying a btrfs filesystem from one host to another, reflinks, compression Andrei Borzenkov
2024-12-05 4:25 ` Andy Smith
2024-12-27 22:21 ` Nicholas D Steeves
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=Z1DWkM8wjak50NrG@mail.bitfolk.com \
--to=andy@strugglers.net \
--cc=linux-btrfs@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.