Friday, June 22, 2012
Replicate folder structure without files on Mac OSX
I was needing to replicate a directory and folder structure, without moving or copying files.
The following rsync command the the job nicely
rsync -a /path/from/ /path/to/ --include \*/ --exclude \*
It basically copies everything, but excludes the actual files ie just the folders. Thanks to user
Paul R
on superuser
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment