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