Jump to content

[SOLVED/WORKAROUND] Copy files between 2 BTRFS disks preserving deduplication


Recommended Posts

Some of the files were created using cp --reflink to save space. When I try copying with cp, this deduplication is not preserved. --reflink=always fails, reporting "Invalid cross-device link"

 

Both disks are single disk BTRFS (LUKS). You can see the difference in the size on disk for the domains directory I copied below:

root@server:/mnt/cache# cp -a --reflink=auto /mnt/disks/ssd/domains /mnt/cache/domains

 

 

Edited by golli53
Link to comment
  • golli53 changed the title to [SOLVED/WORKAROUND] Copy files between 2 BTRFS disks preserving deduplication

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...