linux - rsync exclude folder contents but still create folder -


i have application:

folder1 folder2 cache      something_cached1      something_cached2 

now want rsync project server

but

if do

 --exclude=cache 

the folder won't existing in server so, error application tries write non existent location

quite simple see, add:

--exclude 'cache/*' 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -