Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Archiving / duplicating / copying entire Project workspace?
Archiving / duplicating / copying entire Project workspace? [message #1818908] Wed, 01 January 2020 10:40 Go to next message
Eclipse UserFriend
See title.
What is the simplest and safest way to accomplish that?
Let Eclipse take care of that or let OS do it?
I prefer simple "copy" , not OS backup or archive .

Importing projects from workspaces seems to be very finicky.
At one point I ended up with two workspaces in my Project folder,
lost "include" options in "build" and could not actually run complied project.
Also "renaming workspace" is a gamble.

Cheers
Re: Archiving / duplicating / copying entire Project workspace? [message #1818911 is a reply to message #1818908] Wed, 01 January 2020 11:45 Go to previous messageGo to next message
Eclipse UserFriend
It's usually best to let Eclipse copy the workspaces for you.
I usually keep my projects external to the workspace
You should avoid having the same project appear in different workspaces .
But if the project is completely contained within the workspace then its likely OK.

I have different workspace sets based on the release.
For example
[dvavra@fred 2019-09]$ ls -l /home/dvavra/workspaces/2019-09
total 40K
drwxr-xr-x.  5 dvavra dvavra 4.0K Aug 28 17:26 deepnets
drwxrwxr-x. 11 dvavra dvavra 4.0K Dec 31 12:45 Default
[dvavra@fred 2019-09]$ ls -l /home/dvavra/workspaces/2019-06
total 968K
drwxr-xr-x.  4 dvavra dvavra 4.0K Aug 10 06:17 arduino
drwxr-xr-x.  5 dvavra dvavra 4.0K Aug 28 17:26 deepnets
drwxr-xr-x.  9 dvavra dvavra 4.0K Aug 10 06:36 default

I use rsync to migrate a workspace from one release set to another.
Unfortunately, there are absolute paths within a lot of the files pointing to the old location.
Mostly within the .metadata directory.
Requires a massive edit to fix. ("sed -i" can help here)

A similar problem occurs when renaming a workspace.
There are files with references to the old name.

There really is no easy way to do this.
And I often find I can't remember the steps I used the last time.
This is where backups come in handy.
When you screw up you can go back to a set point.

It's annoying enough that I procrastinate several releases before upgrading.


[Updated on: Wed, 01 January 2020 11:50] by Moderator

Re: Archiving / duplicating / copying entire Project workspace? [message #1818912 is a reply to message #1818911] Wed, 01 January 2020 14:32 Go to previous message
Eclipse UserFriend
Thanks David.
So far I have kept the project in a single workspace.
I do let Eclipse to make a project copy as needed, most of the time daily and eventually delete the older versions from such workspace and disk .
I do use RAID but so far did not have any issues or actual usage for it - it is really only hardware "backup".
Reason I posted the question was I actually run out of disk space and needed to move stuff around.
It did not go well, and I am not sure if it can be used.

Previous Topic:Debugger perspective : How to show a variable content as it prints using << ?
Next Topic:cout and perror messages in wrong sequence
Goto Forum:
  


Current Time: Mon Jun 16 16:06:57 EDT 2025

Powered by FUDForum. Page generated in 0.04178 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top