this post was submitted on 28 Jan 2024
9 points (100.0% liked)

Linux

48328 readers
641 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

Hello! I just installed my first system using XFS filesystem, and the xfsdump utility seems interesting. I was following this guide about it, but it does not mention anything about the /media mount point: if I have a USB drive full of files mounted in /media/HDD1 and run

xfsdump -f /data/wholesystem.xfsdump /

will the files on the USB be backupped as well? and what about the /home directory?

top 4 comments
sorted by: hot top controversial new old
[–] neidu2@feddit.nl 2 points 10 months ago* (last edited 10 months ago) (1 children)

It will not. Xfsdump only dumps the xfs partition, and any mountpoints are treated as empty folders (which they kind of are).

[–] tubbadu@lemmy.kde.social 1 points 10 months ago (1 children)

ok got it, so /home will be backupped and /media will not, correct? thank you very much!

[–] neidu2@feddit.nl 2 points 10 months ago

Assuming that /home resides on the same filesystem, and is not a separate mountpoint, yes.

[–] UID_Zero@infosec.pub 2 points 10 months ago

I read the man page, but I didn't see the answer to your question in there.

I am assuming that it would only dump the root filesystem in your example. Other mounted filesystems like /home or /media, if they're separate filesystems, probably aren't included. You'd have to run a separate dump for each one.

Best option to find out is to try it and see what happens. No better way to learn than by doing.