NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ipb_uk
Aug 23, 2021Aspirant
Moving one share to another with cp --reflink
Hello, Having reset my nas. I've reloaded all the data and I felt something wasn't right. Couldn't put finger on what was niggling me. I've now discovered what is different. Before I reset, all my med...
ipb_uk
Aug 24, 2021Aspirant
StephenB wrote:
ipb_uk wrote:
that there are a few arguments that can be add to cp -reflink, but what are they and which do I need?
Doh! Blimey Ian two typos in one line. I'll have a serious talk with my fingers!
Take two " added to cp --reflink".
Anyway lets see if I can get my finger working right (yep I'm embarrassed).
I did find --reflink=always & --reflink=auto. Which prompted my question. Are there more? Do i even need these switches? And what is the difference? As I'm not sure what the help file meant.
"When --reflink[=always] is specified, perform a lightweight copy, where the
data blocks are copied only when modified. If this is not possible the copy
fails, or if --reflink=auto is specified, fall back to a standard copy."
I'll give it a go tonight without any arguments added, on a small folder.
StephenB
Aug 24, 2021Guru - Experienced User
ipb_uk wrote:
"When --reflink[=always] is specified, perform a lightweight copy, where the
data blocks are copied only when modified. If this is not possible the copy
fails, or if --reflink=auto is specified, fall back to a standard copy."
I've always entered --reflink w/o the parameter. I believe it defaults to auto (which is what you want), but explicitly using--reflink=auto should be fine.
Make sure that Copy-on-Write is enabled on both the source and destination shares before you do the copy.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!