Linux cp command with reflink

cp -pRv --reflink=auto /source/folder /destination/folder copy files and directories -p same as –preserve=mode,ownership,timestamps -R, -r, –recursive copy directories recursively -v verbose, show what is going on. –reflink[=WHEN] control clone/CoW copies. This just copied 169GB of files in 20 seconds. This only works on supported filesystems, so for example by “#Btrfs, #CIFS, #NFS 4.2, #OCFS2, #overlayfs, and #XFS”. See here. Explainshell tells you this.

11. Juli 2023 · 1 Minute · utzer