How to skip existing files when copying with scp

Posted by xmodulo on Feb 23, 2016 5:35 AM EDT
Xmodulo; By Dan Nanni
Mail this story
Print this story

Suppose you have a list of files on a remote host, some of which already exist locally. What you want is to transfer only those files that are not found locally. If you blindly run scp with wildcard, it would fetch all remote files (existing as well as non-existing files), and overwrite existing local files. You want to avoid this.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Debian, Linux, Ubuntu

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.