ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Please help to recover a project

Post new topic  Reply to topic
 Please help to recover a project « View previous topic :: View next topic » 
Author Message
KIT_INC
PostPosted: Sun Apr 01, 2012 6:39 pm    Post subject: Please help to recover a project Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

I am running WMB V7 winxp. Can some one tell me if I still can recover a deleted project. Here is what happened.
I have a workspace WS-0327 from March 27
I created a new work space WS-0401 today.
I imported project my_msgflow and the esql codes into WS-0401 by doing Import/existing project into workspace and started working on it. I made some mistakes and have to delete my_msgflow project from WS-0401. I thought that it was safe to do so because I still have a copy of the project in WS-0327. But I found out that it disappeared after I deleted the project from WS-0401. Is that the way the broker toolkit works (i.e. delete an imported project also delete the source)? Now that the damage is done, is there anyway that I can recover the data ? I have closed work space WS-0401 and have not touched it after that.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Sun Apr 01, 2012 9:11 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

You have learning a valuable lesson here.

You failed to tick the little box on the importer that said something like 'copy selected items into workspace'.

You were working on the same files as the old workspace hence your issue with the files.

Another good habbit (and the source control fanatics will raise their arms in shock) is to export your complete workspace at regulat intervals to something like a USB key, Network share or a separate physical drive. Export with a timestamp and you have a series of timed baselines that you can go back to. This has been invaluable to me in the past when I too have forgotten to tick the little box on the importer.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
mapa
PostPosted: Sun Apr 01, 2012 10:00 pm    Post subject: Reply with quote

Master

Joined: 09 Aug 2001
Posts: 257
Location: Malmö, Sweden

You must also have checked the "Also delete contents under <path>" which would actually point to the same location as pointed out by previous post...

I assume that during real development you use a version system, like Subversion or Git (or something else).

If you delete or need to restore an error in one of your files Eclipse (which WMBT is based on) has a feature called "Restore from local history", but it doesn't work when you have deleted your project.

But if you have edited your resources, you might find them still under
<workspace-path>.metadata/.plugins/org.eclipse.core.resources/.history
Eclipse FAQ workspace history

But they will have names like:
./92/e0ba1de7877c001114a5a2cedee87f7d

With any luck you can get back some of your project resources...
Back to top
View user's profile Send private message Visit poster's website
KIT_INC
PostPosted: Mon Apr 02, 2012 4:27 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

Thanks for the valuable advice. I think I will remember the lesson for a long time.I backup eveyday. I just do not want to lose the whole day of work
Hi mapa, this is what I need. I Know that if the project is still there, I can always go back to the local history. Now that the project is gone, is going thorugh those backup files (I think they are zipped) one by one the only way to go. Is there anyway to recreate a project with the same name and point it to the local history saved ?
Back to top
View user's profile Send private message
mapa
PostPosted: Mon Apr 02, 2012 6:07 am    Post subject: Reply with quote

Master

Joined: 09 Aug 2001
Posts: 257
Location: Malmö, Sweden

I think it is manual work to recover the files.
Maybe there is a tool for it but I couldn't find one.
Back to top
View user's profile Send private message Visit poster's website
lancelotlinc
PostPosted: Mon Apr 02, 2012 6:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Usually, people use CVS or ClearCase, or some other source code control tool. Were you not using source control ?

Using such a tool, its an easy task to recover deleted projects, source files.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
marko.pitkanen
PostPosted: Mon Apr 02, 2012 7:12 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

In a case of total emergency you can try to fetch last deployed esql:s from the broker with mqsireportproperties command ;-)

--
marko
Back to top
View user's profile Send private message Visit poster's website
KIT_INC
PostPosted: Mon Apr 02, 2012 7:52 am    Post subject: Reply with quote

Knight

Joined: 25 Aug 2006
Posts: 589

We do source control in a central repository and daily backup of workspace on PC. Still the recovery is only to your last check in or backup. I can't remember what the default backup interval of the eclipse local history. Using the local history, I probably can have some luck in not losing the whole day of work.

Hi marko.pitkanen, you said, "In a case of total emergency you can try to fetch last deployed esql:s from the broker with mqsireportproperties command "
I was never aware of this capability. Do you mind to explain or point me to a info page on how to do this ?
Back to top
View user's profile Send private message
marko.pitkanen
PostPosted: Mon Apr 02, 2012 8:04 am    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

Try what you can have with command
Code:
mqsireportproperties <BRK_NAME> -e <EG_NAME> -o AllMessageFlows -r>test.txt

--
marko
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Please help to recover a project
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.