add option archive to cp
This commit is contained in:
parent
3f4b655d1c
commit
a010d54b21
1 changed files with 1 additions and 1 deletions
|
@ -966,7 +966,7 @@ convert_to_subvolume () {
|
|||
set -x
|
||||
#btrfs subvolume create "${DIR}".new && \
|
||||
${XSUDO:+sudo} btrfs subvolume create "${DIR}.new" && \
|
||||
/bin/cp -Tr --reflink=always "${DIR}" "${DIR}".new && \
|
||||
/bin/cp -aTr --reflink=always "${DIR}" "${DIR}".new && \
|
||||
mv "${DIR}" "${DIR}".orig && \
|
||||
mv "${DIR}".new "${DIR}" || return 2
|
||||
|
||||
|
|
Loading…
Reference in a new issue