Currently I have the following command which will send a folder and it's contents recursively:
rsync -avz --ignore-existing --recursive /var/-iles/_site :/var/wwwWhat I want is only the contents of folder _site to be sent to folder www, not the _site folder itself.
Is it possible to send only the contents of folder _site via rsync?
Thanks
1 Answer
This can be done using shell globbing:
rsync -avz --ignore-existing --recursive /var/-iles/_site/* :/var/www/All the contents of the /var/-iles/_site/ directory will be copied to the destination.