Can using cp command corrupt files transferred across different filesystems? Should I be using something like rsync instead? [closed]

StackOverflow https://stackoverflow.com/questions/15312032

문제

I am trying to copy files from one hard drive to another in my home server using the cp command. I am copying from an NTFS-formatted partition to an ext4 partition on a new hard drive I have installed.

Is it possible for the cp command to corrupt the transferred files?

Should I be using something like rsycn to verify file integrity is checked upon completion instead?

도움이 되었습니까?

해결책

I would use rsync.

rsync can give you additional checksums, but the real power is the ability to resume after interruptions. This really helps for large files like VMs.

This really is more a serverfault question - See copying-a-large-directory-tree-locally-cp-or-rsync.

다른 팁

rsync should be better than cp when copying files.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top