Linux: Copy Files Along with Folder Structure from Source To Target if not Exist

Use cp command and following option  -parents       Form the name of each destination file by appending to the target       directory a slash and the specified name of the source file.  The       last argument given to `cp' must be the name of an existing       directory.  For example, the command:              cp --parents a/b/c existing_dir         copies the file `a/b/c' to `existing_dir/a/b/c', creating any       missing intermediate directories.






Popular posts from this blog

cognos content store database tables

How to fix: User, group, or role '*' already exists in the current database. (Microsoft SQL Server, Error: 15023)