Scp Copying Issue

Scp Copying Issue

I want to copy the files close to 500 GB from server to my local machine but I have very poor connectivity so the connection breaks in between. Every time when I run scp again, it is copying and overwriting the same set of files again rather than skipping the successfully copied files. However, this way I may not be able to copy the data ever. Please help

1

1 Answer

Use rsync.

rsync -avr --inplace user@source:/path/ /path/to/detination/

This will copy files, and keep partially written files so that you can resume transfer in middle of a file if it is interrupted for any reason.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.