I would like to find the command that copy my eclipse options to another workspace:
/home/me/myWorkspace/.metadata/.plugins/org.eclipse.core.runtime/*
There is only one directory org.eclipse.core.runtime
among many to copy into a new workspace preserving the structure .metadata/.plugins/
. After copy the structure should be:
/destination/path/newWorkspace/.metadata/.plugins/org.eclipse.core.runtime/
without manually create .metadata/.plugins/
[~]$ cd /home/me/myWorkspace/
[myWorkspace]$ cp -Rf .metadata/.plugins/org.eclipse.core.runtime -t /destination/path/newWorkspace/.metadata/.plugins
cp: can't create directory '/destination/path/newWorkspace/.metadata/.plugin': No such file or directory
It doesn't work, and it could be source of error to write the path .metadata/.plugins
manually. It certainly a better idea to create a complete script ?
mkdir -p /destination/pat/newWorkspace/.metadata/.plugins
but it could be source of error.