Linux: rsync Copy Directories Structures Tree Only
To copy only the directory structures (without copying the files themselves) using rsync, you can use the –dirs option: rsync -a –dirs /source/ /destination/ Here, -a is used to preserve the permissions, ownership, timestamps, etc. of the directories. The –dirs option tells rsync to copy only the directories, and not their contents. For example, if … Read more