Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

rsync exclude empty directories

rsync --prune-empty-dirs

# or simply, execute find after rsync, 
find /the_folder_path -type d -empty -delete
Source by serverfault.com #
 
PREVIOUS NEXT
Tagged: #rsync #exclude #empty #directories
ADD COMMENT
Topic
Name
6+8 =