Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 25-06-2016, 20:20   #1
Registered User

Join Date: Dec 2009
Location: aboard Akka, currently in San Francisco Bay
Boat: Stevens Custom 50
Posts: 77
Recover deleted track?

I accidentally deleted a track and wish I hadn't. Is there any way to recover that track?
Akka is offline   Reply With Quote
Old 25-06-2016, 23:14   #2
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: Recover deleted track?

If you didn't restart "O" to often afterwards you can.

In the same directory/folder as the config-file (press ? button to find) there are 6 navobj files: navobj.xml, navobj.xml.1, navobj.xml.2 ......
  1. First copy these files to a save place.
  2. Then rename "navobj.xml.5" into "navobj.xml".
  3. start "O" and check if your track is there, if yes export your track stop O and replace all xmlfiles by the copies you saved before. Start O and import the track. If no, sorry sail the track again

__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is offline   Reply With Quote
Old 26-06-2016, 10:26   #3
Registered User

Join Date: Dec 2009
Location: aboard Akka, currently in San Francisco Bay
Boat: Stevens Custom 50
Posts: 77
Re: Recover deleted track?

Thanks! Is navobj.xml.5 the most recent backup, or the oldest? I'm asking because I may have created the track between closings of O.

Also, is this documented in the Help file? If so, where? If not, why not? I'd be happy to write this up if you like.
Akka is offline   Reply With Quote
Old 26-06-2016, 11:31   #4
Registered User

Join Date: Oct 2014
Posts: 274
Re: Recover deleted track?

Quote:
Originally Posted by Akka View Post
Thanks! Is navobj.xml.5 the most recent backup, or the oldest? I'm asking because I may have created the track between closings of O.

Also, is this documented in the Help file? If so, where? If not, why not? I'd be happy to write this up if you like.
The oldest is navobj.xml.5.

More information may be found at the OpenCPN.org website:

Navigation Data Backup | Official OpenCPN Homepage


Paul
.Paul. is offline   Reply With Quote
Old 26-06-2016, 11:49   #5
Registered User

Join Date: Aug 2009
Location: between the devil and the deep blue sea
Boat: a sailing boat
Posts: 20,437
Re: Recover deleted track?

If the track was in a file, try normal recovery tools for files. Do not delete nor write anything to the drive meanwhile.

b.
barnakiel is offline   Reply With Quote
Old 26-06-2016, 18:30   #6
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Recover deleted track?

Akka
http://opencpn.org/ocpn/Adv_Navigation_Data_Backup

You could become familiar with opencpn.org search under user docs. We need good editors so your offer is much appreciated. Please do help with this task!
rgleason is offline   Reply With Quote
Old 27-06-2016, 02:03   #7
Registered User

Join Date: Jan 2010
Location: Amsterdam/on board in Asia
Boat: Double-ended steel sloop, 39ft, ALK
Posts: 19
Re: Recover deleted track?

I tried the fix from RooieDirk to recover lost tracks. First saved the .xml files to a new folder. Then before changing the name of navobj.xml.5 deleted navobj.xml.
Did not recover the lost track this way but recent new Routes were lost after I put the old saved .xml files back in place. Any suggestions?
Zeilzwerver is offline   Reply With Quote
Old 27-06-2016, 02:21   #8
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Recover deleted track?

As you have saved all the navobj files, try navobj.xml1 - this is the most recent one.
xml5 is the sixth generation (xml(0) --> xml5)

More: The xml files are user readable. Open it with a decent editor like Notepad++, not with the Windows onboard Notepad, and you can cherrypick routes and tracks and copy them back into the actual xml file.
But be sure what you are doing! Always with a back-up at hand.
bcn is online now   Reply With Quote
Old 27-06-2016, 03:02   #9
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
Re: Recover deleted track?

If you have no luck with xml files you might have another choice to look in your opencpn.log file for lines like that:
Quote:
LOGBOOK: 2016-06-27 07:34:11 UTC OFF: Lat 52.49628 Lon 9.83351 COG 2.41000 SOG 0.37 kn
Such lines are written each half an hour in the log.

Gerhard
CarCode is offline   Reply With Quote
Old 30-06-2016, 20:11   #10
Registered User

Join Date: Jan 2010
Location: Amsterdam/on board in Asia
Boat: Double-ended steel sloop, 39ft, ALK
Posts: 19
Re: Recover deleted track?

BCN and Gerhard,
Tried your suggestions and learned something again but no luck in retrieving the track. OpenCPN really crashed while I was reorganizing tracks and the ones I was working on completely disappeared. Nothing to do about it.
Thanks for your help!
Zeilzwerver is offline   Reply With Quote
Old 10-05-2021, 20:42   #11
Registered User
 
Simi 60's Avatar

Join Date: Jun 2016
Location: Australia
Boat: Milkraft 60 ex trawler
Posts: 4,653
Re: Recover deleted track?

Just stumbled on this thread and tried same with no joy

I was trimming the end off the track and OpenCPN crashed when deleting the snipped off bit and deleted the whole track, not just the trimmed bit.

VERY disappointed as this track is the first one I have managed to do up the inside of Fraser island and through the crossover without the 5ft under keel shallow alarm shrieking on our 2.4m draft vessel.

Even more impressive was that we did the whole 21nm run with zero vis under radar due to heavy fog this morning.
Bummer.
Simi 60 is offline   Reply With Quote
Old 10-05-2021, 20:55   #12
Registered User
 
Alan Mighty's Avatar

Join Date: Mar 2014
Location: Moreton Bay
Boat: US$4,550 of lead under a GRP hull with cutter rig
Posts: 2,141
Re: Recover deleted track?

Quote:
Originally Posted by Simi 60 View Post
VERY disappointed as this track is the first one I have managed to do up the inside of Fraser island and through the crossover without the 5ft under keel shallow alarm shrieking on our 2.4m draft vessel.

Even more impressive was that we did the whole 21nm run with zero vis under radar due to heavy fog this morning.
Very impressive, Simi 60! I reckon you would have found a market for that track.

My best run through the GSS was following deep keel race boats returning to Moreton Bay after the Brisbane-Gladstone. The delivery crews drove the engines hard and were great to follow.

Kudos for doing the run under radar in fog. That's an additional level of difficulty.
__________________
“Fools say that you can only gain experience at your own expense, but I have always contrived to gain my experience at the expense of others.” - Otto von Bismarck
Alan Mighty is offline   Reply With Quote
Old 11-05-2021, 01:20   #13
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Recover deleted track?

Simi 60,

don't start OpenCPN again.


First before restarting:

copy the back-ups of the navdata.xml files in order to use those to recover the track.


There are 5 generations of back-ups and each time you start OpenCPN you will roll one generation forward.


Take the the copy of Gen1 for example and copy it back as the original main navdata.xml and observe if the track is there. If not, proceed with the former generations 2..5


Hubert
bcn is online now   Reply With Quote
Old 11-05-2021, 06:35   #14
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Recover deleted track?

Is there interest in Undelete most recent? (Track, Route)?
rgleason is offline   Reply With Quote
Old 11-05-2021, 06:38   #15
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Recover deleted track?

Here the issue was a corrupt track after a crash....
bcn is online now   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleted Track Nexus 7 RECOVERY Denise Bowes Our Community 0 14-08-2013 20:21
Help Needed, What Is the Cause and How to Recover it? Xland Construction, Maintenance & Refit 18 21-10-2012 20:48
Want To Buy: Strong track or Batt cars with Track thesparrow Classifieds Archive 1 25-12-2011 12:29

Advertise Here


All times are GMT -7. The time now is 13:25.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.