[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Btrfs deduplication and multiple users



Thank you for your answer! I won't have to modify my script everytime a new user is added. I can simply perform deduplication on / and /home then.

Fred Kite


Le 5 août 2025 14:06:32 GMT+02:00, Dan Ritter <dsr@randomstring.org> a écrit :
fred.kite.dml@mailo.com wrote:
My family computer has a main Btrfs partition (@ and @home sub-volumes) and several users use this computer. I currently use Jdupes to perform the deduplication of each user's home folder.

Would it be safe to perform the deduplication with a single command on /home instead of each user's folder separately? Will it create problems if the same file is found in several home folders but has different ownership and permissions?



If you're using BEES, you don't have a choice: it runs on the
whole filesystem.

If you're using duperemove, there is a read-only mode where it
tells you what it would do but does not do it.

Neither one will cause problems because of ownership or
permissions differences -- that metadata will remain intact for
each referenced file.

You are unlikely to be saving much space overall, unless your
family is in the habit of copying media files back and forth or
something similar.

-dsr-


Reply to: