Currently I have the following command which will send a folder and it's contents recursively:
rsync -avz --ignore-existing --recursive /var/-iles/_site [email protected]:/var/www
What 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
This can be done using shell globbing:
All the contents of the
/var/-iles/_site/
directory will be copied to the destination.