Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

How do I list files in the same order as scp -rp copies them?

How do I list files in the same order as scp -rp copies them?

I need to know this because sometimes I need to ctrl-C an scp and later want to copy the remaining files.
by

1 Answer

Bharatgxwzm
Well, the obvious thing to do is just use -v so you can see their names as they're being copied:
scp -vrp from/here to/there


However, fiddling about with the file names is not really the best approach. If you find yourself needing to do this often, you should be using rsync instead. Since it has a -u option (only copy if the local file is newer than the remote), it will skip any files you've already copied, and if it finds the same file on both source and destination, it will only copy the differences to make the remote file the same as the local one.

Login / Signup to Answer the Question.