0

I just copied a few directories and files using SCP from a SSH remote server. How can I check if the files were copied exactly and there were no errors or no files were skipped?

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255
Prada
  • 113
  • Attempt an rsync. If it sees no changes to bring over, nothing was missed or badly copied. – DopeGhoti Jul 24 '17 at 18:24
  • You can go through this question:-https://unix.stackexchange.com/questions/253233/do-i-need-to-check-for-file-corruption-once-scp-is-done – Bhavya Jain Jul 24 '17 at 18:29

1 Answers1

2

You can use md5sum * > chksum.txt on the source side, transfer the chksum.txt file using scp and then on the destination side do:

md5sum -c chksum.txt
Anthon
  • 79,293