From: Ulli Horlacher <framstag@rus.uni-stuttgart.de>
To: linux-btrfs@vger.kernel.org
Subject: How to exclude other filesystems but include subvolumes?
Date: Mon, 7 Sep 2026 12:33:39 +0200 [thread overview]
Message-ID: <20260907103339.GA786966@tik.uni-stuttgart.de> (raw)
Many programs like find, tar, rsync, cp, du, etc have options to exclude
other filesystems, eg rsync:
--one-file-system, -x don't cross filesystem boundaries
But this also excludes subvolumes, which are in the same filesystem.
How can I address a btrfs filesystem with all subvolumes, but exclude
other filesystems?
Example: I want to copy the / filesystem (with all subvolumes), what is the
best solution (for scripting!)?
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: https://www.tik.uni-stuttgart.de/
REF:<20260907103339.GA786966@tik.uni-stuttgart.de>
next reply other threads:[~2026-09-07 10:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 10:33 Ulli Horlacher [this message]
2026-09-08 17:31 ` How to exclude other filesystems but include subvolumes? 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=20260907103339.GA786966@tik.uni-stuttgart.de \
--to=framstag@rus.uni-stuttgart.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox