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?

  • neidu2@feddit.nl
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    9 months ago

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

  • UID_Zero@infosec.pub
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 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.