I need to make a copy of the content of one directory to another.
I need to copy only 1 sub-folder.
For example; if I have a folder called "from" and want to copy one of it's sub-folders (with all the stuff inside it) that's called "21-01-2015" <- this name changes every day, and I want to execute this via cronjob, to folder "to"
+ from - 21-01-2015 (**this name changes all the time**) - month (**this stays always the same**)
I'm currently using this command:
cp -a /path/from /path/to but this command does a copy of folder "from" along with all the stuff within it...
so when you're inside folder "to" it becomes something like this:
+ to + from - 21-01-2015 - month
instead of how I need it which is
+ to - 21-01-2015
how can I achieve something like this?